Wlan0: Association request to the driver failed

Dear All,

We got below error in imx6 module after wlan0 interface “down” and “up” using below command

ifconfig wlan0 down for wlan0 interface down

ifconfig wlan0 up for wlan0 interface up

“wlan0: Association request to the driver failed”

Now we are not able to do any communication using wireless module after this error.

We also tested with two different WiFi modules and both have same issue. And these both modules working fine with VF61 module.

Thanks & Best Regards,

Nikunj Patel

What exact hardware (module, carrier board and Wi-Fi device) and software versions of things are you talking about?

Dear Marcel,

Module: iMX6ULL 512MB WB IT (V1.1A)

Carrier Board: Custom board which was same as Colibri-eval board.

Wi-Fi devices : 1) TP Link USB Module (Link : https://www.tp-link.com/us/download/TL-WN725N.html)
2) RTL8723BU Realtek usb module.

Thanks & Best Regards,

Nikunj Patel

Dear Nikunj

Thanks for your Input.

Module: iMX6ULL 512MB WB IT (V1.1A)

The version of iMX6ULL you are using has got already Wifi integrated on the module. So why are you using these USB dongles?

Further could your provide the software version of the module ( uname -a )?
Have you done any changes to the software?

Could you provide the dmesg log in a file? Please provide also the output of lsmod and lsusb when the USB wifi dongles are inserted in the carrier board?

Thanks and best regards,
Jaski

Hi Jaski,

Please check below Details

root@colibri-imx6ull:~# uname -a

Linux colibri-imx6ull 4.9.84-+gb2a7f2f #36 SMP Fri Mar 1 16:52:42 IST 2019 armv7l
GNU/Linux

root@colibri-imx6ull:~# lsmod

Module Size Used by

bnep 11017 2

bluetooth 338764 9 bnep

8188eu 588906 0

cfg80211 255193 1 8188eu

mcp251x 10164 0

can_dev 12333 1 mcp251x

libcomposite 44402 0

configfs 31077 2 libcomposite

root@colibri-imx6ull:~# lsusb

Bus 001 Device 002: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@colibri-imx6ull:~# wpa_supplicant -Dnl80211 -iwlan0 -c/etc/test.conf

Successfully initialized wpa_supplicant

[ 9451.369363] ==> rtl8188e_iol_efuse_patch

[ 9451.802606] R8188EU: nolinked power save leave

wlan0: Trying to associate with ec:bd:1d:c3:90:b0 (SSID=‘SLS-WiFi’ freq=2412 MHz)

wlan0: Association request to the driver failed

wlan0: Trying to associate with ec:bd:1d:c3:90:b0 (SSID=‘SLS-WiFi’ freq=2412 MHz)

wlan0: Association request to the driver failed

wlan0: Trying to associate with cc:16:7e:96:eb:60 (SSID=‘SLS-WiFi’ freq=2412 MHz)

wlan0: Association request to the driver failed

^Cnl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: CTRL-EVENT-TERMINATING

Thanks & Best Regards,

Nikunj Patel

Can you try the same test using our official BSP 2.8b5?

Dear Dominik,

We did test using official “BSP 2.8b5” release and our issue was solved.
Now we are facing new issue as per below with hostapd. we can’t enable wifi in AP mode.

root@colibri-imx6ull:~#hostapd /etc/SLS_hostapd.conf -dd &
root@colibri-imx6ull:~# random: Trying to read entropy from /dev/random
Configuration file: /etc/SLS_hostapd.conf
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
nl80211: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 3 iftype 3 (AP)
nl80211: Failed to set interface 3 to mode 3: -95 (Operation not supported)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 3 iftype 3 (AP)
nl80211: Failed to set interface 3 to mode 3: -95 (Operation not supported)
nl80211: Interface mode change to 3 from 0 failed
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=3 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211 driver initialization failed.
hostapd_interface_deinit_free(0x1c289e0)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x1c289e0)
wlan0: interface state UNINITIALIZED->DISABLED
hostapd_bss_deinit: deinit bss wlan0
wlan0: AP-DISABLED 
hostapd_cleanup(hapd=0x1c294e8 (wlan0))
hostapd_free_hapd_data: Interface wlan0 wasn't started
hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
hostapd_interface_free(0x1c289e0)
hostapd_interface_free: free hapd 0x1c294e8
hostapd_cleanup_iface(0x1c289e0)
hostapd_cleanup_iface_partial(0x1c289e0)
hostapd_cleanup_iface: free iface=0x1c289e0


root@colibri-imx6ull:~# cat /etc/SLS_hostapd.conf 
interface=wlan0
#driver=nl80211
ssid=TESTAP
channel=1
hw_mode=b
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=1
wpa_passphrase=123456789
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP


root@colibri-imx6ull:~# lsmod
Module                  Size  Used by
bluetooth             330511  2
usb_f_rndis            15638  2
u_ether                12497  1 usb_f_rndis
rtl8xxxu              108792  0
mac80211              389458  1 rtl8xxxu
cfg80211              253353  1 mac80211
compat                 90221  4 bluetooth,mac80211,rtl8xxxu,cfg80211
mcp251x                10164  0
can_dev                12699  1 mcp251x
libcomposite           44632  10 usb_f_rndis
configfs               31077  3 usb_f_rndis,libcomposite

Thanks & Best Regards,

Nikunj Patel

This driver (rtl8xxxu) only supports client mode operations.If you require AP mode your only option is the 8188eu driver you’ve used before.

Dear Dominik,

We added our driver then after “hostapd” mode is working fine. but now the same problem occurs in “wpa-supplicant” as before.
we can’t understand why this happens only in imx6? not in VF61.

so please guide us how we solved this problem?

Thanks & Best Regards,

Nikunj Patel

hi Nikunj

Actually VF61 is using a different kernel than iMX6. The driver provided by TP Link is working well for the kernel 4.1 but not 4.9. So you need either to integrate the 8188eu driver in the 4.1 or use the new driver without AP with the new Kernel.

As alternative, I will suggest you to use the iMX6ULL WB version.

Best regards,
Jaski

Dear Jaski,

There was one our end application in which we are using the “USB wifi” dongle with imX6ull module (which does not have wifi inbuilt).
Now we have tested another module and it’s have same issue with wpa-supplicant in station mode. We tested with updated “wpa-supplicant” version 2.7 from 2.6. but still we are facing same error as below.

it will be good if you provide any way to solve this issue.

root@colibri-imx6ull:/lib/modules/4.9.84-+gb2a7f2f/kernel/drivers/net/wireless# ifconfig  wlan0 up  
root@colibri-imx6ull:/lib/modules/4.9.84-+gb2a7f2f/kernel/drivers/net/wireless# wlan0: Trying to associate with ec:bd:1d:c3:90:b0 (SSID='SLS-WiFi' freq=2462 MHz)
wlan0: Association request to the driver failed
wlan0: Trying to associate with 04:62:73:0e:21:40 (SSID='SLS-WiFi' freq=2412 MHz)
wlan0: Association request to the driver failed
wlan0: Trying to associate with cc:16:7e:54:30:b0 (SSID='SLS-WiFi' freq=2437 MHz)
wlan0: Association request to the driver failed
wlan0: Trying to associate with cc:16:7e:96:eb:60 (SSID='SLS-WiFi' freq=2462 MHz)
wlan0: Association request to the driver failed
wlan0: Trying to associate with ec:bd:1d:c3:90:b0 (SSID='SLS-WiFi' freq=2462 MHz)
wlan0: Association request to the driver failed
wlan0: Trying to associate with 04:62:73:0e:21:40 (SSID='SLS-WiFi' freq=2412 MHz)
wlan0: Association request to the driver failed
wlan0: Trying to associate with cc:16:7e:54:30:b0 (SSID='SLS-WiFi' freq=2437 MHz)
wlan0: Association request to the driver failed
wlan0: Trying to associate with cc:16:7e:96:eb:60 (SSID='SLS-WiFi' freq=2462 MHz)
wlan0: Association request to the driver failed
wlan0: Trying to associate with ec:bd:1d:c3:90:b0 (SSID='SLS-WiFi' freq=2462 MHz)

Thanks & Best Regards,
Nikunj Patel

Dear Nikunj

Now we have tested another module and it’s have same issue with wpa-supplicant in station mode. We tested with updated “wpa-supplicant” version 2.7 from 2.6. but still we are facing same error as below.

Is this with your usb dongle? Could you provide the software version ( uname -a )?

Dear Jaski,

Yes with another USB Wifi Dongle (RTL8723BU).
Please find the below output of uname -a command

uname -a

Linux colibri-imx6ull 4.9.144-+g5758a8e #4 SMP Thu Mar 14 19:11:31 IST 2019 armv7l armv7l armv7l GNU/Linux

Thanks & Best Regards,

Nikunj Patel

Dear Nikunj

Thanks for this Information.
Which driver did you use for this dongle? Did you backport it in the 4.9 kernel?
Could you provide a dmesg log and the output of lsmod? Thanks.

Dear Jaski,

Please check below the eoutput of “lsmod” command in which 8188eu & 8723bu is loaded by us which used for our USB WiFi Dongle.

Module                  Size  Used by
8188eu                588906  0
8723bu                840669  0
cfg80211              256141  2 8723bu,8188eu
btusb                  30467  0
btrtl                   5408  1 btusb
btbcm                   7442  1 btusb
btintel                12413  1 btusb
rfcomm                 34153  2
bnep                   11114  2
btmrvl_sdio            12451  0
btmrvl                 11916  1 btmrvl_sdio
bluetooth             330575  34 btmrvl_sdio,btrtl,btintel,bnep,btbcm,rfcomm,btusb,btmrvl
compat                 90285  5 btmrvl_sdio,bluetooth,bnep,rfcomm,btusb
mcp251x                10164  0
can_dev                12699  1 mcp251x
libcomposite           44632  0
configfs               31141  2 libcomposite

Thanks & Best Regards,

Nikunj Patel

Dear Jaski,

Any update for the above issue?

Thanks & Best Regards,

Nikunj Patel

Dear Nikunj

I gave this issue to @ashok.tx one of our FAEs in India. I think it will be nice, if you can send him one sample of your Wifi dongle, which is not working.

Best regards, Jaski

Dear Jaski,

Thanks for your support.

It will be good if you will introduce to me with Ashok so, i will get the address from him and do the further process for the same.

Thanks & Best Regards,
Nikunj Patel

Dear Jaski,

Gentle reminder,

Thanks & Best Regards,
Nikunj Patel

Hi Nikunj,

please provide me your contact details/email id so that we can proceed further .