I am trying to create an access point with an Atheros AR9382 wireless chip connected to a Toradex Apalis i.MX6 card via PCI Express.
The access point seems to be configured properly, however, the SSID is not broadcasted at all and it is not possible to connect.
I am using the newest distribution Toradex version 2.6, Ångström v2015.12, Yocto Jethro 2.0. This means that I have hostapd v2.4 and Linux kernel version 3.14.52. (The problem does not occur using Toradex version 2.4 with Linux kernel 3.10.17.)
The kernel identifies the card:
ath: EEPROM regdomain: 0x6a
ath: EEPROM indicates we should expect a direct regpair map
ath: Country alpha2 being used: 00
ath: Regpair used: 0x6a
ieee80211 phy0: Atheros AR9300 Rev:3 mem=0xc11c0000, irq=154
Please provide a longer log from hostapd (let it run for 5 min).
Do you have any wifi sniffer capable devices?
If you do, can you verify if there are any (even malformed) beacons coming form the ath9k.
There is no further output from hostapd at all, not even when running for 10 minutes. Using an Intel 7260 in monitor mode, wireshark can not detect anything coming from the ath9k. Beacons from other networks are detected well.
Are you using serial port or ssh over ethernet to setup AP?
Also make sure that wpa_supplicant is not running in the backgroud. I’d suggest disabling it altogether if it’s executed during boot.
The device associates, but the connection is lost after a few seconds with the message:
<3>CTRL-EVENT-DISCONNECTED bssid=f0:25:b7:b2:b1:14 reason=4 locally_generated=1
I have tried both solutions but unfortunately the problem remains and the symptoms are the same. I’ve also tried to disable powersaving altogether by removing the options from init.c in the ath9k source, but it still remains the same.
The configuration as well as the output looks good to me too… Could it be a hardware issue? Are you using an antenna? Did you tried to use a different antenna?
Also, if not running in AP mode, can you connect to Wifis using that card?