wcnss wlan seems to be broken on NetworkManager
NetworkManager seems to no longer work properly with WCNSS WLAN, nmtui shows nothing, but nmcli shows that wlan0 is unavailable:
wlan0: unavailable
"wlan0"
wifi (wcnss_wlan), 00:0A:F5:5F:7B:28, hw, mtu 1500
rndis0: unmanaged
"rndis0"
ethernet (msm_hsusb), AE:1D:33:37:01:FC, hw, mtu 1500
sit0: unmanaged
"sit0"
iptunnel (sit), sw, mtu 1480
lo: unmanaged
"lo"
loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536
rmnet_ipa0: unmanaged
"rmnet_ipa0"
unknown, hw, mtu 2000
p2p0: unmanaged
"p2p0"
wifi (wcnss_wlan), 02:0A:F5:5F:7B:28, hw, mtu 1500
Use "nmcli device show" to get complete information about known devices and
"nmcli connection show" to get an overview on active connection profiles.
Consult nmcli(1) and nmcli-examples(7) manual pages for complete usage details.
xiaomi-santoni:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN
link/sit 0.0.0.0 brd 0.0.0.0
3: rmnet_ipa0: <> mtu 2000 qdisc noop state DOWN qlen 1000
link/[530]
4: rndis0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether ae:1d:33:37:01:fc brd ff:ff:ff:ff:ff:ff
inet 172.16.42.1/16 brd 172.16.255.255 scope global rndis0
valid_lft forever preferred_lft forever
inet6 fe80::ac1d:33ff:fe37:1fc/64 scope link
valid_lft forever preferred_lft forever
5: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
link/ether 00:0a:f5:5f:7b:28 brd ff:ff:ff:ff:ff:ff
6: p2p0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
link/ether 02:0a:f5:5f:7b:28 brd ff:ff:ff:ff:ff:ff
wpa_supplicant works just fine however:
xiaomi-santoni:~$ wpa_passphrase "Qualcomm is shit" "[REDACTED]" > wifi
xiaomi-santoni:~$ sudo^C
xiaomi-santoni:~$ sudo rc-service networkmanager stop
[sudo] password for user:
* Stopping chronyd ... [ ok ]
* Stopping NetworkManager ... [ ok ]
xiaomi-santoni:~$ sudo rc-service networkmanager stop
* WARNING: networkmanager is already stopped
xiaomi-santoni:~$ sudo wpa_supplicant -i wlan0 -c wifi &
xiaomi-santoni:~$ Successfully initialized wpa_supplicant
wlan0: Trying to associate with SSID 'Qualcomm is shit'
wlan0: Associated with [REDACTED]
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan0: WPA: Key negotiation completed with [REDACTED] [PTK=CCMP GTK=TKIP]
wlan0: CTRL-EVENT-CONNECTED - Connection to [REDACTED] completed [id=0 id_str=]
xiaomi-santoni:~$ sudo udhcpc -i wlan0
udhcpc: started, v1.31.0
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending select for 192.168.1.119
udhcpc: lease of 192.168.1.119 obtained, lease time 86400
xiaomi-santoni:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN
link/sit 0.0.0.0 brd 0.0.0.0
3: rmnet_ipa0: <> mtu 2000 qdisc noop state DOWN qlen 1000
link/[530]
4: rndis0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether ae:1d:33:37:01:fc brd ff:ff:ff:ff:ff:ff
inet 172.16.42.1/16 brd 172.16.255.255 scope global rndis0
valid_lft forever preferred_lft forever
inet6 fe80::ac1d:33ff:fe37:1fc/64 scope link
valid_lft forever preferred_lft forever
5: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:0a:f5:5f:7b:28 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.119/24 brd 192.168.1.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::20a:f5ff:fe5f:7b28/64 scope link
valid_lft forever preferred_lft forever
6: p2p0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
link/ether 02:0a:f5:5f:7b:28 brd ff:ff:ff:ff:ff:ff
xiaomi-santoni:~$