# Does anyone have a working wifi WPA Access Point configuration for ConnectCard imx28?

**URL:** <https://forums.digi.com/t/does-anyone-have-a-working-wifi-wpa-access-point-configuration-for-connectcard-imx28/14752>\
**Category:** Linux\
**Tags:** wifi, wpa2\
**Created:** [April 23, 2015, 10:48pm UTC](https://forums.digi.com/t/does-anyone-have-a-working-wifi-wpa-access-point-configuration-for-connectcard-imx28/14752 "2015-04-23T22:48:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cobrien](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@cobrien](https://forums.digi.com/u/cobrien)\
**Post date:** [April 23, 2015, 10:48pm UTC](https://forums.digi.com/t/does-anyone-have-a-working-wifi-wpa-access-point-configuration-for-connectcard-imx28/14752/1 "2015-04-23T22:48:15Z")

</div>

I am trying to configure a ConnectCard imx28 to act as a wireless access point (layer 2).  
If I disable any security  
it works properly. If I enable WPA2 my (linux) client fails  
to connect, timing out when it should complete the “4-way-handshake”.

I am using Digi Embedded Yocto 1.6 for the root fs,  
and just adding hostapd. I have tried a stripped-down  
hostapd.conf with just:

interface=wlan0  
bridge=br0  
ssid=test\_wifi  
hw\_mode=g  
channel=1  
macaddr\_acl=0  
auth\_algs=3  
ignore\_broadcast\_ssid=0  
wpa=2  
wpa\_passphrase=12345678

I have also tried using the hostapd.conf provided with  
the hostapd distribution. All fail in the same way.

I did notice error messages from hostapd during startup:

Failed to create interface mon.wlan0: -95 (Operation not supported)  
Failed to update rate sets in kernel module

It is unclear if these are related to the problem.

I have tried example config files and adjusting the  
distribution config to no avail.

Has anyone been able to get this to work?

---

<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:** [April 24, 2015, 8:44pm UTC](https://forums.digi.com/t/does-anyone-have-a-working-wifi-wpa-access-point-configuration-for-connectcard-imx28/14752/2 "2015-04-24T20:44:41Z")

</div>

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 with WPA2-PSK authentication and AES-CCMP encryption, at 2.412 GHz using the pass phrase 12345678:

root@ /etc# cat /etc/wpa\_supplicant.conf

# 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”  
}  
root@ccimx6sbc:/etc#

root@ /etc# cat /etc/udhcpd.conf  
start 192.168.43.10  
end 192.168.43.20  
max\_leases 10  
lease\_file udhcpd.leases  
interface wlan0  
opt dns 192.168.43.1  
opt subnet 255.255.255.0  
opt router 192.168.43.1  
root@ /etc#

root@ /etc# killall wpa\_supplicant  
root@ /etc# wpa\_supplicant -i wlan0 -D nl80211 -c /etc/wpa\_supplicant.conf -B  
root@ /etc# udhcpd -f /etc/udhcpd.conf

and now I am able to connect to the module with windows 8.1 laptop using 12345678 as a password.

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  
}
