RinCat / RTL88x2BU-Linux-Driver

Realtek RTL88x2BU WiFi USB Driver for Linux
GNU General Public License v2.0
1.26k stars 197 forks source link

wpa_supplicant works directly but not as wifi backend for NetworkManager #59

Open jsermer opened 3 years ago

jsermer commented 3 years ago

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).

rfkill unblock 1
sudo dhcpcd wlp5s0u2

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

options cfg80211 ieee80211_regdom=US
options 88x2bu rtw_power_mgnt=0 rtw_country_code=US rtw_switch_usb_mode=1

/etc/NetworkManager/conf.d/88x2bu.conf

[device-rtl88x2bu]
match-device=driver:rtl88x2bu
wifi.scan-rand-mac-address=no

/etc/wpa_supplicant/wpa_supplicant-wlp5s0u2.conf

ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=1
country=US
network={
    bssid=myssid_bssid_mac_address
    ssid="myssid"
    psk="mypsk"
}

nmcli -t connection show myssid

connection.id:myssid
connection.uuid:39a38116-0be8-48a7-9ffc-8a378c9330c5
connection.stable-id:
connection.type:802-11-wireless
connection.interface-name:wlp5s0u2
connection.autoconnect:yes
connection.autoconnect-priority:0
connection.autoconnect-retries:-1
connection.multi-connect:0
connection.auth-retries:-1
connection.timestamp:0
connection.read-only:no
connection.permissions:
connection.zone:
connection.master:
connection.slave-type:
connection.autoconnect-slaves:-1
connection.secondaries:
connection.gateway-ping-timeout:0
connection.metered:unknown
connection.lldp:default
connection.mdns:-1
connection.llmnr:-1
connection.wait-device-timeout:-1
802-11-wireless.ssid:myssid
802-11-wireless.mode:infrastructure
802-11-wireless.band:
802-11-wireless.channel:0
802-11-wireless.bssid:myssid_bssid_mac_address
802-11-wireless.rate:0
802-11-wireless.tx-power:0
802-11-wireless.mac-address:
802-11-wireless.cloned-mac-address:
802-11-wireless.generate-mac-address-mask:
802-11-wireless.mac-address-blacklist:
802-11-wireless.mac-address-randomization:default
802-11-wireless.mtu:auto
802-11-wireless.seen-bssids:
802-11-wireless.hidden:no
802-11-wireless.powersave:default
802-11-wireless.wake-on-wlan:0x1
802-11-wireless-security.key-mgmt:wpa-psk
802-11-wireless-security.wep-tx-keyidx:0
802-11-wireless-security.auth-alg:
802-11-wireless-security.proto:
802-11-wireless-security.pairwise:
802-11-wireless-security.group:
802-11-wireless-security.pmf:0
802-11-wireless-security.leap-username:
802-11-wireless-security.wep-key0:<hidden>
802-11-wireless-security.wep-key1:<hidden>
802-11-wireless-security.wep-key2:<hidden>
802-11-wireless-security.wep-key3:<hidden>
802-11-wireless-security.wep-key-flags:0
802-11-wireless-security.wep-key-type:unknown
802-11-wireless-security.psk:<hidden>
802-11-wireless-security.psk-flags:0
802-11-wireless-security.leap-password:<hidden>
802-11-wireless-security.leap-password-flags:0
802-11-wireless-security.wps-method:0x0
802-11-wireless-security.fils:0
ipv4.method:auto
ipv4.dns:
ipv4.dns-search:
ipv4.dns-options:
ipv4.dns-priority:0
ipv4.addresses:
ipv4.gateway:
ipv4.routes:
ipv4.route-metric:-1
ipv4.route-table:0
ipv4.routing-rules:
ipv4.ignore-auto-routes:no
ipv4.ignore-auto-dns:no
ipv4.dhcp-client-id:
ipv4.dhcp-iaid:
ipv4.dhcp-timeout:0
ipv4.dhcp-send-hostname:yes
ipv4.dhcp-hostname:
ipv4.dhcp-fqdn:
ipv4.dhcp-hostname-flags:0x0
ipv4.never-default:no
ipv4.may-fail:yes
ipv4.dad-timeout:-1
ipv4.dhcp-vendor-class-identifier:
ipv6.method:disabled
ipv6.dns:
ipv6.dns-search:
ipv6.dns-options:
ipv6.dns-priority:0
ipv6.addresses:
ipv6.gateway:
ipv6.routes:
ipv6.route-metric:-1
ipv6.route-table:0
ipv6.routing-rules:
ipv6.ignore-auto-routes:no
ipv6.ignore-auto-dns:no
ipv6.never-default:no
ipv6.may-fail:yes
ipv6.ip6-privacy:-1
ipv6.addr-gen-mode:stable-privacy
ipv6.ra-timeout:0
ipv6.dhcp-duid:
ipv6.dhcp-iaid:
ipv6.dhcp-timeout:0
ipv6.dhcp-send-hostname:yes
ipv6.dhcp-hostname:
ipv6.dhcp-hostname-flags:0x0
ipv6.token:
proxy.method:none
proxy.browser-only:no
proxy.pac-url:
proxy.pac-script:

journalctl -u NetworkManager

Dec 01 21:25:16 ignyter NetworkManager[659]: <info>  [1606879516.4501] policy: auto-activating connection 'myssid' (39a38116-0be8-48a7-9ffc-8a378c9330c5)
Dec 01 21:25:16 ignyter NetworkManager[659]: <info>  [1606879516.4512] device (wlp5s0u2): Activation: starting connection 'myssid' (39a38116-0be8-48a7-9ffc-8a378c9330c5)
Dec 01 21:25:16 ignyter NetworkManager[659]: <info>  [1606879516.4515] device (wlp5s0u2): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Dec 01 21:25:16 ignyter NetworkManager[659]: <info>  [1606879516.4528] manager: NetworkManager state is now CONNECTING
Dec 01 21:25:16 ignyter NetworkManager[659]: <info>  [1606879516.4538] device (wlp5s0u2): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Dec 01 21:25:18 ignyter NetworkManager[659]: <info>  [1606879518.7232] device (wlp5s0u2): Activation: (wifi) access point 'myssid' has security, but secrets are required.
Dec 01 21:25:18 ignyter NetworkManager[659]: <info>  [1606879518.7232] device (wlp5s0u2): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Dec 01 21:25:18 ignyter NetworkManager[659]: <info>  [1606879518.7352] device (wlp5s0u2): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Dec 01 21:25:18 ignyter NetworkManager[659]: <info>  [1606879518.7357] device (wlp5s0u2): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Dec 01 21:25:18 ignyter NetworkManager[659]: <info>  [1606879518.7360] device (wlp5s0u2): Activation: (wifi) connection 'myssid' has security, and secrets exist.  No new secrets needed.
Dec 01 21:25:18 ignyter NetworkManager[659]: <info>  [1606879518.7361] Config: added 'ssid' value 'myssid'
Dec 01 21:25:18 ignyter NetworkManager[659]: <info>  [1606879518.7361] Config: added 'scan_ssid' value '1'
Dec 01 21:25:18 ignyter NetworkManager[659]: <info>  [1606879518.7361] Config: added 'bssid' value 'myssid_bssid_mac_address'
Dec 01 21:25:18 ignyter NetworkManager[659]: <info>  [1606879518.7361] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK'
Dec 01 21:25:18 ignyter NetworkManager[659]: <info>  [1606879518.7361] Config: added 'psk' value '<hidden>'
Dec 01 21:25:25 ignyter NetworkManager[659]: <info>  [1606879525.1057] device (wlp5s0u2): supplicant interface state: disconnected -> associating
Dec 01 21:25:25 ignyter NetworkManager[659]: <info>  [1606879525.1057] device (p2p-dev-wlp5s0u2): supplicant management interface state: disconnected -> associating
Dec 01 21:25:26 ignyter NetworkManager[659]: <info>  [1606879526.0939] device (wlp5s0u2): supplicant interface state: associating -> disconnected
Dec 01 21:25:26 ignyter NetworkManager[659]: <info>  [1606879526.0940] device (p2p-dev-wlp5s0u2): supplicant management interface state: associating -> disconnected
Dec 01 21:25:29 ignyter NetworkManager[659]: <info>  [1606879529.4367] device (wlp5s0u2): supplicant interface state: disconnected -> scanning
Dec 01 21:25:29 ignyter NetworkManager[659]: <info>  [1606879529.4368] device (p2p-dev-wlp5s0u2): supplicant management interface state: disconnected -> scanning
Dec 01 21:25:30 ignyter NetworkManager[659]: <info>  [1606879530.6611] device (wlp5s0u2): supplicant interface state: scanning -> associating
Dec 01 21:25:30 ignyter NetworkManager[659]: <info>  [1606879530.6615] device (p2p-dev-wlp5s0u2): supplicant management interface state: scanning -> associating
Dec 01 21:25:31 ignyter NetworkManager[659]: <info>  [1606879531.0909] device (wlp5s0u2): supplicant interface state: associating -> disconnected
Dec 01 21:25:31 ignyter NetworkManager[659]: <info>  [1606879531.0910] device (p2p-dev-wlp5s0u2): supplicant management interface state: associating -> disconnected
Dec 01 21:25:32 ignyter NetworkManager[659]: <info>  [1606879532.0971] device (wlp5s0u2): supplicant interface state: disconnected -> scanning
Dec 01 21:25:32 ignyter NetworkManager[659]: <info>  [1606879532.0972] device (p2p-dev-wlp5s0u2): supplicant management interface state: disconnected -> scanning
Dec 01 21:25:32 ignyter NetworkManager[659]: <info>  [1606879532.9138] device (wlp5s0u2): supplicant interface state: scanning -> associating
Dec 01 21:25:32 ignyter NetworkManager[659]: <info>  [1606879532.9139] device (p2p-dev-wlp5s0u2): supplicant management interface state: scanning -> associating
Dec 01 21:25:33 ignyter NetworkManager[659]: <info>  [1606879533.2407] device (wlp5s0u2): supplicant interface state: associating -> disconnected
Dec 01 21:25:33 ignyter NetworkManager[659]: <info>  [1606879533.2408] device (p2p-dev-wlp5s0u2): supplicant management interface state: associating -> disconnected
Dec 01 21:25:44 ignyter NetworkManager[659]: <warn>  [1606879544.4734] device (wlp5s0u2): Activation: (wifi) association took too long
Dec 01 21:25:44 ignyter NetworkManager[659]: <info>  [1606879544.4735] device (wlp5s0u2): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Dec 01 21:25:44 ignyter NetworkManager[659]: <warn>  [1606879544.4753] device (wlp5s0u2): Activation: (wifi) asking for new secrets
Dec 01 21:25:46 ignyter NetworkManager[659]: <info>  [1606879546.4755] device (wlp5s0u2): supplicant interface state: disconnected -> scanning
Dec 01 21:25:46 ignyter NetworkManager[659]: <info>  [1606879546.4755] device (p2p-dev-wlp5s0u2): supplicant management interface state: disconnected -> scanning
Dec 01 21:25:47 ignyter NetworkManager[659]: <info>  [1606879547.6994] device (wlp5s0u2): supplicant interface state: scanning -> inactive
Dec 01 21:25:47 ignyter NetworkManager[659]: <info>  [1606879547.6995] device (p2p-dev-wlp5s0u2): supplicant management interface state: scanning -> inactive
Dec 01 21:26:22 ignyter NetworkManager[659]: <info>  [1606879582.7081] agent-manager: agent[5adcc29293f84dbc,:1.6546/nmcli-connect/1000]: agent registered
Dec 01 21:26:22 ignyter NetworkManager[659]: <info>  [1606879582.7110] device (wlp5s0u2): state change: need-auth -> deactivating (reason 'new-activation', sys-iface-state: 'managed')
Dec 01 21:26:22 ignyter NetworkManager[659]: <info>  [1606879582.7114] manager: NetworkManager state is now CONNECTED_LOCAL
Dec 01 21:26:22 ignyter NetworkManager[659]: <info>  [1606879582.7129] device (wlp5s0u2): disconnecting for new activation request.
Dec 01 21:26:22 ignyter NetworkManager[659]: <info>  [1606879582.7130] audit: op="connection-activate" uuid="39a38116-0be8-48a7-9ffc-8a378c9330c5" name="myssid" pid=14614 uid=1000 result="success"
Dec 01 21:26:22 ignyter NetworkManager[659]: <warn>  [1606879582.7229] device (wlp5s0u2): Deactivation failed: GDBus.Error:fi.w1.wpa_supplicant1.NotConnected: This interface is not connected
Dec 01 21:26:22 ignyter NetworkManager[659]: <info>  [1606879582.7230] device (wlp5s0u2): state change: deactivating -> disconnected (reason 'new-activation', sys-iface-state: 'managed')
Dec 01 21:26:22 ignyter NetworkManager[659]: <info>  [1606879582.7245] device (wlp5s0u2): Activation: starting connection 'myssid' (39a38116-0be8-48a7-9ffc-8a378c9330c5)
Dec 01 21:26:22 ignyter NetworkManager[659]: <info>  [1606879582.7257] device (wlp5s0u2): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Dec 01 21:26:22 ignyter NetworkManager[659]: <info>  [1606879582.7262] manager: NetworkManager state is now CONNECTING
Dec 01 21:26:22 ignyter NetworkManager[659]: <info>  [1606879582.7269] device (wlp5s0u2): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Dec 01 21:26:25 ignyter NetworkManager[659]: <info>  [1606879585.9546] device (wlp5s0u2): Activation: (wifi) access point 'myssid' has security, but secrets are required.
Dec 01 21:26:25 ignyter NetworkManager[659]: <info>  [1606879585.9546] device (wlp5s0u2): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Dec 01 21:26:25 ignyter NetworkManager[659]: <info>  [1606879585.9652] device (wlp5s0u2): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Dec 01 21:26:25 ignyter NetworkManager[659]: <info>  [1606879585.9657] device (wlp5s0u2): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Dec 01 21:26:25 ignyter NetworkManager[659]: <info>  [1606879585.9660] device (wlp5s0u2): Activation: (wifi) connection 'myssid' has security, and secrets exist.  No new secrets needed.
Dec 01 21:26:25 ignyter NetworkManager[659]: <info>  [1606879585.9660] Config: added 'ssid' value 'myssid'
Dec 01 21:26:25 ignyter NetworkManager[659]: <info>  [1606879585.9660] Config: added 'scan_ssid' value '1'
Dec 01 21:26:25 ignyter NetworkManager[659]: <info>  [1606879585.9661] Config: added 'bssid' value 'myssid_bssid_mac_address'
Dec 01 21:26:25 ignyter NetworkManager[659]: <info>  [1606879585.9661] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK'
Dec 01 21:26:25 ignyter NetworkManager[659]: <info>  [1606879585.9661] Config: added 'psk' value '<hidden>'
Dec 01 21:26:36 ignyter NetworkManager[659]: <info>  [1606879596.2156] device (wlp5s0u2): supplicant interface state: inactive -> scanning
Dec 01 21:26:36 ignyter NetworkManager[659]: <info>  [1606879596.2156] device (p2p-dev-wlp5s0u2): supplicant management interface state: inactive -> scanning
Dec 01 21:26:42 ignyter NetworkManager[659]: <info>  [1606879602.5457] device (wlp5s0u2): supplicant interface state: scanning -> associating
Dec 01 21:26:42 ignyter NetworkManager[659]: <info>  [1606879602.5458] device (p2p-dev-wlp5s0u2): supplicant management interface state: scanning -> associating
Dec 01 21:26:43 ignyter NetworkManager[659]: <info>  [1606879603.6942] device (wlp5s0u2): supplicant interface state: associating -> disconnected
Dec 01 21:26:43 ignyter NetworkManager[659]: <info>  [1606879603.6942] device (p2p-dev-wlp5s0u2): supplicant management interface state: associating -> disconnected
Dec 01 21:26:51 ignyter NetworkManager[659]: <warn>  [1606879611.4733] device (wlp5s0u2): Activation: (wifi) association took too long
Dec 01 21:26:51 ignyter NetworkManager[659]: <info>  [1606879611.4734] device (wlp5s0u2): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Dec 01 21:26:51 ignyter NetworkManager[659]: <warn>  [1606879611.4751] device (wlp5s0u2): Activation: (wifi) asking for new secrets
Dec 01 21:26:52 ignyter NetworkManager[659]: <info>  [1606879612.8996] device (wlp5s0u2): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Dec 01 21:26:52 ignyter NetworkManager[659]: <info>  [1606879612.9004] device (wlp5s0u2): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Dec 01 21:26:52 ignyter NetworkManager[659]: <info>  [1606879612.9010] device (wlp5s0u2): Activation: (wifi) connection 'myssid' has security, and secrets exist.  No new secrets needed.
Dec 01 21:26:52 ignyter NetworkManager[659]: <info>  [1606879612.9010] Config: added 'ssid' value 'myssid'
Dec 01 21:26:52 ignyter NetworkManager[659]: <info>  [1606879612.9010] Config: added 'scan_ssid' value '1'
Dec 01 21:26:52 ignyter NetworkManager[659]: <info>  [1606879612.9010] Config: added 'bssid' value 'myssid_bssid_mac_address'
Dec 01 21:26:52 ignyter NetworkManager[659]: <info>  [1606879612.9011] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK'
Dec 01 21:26:52 ignyter NetworkManager[659]: <info>  [1606879612.9011] Config: added 'psk' value '<hidden>'
Dec 01 21:26:56 ignyter NetworkManager[659]: <info>  [1606879616.1425] device (wlp5s0u2): supplicant interface state: disconnected -> scanning
Dec 01 21:26:56 ignyter NetworkManager[659]: <info>  [1606879616.1433] device (p2p-dev-wlp5s0u2): supplicant management interface state: disconnected -> scanning
Dec 01 21:27:02 ignyter NetworkManager[659]: <info>  [1606879622.3858] device (wlp5s0u2): supplicant interface state: scanning -> associating
Dec 01 21:27:02 ignyter NetworkManager[659]: <info>  [1606879622.3858] device (p2p-dev-wlp5s0u2): supplicant management interface state: scanning -> associating
Dec 01 21:27:03 ignyter NetworkManager[659]: <info>  [1606879623.8675] device (wlp5s0u2): supplicant interface state: associating -> disconnected
Dec 01 21:27:03 ignyter NetworkManager[659]: <info>  [1606879623.8676] device (p2p-dev-wlp5s0u2): supplicant management interface state: associating -> disconnected
Dec 01 21:27:17 ignyter NetworkManager[659]: <info>  [1606879637.1085] device (wlp5s0u2): supplicant interface state: disconnected -> scanning
Dec 01 21:27:17 ignyter NetworkManager[659]: <info>  [1606879637.1086] device (p2p-dev-wlp5s0u2): supplicant management interface state: disconnected -> scanning
Dec 01 21:27:18 ignyter NetworkManager[659]: <info>  [1606879638.3332] device (wlp5s0u2): supplicant interface state: scanning -> associating
Dec 01 21:27:18 ignyter NetworkManager[659]: <info>  [1606879638.3332] device (p2p-dev-wlp5s0u2): supplicant management interface state: scanning -> associating
Dec 01 21:27:18 ignyter NetworkManager[659]: <warn>  [1606879638.4727] device (wlp5s0u2): Activation: (wifi) association took too long
Dec 01 21:27:18 ignyter NetworkManager[659]: <info>  [1606879638.4728] device (wlp5s0u2): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Dec 01 21:27:18 ignyter NetworkManager[659]: <warn>  [1606879638.4747] device (wlp5s0u2): Activation: (wifi) asking for new secrets
Dec 01 21:27:21 ignyter NetworkManager[659]: <info>  [1606879641.9558] device (wlp5s0u2): supplicant interface state: associating -> disconnected
Dec 01 21:27:21 ignyter NetworkManager[659]: <info>  [1606879641.9559] device (p2p-dev-wlp5s0u2): supplicant management interface state: associating -> disconnected
Dec 01 21:27:21 ignyter NetworkManager[659]: <warn>  [1606879641.9648] device (wlp5s0u2): no secrets: User canceled the secrets request.
Dec 01 21:27:21 ignyter NetworkManager[659]: <info>  [1606879641.9648] device (wlp5s0u2): state change: need-auth -> failed (reason 'no-secrets', sys-iface-state: 'managed')
Dec 01 21:27:21 ignyter NetworkManager[659]: <info>  [1606879641.9656] manager: NetworkManager state is now CONNECTED_LOCAL
Dec 01 21:27:21 ignyter NetworkManager[659]: <warn>  [1606879641.9668] device (wlp5s0u2): Activation: failed for connection 'myssid'
Dec 01 21:27:21 ignyter NetworkManager[659]: <info>  [1606879641.9671] device (wlp5s0u2): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')

It just continues prompting for the PSK over and over and never connects. Is there something obvious I'm missing?

RinCat commented 3 years ago

Hi, set echo 6 > /proc/net/rtl88x2bu/log_level and see dmesg. Is there any new beacon occur!! in the log?

jsermer commented 3 years ago

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

dmesg.txt

RinCat commented 3 years ago

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.

jsermer commented 3 years ago

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]
RinCat commented 3 years ago

Try change your wifi router configuration and see if it works.

jsermer commented 3 years ago

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

RinCat commented 3 years ago

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.

jsermer commented 3 years ago

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.

jsermer commented 3 years ago

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.