Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nmcli can't see wifi networks, but iwlist does... [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2119
Location: San Jose, CA

PostPosted: Wed Mar 19, 2025 6:09 pm    Post subject: nmcli can't see wifi networks, but iwlist does... [solved] Reply with quote

I'm using network manager. Its been good.

But I'm visiting my sister and bro-in-law and my laptop can't see their wifi network.

I followed a rabbit hole and ended up installing new firmware for my MT7922, but that didn't help.

Here's the thing: If I run nmcli it shows a few networks, not the one I'm looking for, but iwlist shows all the networks.

I figure network manager is misconfigured. Does anyone have any ideas?

TIA
_________________
Some day there will only be free software.


Last edited by RayDude on Wed Mar 19, 2025 8:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2080

PostPosted: Wed Mar 19, 2025 6:14 pm    Post subject: Reply with quote

This is likely due to net-wireless/wpa_supplicant and its broken mixed mode handling.
By default, if any access point has a mixed WPA/WPA2 enabled, wpa_supplicant will fail to report it as available.
To fix this, either:
  1. Set only WPA2 (or WPA2/WPA3) on an AP you control or
  2. Enable tkip USE on wpa_supplicant so it can handle the deprecated WPA again
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2119
Location: San Jose, CA

PostPosted: Wed Mar 19, 2025 8:18 pm    Post subject: Reply with quote

grknight wrote:
This is likely due to net-wireless/wpa_supplicant and its broken mixed mode handling.
By default, if any access point has a mixed WPA/WPA2 enabled, wpa_supplicant will fail to report it as available.
To fix this, either:
  1. Set only WPA2 (or WPA2/WPA3) on an AP you control or
  2. Enable tkip USE on wpa_supplicant so it can handle the deprecated WPA again


You called it!!!

Thank you so much! Enabling tkip fixed the issue!
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55107
Location: 56N 3W

PostPosted: Wed Mar 19, 2025 8:21 pm    Post subject: Reply with quote

RayDude,

It would be safer to fix your sisters WiFi access point to not use the old broken WPA option ... if that's possible.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2080

PostPosted: Wed Mar 19, 2025 8:23 pm    Post subject: Reply with quote

It is always preferable to ditch WPA whenever possible. Hardware built since 2006 has been required to be WPA2 compliant
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2119
Location: San Jose, CA

PostPosted: Sun Mar 23, 2025 9:21 pm    Post subject: Reply with quote

Thanks Neddy and GRnight.

I suggested the upgrade to my Bro-In-Law. It will be up to him what he does.

Again thanks for the help.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23280

PostPosted: Sun Mar 23, 2025 9:55 pm    Post subject: Reply with quote

To me, "upgrade" suggests you are contemplating a hardware replacement. Based on grknight's comment, the existing device likely supports WPA2, and merely needs to be reconfigured in software to do the right thing.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2119
Location: San Jose, CA

PostPosted: Tue Mar 25, 2025 5:37 am    Post subject: Reply with quote

Hu wrote:
To me, "upgrade" suggests you are contemplating a hardware replacement. Based on grknight's comment, the existing device likely supports WPA2, and merely needs to be reconfigured in software to do the right thing.


I meant him to upgrade from wpa to wpa2. He checked and the selection in the firmware is "wpa/wpa2" I'm not sure how it decides which it uses. I suggested he look for a firmware update...
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23280

PostPosted: Tue Mar 25, 2025 1:49 pm    Post subject: Reply with quote

If I recall correctly, this is a known issue with wpa_supplicant that has been discussed many times on the forums. If wpa_supplicant sees an AP offer WPA as a choice, and wpa_supplicant cannot use WPA, then wpa_supplicant fails even if the AP offers better options and wpa_supplicant supports those options. To work around this, you need the AP not to offer plain WPA at all, at which point wpa_supplicant will notice that it can negotiate a better alternative. Try to change the AP to offer WPA2 only, or WPA2+WPA3.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55107
Location: 56N 3W

PostPosted: Tue Mar 25, 2025 4:08 pm    Post subject: Reply with quote

The setup is often a drop down.
None, WEP, WPA, WPA/WPA2, WPA2, WPA3.

WPA3 will be missing on older equipment but WPA2 should be good for a few years yet.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2119
Location: San Jose, CA

PostPosted: Tue Mar 25, 2025 8:12 pm    Post subject: Reply with quote

Hu wrote:
If I recall correctly, this is a known issue with wpa_supplicant that has been discussed many times on the forums. If wpa_supplicant sees an AP offer WPA as a choice, and wpa_supplicant cannot use WPA, then wpa_supplicant fails even if the AP offers better options and wpa_supplicant supports those options. To work around this, you need the AP not to offer plain WPA at all, at which point wpa_supplicant will notice that it can negotiate a better alternative. Try to change the AP to offer WPA2 only, or WPA2+WPA3.


Thanks Hu. That makes perfect sense, but I'm already back home. I will disable wpa on my laptop for sure.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2119
Location: San Jose, CA

PostPosted: Tue Mar 25, 2025 8:26 pm    Post subject: Reply with quote

NeddySeagoon wrote:
The setup is often a drop down.
None, WEP, WPA, WPA/WPA2, WPA2, WPA3.

WPA3 will be missing on older equipment but WPA2 should be good for a few years yet.


Bro-In-Law showed me the drop down choices, wpa2 by itself was not an option, but perhaps a firmware upgrade will fix that.

Again, thank you so much for your support.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum