I finally managed to connect to my WiFi! I used the next line to verify that I could see my network, and copied the SSID into the wifi.config file.
iw wlan0 scan
I copied the SSID from the scanned output to the file /var/lib/connman/wifi.config so that it’s contents look like:
[service_home]
Type = wifi
Name = WimsWorld-5G
Security = wpa2-psk
Passphrase = MyRealPassword
With two blank lines ending the file. Nothing is quoted. I then rebooted my machine without having the 10/100 ethernet connected. I saw some blinking on my adapter, but was not able to see the device show up in the connected devices from my router. I connect the 10/100 ethernet and log in. looking at dmesg output I saw these lines:
[ 29.614314] wlan0: authenticate with 20:4e:7f:85:ce:5b
[ 29.637060] wlan0: send auth to 20:4e:7f:85:ce:5b (try 1/3)
[ 29.837710] wlan0: send auth to 20:4e:7f:85:ce:5b (try 2/3)
[ 29.838757] wlan0: authenticated
[ 29.839719] wlan0: associate with 20:4e:7f:85:ce:5b (try 1/3)
[ 29.841242] wlan0: RX AssocResp from 20:4e:7f:85:ce:5b (capab=0x411 status=0 aid=2)
[ 29.846048] wlan0: associated
[ 29.936091] wlan0: Limiting TX power to 23 (23 - 0) dBm as advertised by 20:4e:7f:85:ce:5b
[ 36.164316] wlan0: disassociating from 20:4e:7f:85:ce:5b by local choice (reason=3)
[ 36.237355] wlan0: deauthenticating from 20:4e:7f:85:ce:5b by local choice (reason=3)
some searching on the internet related to that led me to believe that it’s power management problems causing it to disconnect before it’s fully finished DHCP.
root@beaglebone:~# iwconfig
wlan0 IEEE 802.11abgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
root@beaglebone:~# iwconfig wlan0 power off
root@beaglebone:~# iwconfig
wlan0 IEEE 802.11abgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
And now I remove the 10/100 cable connection and it shows up on the wireless!
run dmesg and I can see:
[ 488.543241] wlan0: authenticate with 20:4e:7f:85:ce:5b
[ 488.562552] wlan0: send auth to 20:4e:7f:85:ce:5b (try 1/3)
[ 488.563108] wlan0: authenticated
[ 488.583848] wlan0: associate with 20:4e:7f:85:ce:5b (try 1/3)
[ 488.584955] wlan0: RX AssocResp from 20:4e:7f:85:ce:5b (capab=0x411 status=0 aid=2)
[ 488.589590] wlan0: associated
[ 488.606767] wlan0: Limiting TX power to 23 (23 - 0) dBm as advertised by 20:4e:7f:85:ce:5b
I had to run “opkg install wireless-tools” to get iwconfig, because it wasn’t part of the standard installation.
I’ve entered all of this information in this thread in the hopes that it’ll help someone else searching for these errors. I know that the MAC address of my router isn’t all that useful, but it’s what’s shown in the attempts to authenticate, and it helped me to understand that the wifi.config file was getting parsed at least well enough to figure out which network I wanted to connect to.
Is there a way to disable the wifi power management in the /var/lib/conman/wifi.config file?