wpa_supplicant with D-Bus support deauthenticating by local choice (Reason: 3=DEAUTH_LEAVING)

Moderators: Oren.R, Eran.M

Andrew F
Posts: 7
Joined: Mon Feb 06, 2017 2:34 pm

wpa_supplicant with D-Bus support deauthenticating by local choice (Reason: 3=DEAUTH_LEAVING)

Postby Andrew F » Tue Apr 04, 2017 10:42 am

We're trying to use Network Manager to control wpa_supplicant via its D-Bus interface. We're using a SOM-DUAL with the Jethro on it. To enable this, I've done the following:

1. Changed defconfig at meta-variscite-mx6/recipes-connectivity/wpa-supplicant/wpa-supplicant/defconfig to enable the relevant D-Bus support. This matches the change made on the Krogoth branch at https://github.com/varigit/meta-varisci ... ffa69fd2ac.
2. Removed /etc/network/if-pre-up.d/wpa-supplicant from the filesytem, matching the change at https://github.com/varigit/meta-varisci ... e74c59ad96
3. Commented out "concurrent_sched_scan=1" in /etc/wpa_supplicant.conf matching the change at https://github.com/varigit/meta-varisci ... ddc3c1271e

This seems to work sufficiently to enable nmcli to interface with wpa_supplicant, e.g.

Code: Select all

root@var-som-mx6:~# nmcli d
DEVICE  TYPE      STATE         CONNECTION
usb0    ethernet  connected     Ifupdown (usb0)
wlan0   wifi      disconnected  --
eth0    ethernet  unavailable   --
can0    can       unmanaged     --
sit0    iptunnel  unmanaged     --
lo      loopback  unmanaged     --


Code: Select all

root@var-som-mx6:~# nmcli dev wifi list
*  SSID              MODE   CHAN  RATE       SIGNAL  BARS  SECURITY
   Acme-Partners       Infra  1     54 Mbit/s  80      ***   WPA2
   Acme-Corp           Infra  1     54 Mbit/s  80      ***   WPA2 802.1X
   Acme-Project-Only   Infra  1     54 Mbit/s  80      ***   WPA2
   Acme-BYOD           Infra  1     54 Mbit/s  80      ***   WPA2
   Acme-Guest          Infra  1     54 Mbit/s  80      ***
   Acme-Guest          Infra  11    54 Mbit/s  75      ***
   Acme-Partners       Infra  11    54 Mbit/s  75      ***   WPA2
   Acme-Corp           Infra  11    54 Mbit/s  75      ***   WPA2 802.1X


I'm able to associate with a network, but the connection keeps dropping with a reason of "local choice (Reason: 3=DEAUTH_LEAVING)"

Here's the successful association followed by

Code: Select all

root@var-som-mx6:~# nmcli dev wifi connect Acme-BYOD password <acme-password>
wlcore: down
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
wlan0: authenticate with 04:bd:88:ff:ff:10
wlan0: send auth to 04:bd:88:ff:ff:10 (try 1/3)
wlan0: authenticated
wlan0: associate with 04:bd:88:ff:ff:10 (try 1/3)
wlan0: RX AssocResp from 04:bd:88:ff:ff:10 (capab=0x11 status=0 aid=8)
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: associated
cfg80211: Calling CRDA for country: GB
cfg80211: Regulatory domain changed to country: GB
cfg80211:  DFS Master region: ETSI
cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
cfg80211:   (5490000 KHz - 5710000 KHz @ 160000 KHz), (N/A, 2700 mBm), (0 s)
cfg80211:   (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
wlcore: Association completed.
Device 'wlan0' successfully activated with '64d4e2e5-9761-4568-8246-45f158bc1b40'.
wlcore: down
wlan0: deauthenticating from 04:bd:88:ff:ff:10 by local choice (Reason: 3=DEAUTH_LEAVING)
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
cfg80211:  DFS Master region: unset
cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
wlcore: down
wlcore: PHY firmware version: Rev 8.2.0.1.233
wlcore: firmware booted (Rev 8.9.0.2.55)
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready


Any ideas what's going on? This appears to be an issue using Network Manager 1.0.4 and 1.4.2. On the Krogoth branch it seems like the wpa_supplicant recipe has changed, and similarly the firmware for the wl18xx has changed, but these haven't been backported to the Jethro branch. Are these changes significant?

Return to “Yocto”

Who is online

Users browsing this forum: No registered users and 3 guests