From 6f19e1e18c0fb7bc558af7b581c81d856c208cdd Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 9 Mar 2012 11:10:32 -0600 Subject: [PATCH] wifi: fix typo in wifi detection code (bgo #671276) Would affect non-nl80211 drivers since all nl80211 drivers have the phyX link in sysfs and thus this code wouldn't get run for them. Found by Dmitri --- src/wifi/wifi-utils-nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wifi/wifi-utils-nl80211.c b/src/wifi/wifi-utils-nl80211.c index c8d43f5609..637c163849 100644 --- a/src/wifi/wifi-utils-nl80211.c +++ b/src/wifi/wifi-utils-nl80211.c @@ -784,7 +784,7 @@ wifi_nl80211_is_wifi (const char *iface) return FALSE; ifindex = iface_to_index (nl_sock, iface); - if (index < 0) + if (ifindex < 0) return FALSE; if (genl_connect (nl_sock))