Open jsermer opened 3 years ago
Hi, set echo 6 > /proc/net/rtl88x2bu/log_level
and see dmesg
.
Is there any new beacon occur!!
in the log?
Attached the log, but the only 'beacon' messages I see are:
[ +0.000005] RTW: OnBeacon: beacon keys ready
[ +0.000007] RTW: OnBeacon: beacon keys ready
[ +0.000006] RTW: OnBeacon: beacon keys ready
RTW: assoc reject, status code: 40 Invalid information element (doesn't follow 802.11 standard) https://support.google.com/chrome/a/answer/7172038
I guess some of your configuration does not compatible with your wifi.
Hmm, my NetworkManager config is bare bones (/etc/NetworkManager/NetworkManager.conf is effectively blank), it's using the default wpa_supplicant backend (not iwd) and my wifi config file is:
[connection]
id=myssid
uuid=39a38116-0be8-48a7-9ffc-8a378c9330c5
type=wifi
interface-name=wlp5s0u2
permissions=
[wifi]
bssid=myssid_bssid_mac_address
mac-address-blacklist=
mode=infrastructure
ssid=myssid
[wifi-security]
key-mgmt=wpa-psk
psk=mypsk
[ipv4]
dns-search=
method=auto
[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=disabled
[proxy]
Try change your wifi router configuration and see if it works.
It works using the same basic config options (ssid, bssid, and psk) manually with wpa_supplicant directly but not using those same options with NetworkManager (I'm actually sending this message over the wifi adapter manually configured using wpa_supplicant command line):
wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant-wlp5s0u2.conf -iwlp5s0u2
Which leads me to believe it's some sort of NetworkManager bug/issue/misconfig/etc
I do use NetworkManager and iwd, and they both works fine for me. So I don't know what special reasons may causes NM to not work properly. Your wifi authentication is successful, but failed at association without any useful info.
Switching the wifi backend in NetworkManager to iwd, restarting NetworkManager, removing existing 'known wifi networks', killing the existing wpa_supplicant, and re-attempting a connection using the wifi settings in gnome control center seems to have made everything work as expected.
Still unsure why wpa_supplicant works natively, but not via NetworkManager using the default wifi.backend of wpa_supplicant. I can report however, that changing the backend to iwd seems to work pretty well.
/etc/NetworkManager/conf.d/wifi_backend.conf:
[device]
wifi.backend=iwd
I will also note, initially the 2.4ghz band was preferred (2.4ghz signals travel better through walls), but since this is a desktop and doesn't move, I wanted to force the adapter to connect to my 80mhz 5ghz band. iwd made it pretty simple to influence the 5ghz preference by adjusting the following:
/etc/iwd/main.conf
[Rank]
BandModifier5Ghz=2.0
While not technically 'solved', you are free to close this issue.
First of all, thanks for making this arch package. I'm not sure if I'm doing something wrong or it's some odd interaction between the adapter (https://www.amazon.com/gp/product/B07FCN6WGX/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1) and NetworkManager itself.
Using Gnome's control center to setup/configure/connect to the wireless network never connects, but using dhcpcd and the wpa_supplicant hook from the command line works (the below command will trigger dhcpcd to start wpa_supplicant and then request an IP address (can be found in arch's wiki).
My setup is as follows:
linux 5.9.11.arch2-1 rtl88x2bu-dkms-git 5.8.7.1.r107.f9085c8-1
/etc/modprobe.d/88x2bu.conf
/etc/NetworkManager/conf.d/88x2bu.conf
/etc/wpa_supplicant/wpa_supplicant-wlp5s0u2.conf
nmcli -t connection show myssid
journalctl -u NetworkManager
It just continues prompting for the PSK over and over and never connects. Is there something obvious I'm missing?