LM822 Wifi access point on APALIS imx6

Hello,

I am working with a Ixora carrier board and an Apalis imx6 module. I am trying to configure a wifi Acces Point using LM822 usb module. but i can’t get hostapd to start because of problems with the driver. Here are some informations regarding my environment and the hostapd.conf file :

hostapd.conf :

interface wlan du Wi-Fi

interface=wlan0

nl80211 avec tous les drivers Linux mac80211

driver=nl80211

Nom du spot Wi-Fi

ssid=lutz

mode Wi-Fi (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g)

hw_mode=g

canal de fréquence Wi-Fi (1-14)

channel=6

root@apalis-imx6:~# uname -a  
Linux apalis-imx6 4.9.87-2.8.4+g3bb6e3284a1b #1 SMP Fri Oct 5 16:02:39 UTC 2018 armv7l GNU/Linux
root@apalis-imx6:~# iw wlan0 info

Interface wlan0
  	ifindex 5
   	wdev 0x1
   	addr 34:c9:f0:87:b8:e2
   	type managed
   	wiphy 0
   	txpower 20.00 dBm

When i launch hostapd here is the result :

root@apalis-imx6:~# hostapd /etc/hostapd.conf 
Configuration file: /etc/hostapd.conf
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211 driver initialization failed.
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED 
hostapd_free_hapd_data: Interface wlan0 wasn't started

Thank you in advance.

hi @ouss91

Could you provide the version of the hardware of your module?
Which carrier board your using?

Could you update to a regular Bsp2.8b5 and check if you still have this issue?

Thanks and best regards,
Jaski

hi jaski,

I just upgraded the distribution (with opkg upgrade) and still have the same problem. I am working with Ixora carrier board V1.1A and Apalis imx6Q V1.1c module.

Thanks in advance

Hi,
you should not do opkg upgrade, this will lead to an usable system, as described here.

You rather should flash the Bsp 2.8b5 using Toradex Easy Installer.

Best regards,
Jaski

hi,

I boot directly into the Bsp now. I can’t boot into the Toradex easy installer. Can you please tell me how to go into the Toradex Easy installer menu ?

Thanks.

Sorry i just did that. I installed toradex easy installer and then proceeded to install Bsp 2.8b5. But i still have the same problem.

root@apalis-imx6:/etc# hostapd hostapd.conf

Configuration file: hostapd.conf

nl80211: Could not configure driver mode

nl80211: deinit ifname=wlan0 disabled_11b_rates=0

nl80211 driver initialization failed.

wlan0: interface state UNINITIALIZED->DISABLED

wlan0: AP-DISABLED

hostapd_free_hapd_data: Interface wlan0 wasn’t started

hi @ouss91

Unfortunately the driver included in our Bsp is only supporting client mode. If you require AP mode your only option is to integrate the 8188eu driver as discussed here.

Further we recommend you to use a pcie-based Wifi solutions or iMX6ULL for having working AP mode.

Best regards,
Jaski