# Still problem to configure wiimx28 revc card wlan0 cfg80211

**URL:** <https://forums.digi.com/t/still-problem-to-configure-wiimx28-revc-card-wlan0-cfg80211/14998>\
**Category:** Linux\
**Tags:** wiimx28, revc, cfg80211, wlan0, wpa-supplicant\
**Created:** [June 19, 2015, 12:14am UTC](https://forums.digi.com/t/still-problem-to-configure-wiimx28-revc-card-wlan0-cfg80211/14998 "2015-06-19T00:14:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xavierdb](https://avatars.discourse-cdn.com/v4/letter/x/48db29/32.png) [@xavierdb](https://forums.digi.com/u/xavierdb)\
**Post date:** [June 19, 2015, 12:14am UTC](https://forums.digi.com/t/still-problem-to-configure-wiimx28-revc-card-wlan0-cfg80211/14998/1 "2015-06-19T00:14:31Z")

</div>

So, i setup a uboot/kernel/rootfs with :

- invalidate all Bluetooth & Eth1

Then, updated with them.

I have got

Starting network.  
Starting bluetooth services.  
/etc/init.d/rcS: FAILED (variant 0x07 does not support bluetooth)  
ath6kl: temporary war to avoid sdio crc error  
Starting dropbear sshd: OK

ifconfig gave me : eth0 & wlan0 available.

Is it normal to get a bluetooth failed even with no bluetooth asked ?

=================================

After that, in our user software i need to create wifi AP using wpa-supplicant. Up to now, i used cfg80211 driver and got no problem.

Then , i tried to add “cfg80211” driver.  
So, i checked the cfg80211 checkbox and wireless lan (as i did with my old ccard). I got a lot of warnings during the make process and as result on linux console :

Starting network.  
Starting bluetooth services.  
/etc/init.d/rcS: FAILED (variant 0x07 does not support bluetooth)  
modprobe: can’t load module ath6kl\_sdio (extra/ath6kl\_sdio.ko): Invalid argument  
Loading ath6kl\_sdio module: [FAILED]  
ifconfig: SIOCGIFFLAGS: No such device  
Starting dropbear sshd: OK

ifconfig gave me : eth0 but no wlan0 available.

=================================

Could you tell me, please :

- if i have to use cfg80211 to set an AP with wpa-supplicant ?
- and, if yes, how to configure correctly it ?

Thank you very much Leonid

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [June 19, 2015, 10:09am UTC](https://forums.digi.com/t/still-problem-to-configure-wiimx28-revc-card-wlan0-cfg80211/14998/2 "2015-06-19T10:09:58Z")

</div>

So are you able to use wifi now and connect to wireless AP.

\>Is it normal to get a bluetooth failed even with no bluetooth asked ?  
Are you sure you have updated both kernel and rootfs with images you have built?

If basic wifi works you can proceed to the next step and configure SoftAP.  
DEL documentation shows how to configure ccwimx28 wifi in SoftAP mode:  
The ConnectCard for i.MX28 module includes a wireless chip by Qualcomm Atheros. The driver supports 802.11a/b/g/n and 802.11h/d/i/e. The driver for this chip is provided in source code and built as an external module. This chapter describes some of the driver specific features and control commands.

The Atheros wireless driver can be configured in SoftAP mode using wpa\_supplicant.

The following excerpt shows the /etc/wpa\_supplicant.conf configuration file for making the target work as SoftAP in open authentication and no encryption mode, at 2.412 GHz:

# SoftAP mode (open/no encryption)

ctrl\_interface=/var/run/wpa\_supplicant  
ctrl\_interface\_group=0  
fast\_reauth=1  
update\_config=1

ap\_scan=2  
network={  
ssid=“ath6kl-ap”  
mode=2  
frequency=2412  
key\_mgmt=NONE  
}  
A client station that wants to connect to the target’s SoftAP needs to configure its /etc/wpa\_supplicant.conf like this:.

# Client that connects to the SoftAP

ctrl\_interface=/var/run/wpa\_supplicant  
ctrl\_interface\_group=0  
fast\_reauth=1  
update\_config=1

ap\_scan=1  
network={  
scan\_ssid=1  
ssid=“ath6kl-ap”  
key\_mgmt=NONE  
}  
The following excerpt shows the /etc/wpa\_supplicant.conf configuration file for making the target work as SoftAP with WPA2-PSK authentication and AES-CCMP encryption, at 2.412 GHz using the pass phrase 12345678:

# SoftAP mode (WPA-PSK/AES)

ctrl\_interface=/var/run/wpa\_supplicant  
ctrl\_interface\_group=0  
fast\_reauth=1  
update\_config=1

ap\_scan=2  
network={  
ssid=“ath6kl-ap”  
mode=2  
frequency=2412  
key\_mgmt=WPA-PSK  
proto=RSN  
pairwise=CCMP  
psk=“12345678”  
}  
To connect to the AP from a client station, a PSK key must be generated based on the SoftAP SSID and its pass phrase. The wpa\_passphrase application can be used to get such key. In our example:

# wpa\_passphrase ath6kl-ap 12345678

network={  
ssid=“ath6kl-ap”  
#psk=“12345678”  
psk=27b9137ab2d24609864128ea8c97399f06ca37ff2ca40c6617a17d265e57b171  
}  
Once we have the key, we can establish the complete configuration for the client station.

# Client that connects to the SoftAP

ctrl\_interface=/var/run/wpa\_supplicant  
ctrl\_interface\_group=0  
fast\_reauth=1  
update\_config=1

ap\_scan=1  
network={  
scan\_ssid=1  
ssid=“ath6kl-ap”  
key\_mgmt=WPA-PSK  
proto=RSN  
pairwise=CCMP  
#psk=“12345678”  
psk=27b9137ab2d24609864128ea8c97399f06ca37ff2ca40c6617a17d265e57b171  
}
