Skip to content

Instantly share code, notes, and snippets.

@Fysac
Created July 9, 2017 22:40
Show Gist options
  • Save Fysac/5a4b9b323118071d08a5531f515e4196 to your computer and use it in GitHub Desktop.
Save Fysac/5a4b9b323118071d08a5531f515e4196 to your computer and use it in GitHub Desktop.
Fix for NetworkManager WiFi issue with certain adapters in latest Debian/Ubuntu
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
# Fixes a WiFi issue in Debian 9 and Ubuntu >=17.04.
# If you're able to see a list of access points in NetworkManager, but unable to connect to any of them, you should try this.
# Source: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1681513/comments/1
[device]
wifi.scan-rand-mac-address=no
@Fysac
Copy link
Author

Fysac commented Jul 9, 2017

My adapter:

$ lsusb | grep -i wireless
Bus 001 Device 003: ID 148f:5372 Ralink Technology, Corp. RT5372 Wireless Adapter

Snippet from /var/log/syslog before the fix was applied:

Jul  9 17:11:32 hostname NetworkManager[22198]: <info>  [1499634692.9732] manager: startup complete
Jul  9 17:11:32 hostname kernel: [ 1984.689746] wlx9cefd5ffe363: authenticated
Jul  9 17:11:32 hostname kernel: [ 1984.696497] wlx9cefd5ffe363: associate with 0e:02:8e:93:92:2f (try 1/3)
Jul  9 17:11:33 hostname kernel: [ 1984.709406] wlx9cefd5ffe363: RX AssocResp from 0e:02:8e:93:92:2f (capab=0x1431 status=0 aid=2)
Jul  9 17:11:33 hostname kernel: [ 1984.718600] wlx9cefd5ffe363: associated
Jul  9 17:11:33 hostname kernel: [ 1984.718853] wlx9cefd5ffe363: deauthenticating from 0e:02:8e:93:92:2f by local choice (Reason: 3=DEAUTH_LEAVING)
Jul  9 17:11:33 hostname wpa_supplicant[22250]: wlx9cefd5ffe363: No network configuration found for the current AP
Jul  9 17:11:33 hostname wpa_supplicant[22250]: wlx9cefd5ffe363: CTRL-EVENT-DISCONNECTED bssid=0e:02:8e:93:92:2f reason=3 locally_generated=1
Jul  9 17:11:33 hostname wpa_supplicant[22250]: wlx9cefd5ffe363: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=US
Jul  9 17:11:33 hostname NetworkManager[22198]: <info>  [1499634693.0719] device (wlx9cefd5ffe363): supplicant interface state: inactive -> associated
Jul  9 17:11:33 hostname NetworkManager[22198]: <warn>  [1499634693.0719] sup-iface[0x55ea250ecd10,wlx9cefd5ffe363]: connection disconnected (reason -3)
Jul  9 17:11:33 hostname NetworkManager[22198]: <info>  [1499634693.0764] device (wlx9cefd5ffe363): supplicant interface state: associated -> disconnected
Jul  9 17:11:33 hostname wpa_supplicant[22250]: wlx9cefd5ffe363: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Jul  9 17:11:33 hostname NetworkManager[22198]: <info>  [1499634693.1763] device (wlx9cefd5ffe363): supplicant interface state: disconnected -> inactive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment