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 <mitya@mageia.org>
This commit is contained in:
Dan Williams 2012-03-09 11:10:32 -06:00
parent bba834f842
commit 6f19e1e18c

View file

@ -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))