mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 17:40:14 +01:00
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:
parent
bba834f842
commit
6f19e1e18c
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue