mak3r / turnkey

turnkey operations from containers - prebuilt images with k3s running hosting the setup container
Apache License 2.0
9 stars 2 forks source link

Cannot connect to 5G networks #1

Closed mak3r closed 4 years ago

mak3r commented 4 years ago

Device:

RaspberryPi 4B 4GB

Host OS:

Raspbian Buster

uname -a:

Linux raspberrypi 5.4.35-v8+ #1314 SMP PREEMPT Fri May 1 17:54:25 BST 2020 aarch64 GNU/Linux

Expected outcome:

When using the mak3r/wifi:v0.0.2 container I expect to be able to connect to both 2.4Ghz and 5Ghz networks.

Actual outcome:

When using the mak3r/wifi:v0.0.2 container I cannot connect to 5G networks

root@raspberrypi:/app# /sbin/wpa_supplicant -iwlan0 -c/app/wpa.conf
Successfully initialized wpa_supplicant
wlan0: Trying to associate with SSID 'GL-AR750S-af8-5G'
wlan0: CTRL-EVENT-ASSOC-REJECT bssid=e4:95:6e:49:9a:f9 status_code=16
wlan0: Trying to associate with SSID 'GL-AR750S-af8-5G'
^Cnl80211: Failed to open /proc/sys/net/ipv4/conf/p2p-dev-wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv4 unicast in multicast filter
nl80211: Failed to open /proc/sys/net/ipv4/conf/p2p-dev-wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv4 unicast in multicast filter
nl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
p2p-dev-wlan0: CTRL-EVENT-TERMINATING 
wlan0: CTRL-EVENT-DISCONNECTED bssid=e4:95:6e:49:9a:f9 reason=3 locally_generated=1
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: CTRL-EVENT-TERMINATING 
root@raspberrypi:/app# /sbin/wpa_supplicant -iwlan0 -c/app/wpa.conf -Dnl80211
Successfully initialized wpa_supplicant
wlan0: Trying to associate with SSID 'GL-AR750S-af8-5G'
wlan0: CTRL-EVENT-ASSOC-REJECT bssid=e4:95:6e:49:9a:f9 status_code=16
wlan0: Trying to associate with SSID 'GL-AR750S-af8-5G'
wlan0: CTRL-EVENT-ASSOC-REJECT bssid=e4:95:6e:49:9a:f9 status_code=16
wlan0: Trying to associate with SSID 'GL-AR750S-af8-5G'
wlan0: CTRL-EVENT-ASSOC-REJECT bssid=e4:95:6e:49:9a:f9 status_code=16
wlan0: Trying to associate with SSID 'GL-AR750S-af8-5G'
^Cnl80211: Failed to open /proc/sys/net/ipv4/conf/p2p-dev-wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv4 unicast in multicast filter
nl80211: Failed to open /proc/sys/net/ipv4/conf/p2p-dev-wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv4 unicast in multicast filter
nl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
p2p-dev-wlan0: CTRL-EVENT-TERMINATING 
wlan0: CTRL-EVENT-DISCONNECTED bssid=e4:95:6e:49:9a:f9 reason=3 locally_generated=1
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: CTRL-EVENT-TERMINATING 
root@raspberrypi:/app# dbus-uuidgen 
81a883a292f0efa0dbc5d6935ed6bb60
root@raspberrypi:/app# dbus-uuidgen > /var/lib/dbus/machine-id
root@raspberrypi:/app# mkdir -p /var/run/dbus
root@raspberrypi:/app# dbus-daemon --config-file=/usr/share/dbus-1/system.conf --print-address
unix:path=/var/run/dbus/system_bus_socket,guid=a98cd6773ccdf05bcf1a05f35ed6bba5
root@raspberrypi:/app# /sbin/wpa_supplicant -iwlan0 -c/app/wpa.conf
Successfully initialized wpa_supplicant
wlan0: Trying to associate with SSID 'GL-AR750S-af8-5G'
wlan0: CTRL-EVENT-ASSOC-REJECT bssid=e4:95:6e:49:9a:f9 status_code=16
wlan0: Trying to associate with SSID 'GL-AR750S-af8-5G'
^Cnl80211: Failed to open /proc/sys/net/ipv4/conf/p2p-dev-wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv4 unicast in multicast filter
nl80211: Failed to open /proc/sys/net/ipv4/conf/p2p-dev-wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv4 unicast in multicast filter
nl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
p2p-dev-wlan0: CTRL-EVENT-TERMINATING 
wlan0: CTRL-EVENT-DISCONNECTED bssid=e4:95:6e:49:9a:f9 reason=3 locally_generated=1
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: CTRL-EVENT-TERMINATING 
root@raspberrypi:/app# vi wpa.conf 
root@raspberrypi:/app# wpa_passphrase GL-AR750S-af8 bootleg-balsa-dictate
network={
        ssid="GL-AR750S-af8"
        #psk="bootleg-balsa-dictate"
        psk=27d24d01601e9c244331744956eb03c238ea2efc1a6bfec79751202255a62525
}
root@raspberrypi:/app# wpa_passphrase GL-AR750S-af8 bootleg-balsa-dictate > wpa.conf 
root@raspberrypi:/app# /sbin/wpa_supplicant -iwlan0 -c/app/wpa.conf
Successfully initialized wpa_supplicant
wlan0: Trying to associate with SSID 'GL-AR750S-af8'
wlan0: Associated with 00:00:00:00:00:00
wlan0: CTRL-EVENT-CONNECTED - Connection to 00:00:00:00:00:00 completed [id=0 id_str=]
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0

Additional Info:

32bit user land on the host with a 64 bit kernel via rpi-upgrade command

mak3r commented 4 years ago

This needs to be retested with mak3r/wifi:v0.0.3 or later. There was an issue with how the wpa_supplicant.conf was being written out - with incorrect psk value and this may be related.