ATH10K Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Simultaneous hostapd and wpa_supplicant on QCA9880
@ 2015-08-05 17:08 Ann Lo
  2015-08-05 19:21 ` Ben Greear
  2015-08-06  4:45 ` Janusz Dziedzic
  0 siblings, 2 replies; 4+ messages in thread
From: Ann Lo @ 2015-08-05 17:08 UTC (permalink / raw)
  To: ath10k

Hello,

Has anyone succeeded in running hostapd and wpa_supplicant at the same
time on a single QCA9880? I have not been able to. Does anyone have any
luck with this?

The software/firmware I use:

- Linux kernel 3.16.0-34-generic
- firmware-2 version 10.1.467.2-1
- wpa_supplicant version 2.1
- hostapd version 2.4

Configuration:

- iw dev wlan4 interface add clientwlan type managed
- iw dev wlan4 interface add apwlan type __ap
- ip link set clientwlan address 04:f0:21:16:04:b0
- ip link set apwlan address 04:f0:21:16:04:b1
- ifconfig clientwlan up
- ifconfig apwlan up 10.0.0.1 netmask 255.255.255.0
- wpa_supplicant -iclientwlan -Dnl80211 -c wpa.test.conf
- hostapd -d hostapd-test.conf
- Both wpa_supplicant and hostapd use the same channel.

Problems:

(1) If wpa_supplicant is executed before hostapd, wpa_supplicant comes
     up OK but hostapd fails with the following errors:
     - nl80211: Beacon set failed: -16 (Device or resource busy)
     - Failed to set beacon parameters

(2) If hostapd is executed before wpa_supplicant, hostapd comes up OK
     but wpa_supplicant fails with the following errors:
     - nl80211: send_and_recv->nl_recvmsgs failed: -33
     - clientwlan: SME: Trying to authenticate with 00:03:07:12:34:56
(SSID='dd-wrt-ath1' freq=5220 MHz)
     - clientwlan: SME: Authentication request to the driver failed

Using the same configuration files, wpa_supplicant is able to connect
to the remote AP if hostapd is not executed. Similarly, hostapd is able
to provide service to the remote client if wpa_supplicant is not executed.
I have also tried configurations without any security. Same errors as
above when running hostapd and wpa_supplicant at the same time.

I have exhausted all information I could find from the web. According
to this link (http://www.candelatech.com/vsta.php), there is the
suggestion that HW encryption cannot work with multiple virtual
interfaces. In one of my tests, I have disabled security altogether by
using "key_mgmt=NONE" in the configuration file for wpa_supplicant.
It is not clear why there continues to be an error "Authentication
request to the driver failed".

Would you provide your expert opinions on this matter if you have the
experience?

Thanks,
Ann

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-07 20:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-05 17:08 Simultaneous hostapd and wpa_supplicant on QCA9880 Ann Lo
2015-08-05 19:21 ` Ben Greear
2015-08-06  4:45 ` Janusz Dziedzic
2015-08-07 20:13   ` Ann Lo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox