diff options
author | Dan Williams <dcbw@redhat.com> | 2012-03-09 11:10:32 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2012-03-09 11:10:32 -0600 |
commit | 6f19e1e18c0fb7bc558af7b581c81d856c208cdd (patch) | |
tree | 4f33f3a19f142619188228509aaa386ac8e9c141 | |
parent | bba834f8428934608b58eb96aa2b81e413430346 (diff) | |
download | NetworkManager-6f19e1e18c0fb7bc558af7b581c81d856c208cdd.tar.gz |
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>
-rw-r--r-- | src/wifi/wifi-utils-nl80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |