Home/Support/Support Forum/Does anyone have a working wifi WPA Access Point configuration for ConnectCard imx28?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

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

+1 vote
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?
asked Apr 23, 2015 in Linux by cobrien New to the Community (2 points)
edited Apr 23, 2015 by cobrien

Please log in or register to answer this question.

1 Answer

+1 vote
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
}
answered Apr 24, 2015 by LeonidM Veteran of the Digi Community (4,454 points)
...