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

* Re: Simultaneous hostapd and wpa_supplicant on QCA9880
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Ben Greear @ 2015-08-05 19:21 UTC (permalink / raw)
  To: Ann Lo, ath10k

CT firmware can do this:

http://www.candelatech.com/ath10k.php

Thanks,
Ben


On 08/05/2015 10:08 AM, Ann Lo wrote:
> 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
>

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

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

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

* Re: Simultaneous hostapd and wpa_supplicant on QCA9880
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Janusz Dziedzic @ 2015-08-06  4:45 UTC (permalink / raw)
  To: Ann Lo; +Cc: ath10k@lists.infradead.org

On 5 August 2015 at 19:08, Ann Lo <annlo@ieee.org> wrote:
> 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
I think you should update your kernel - best compile code from gitub
https://github.com/kvalo/ath
Next you will get fresh cfg80211/mac80211/ath10k.

> - firmware-2 version 10.1.467.2-1
Single Channel Concurrency works correctly with 636 firmware - QCA9880
- 10x fail in your case because of different iface combination.
So, before kernel upgrade try 636 firmware.

BTW:
QCA6174 support also MCC.

> - 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
>

BR
Janusz

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

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

* Re: Simultaneous hostapd and wpa_supplicant on QCA9880
  2015-08-06  4:45 ` Janusz Dziedzic
@ 2015-08-07 20:13   ` Ann Lo
  0 siblings, 0 replies; 4+ messages in thread
From: Ann Lo @ 2015-08-07 20:13 UTC (permalink / raw)
  To: Janusz Dziedzic; +Cc: ath10k@lists.infradead.org

Thanks Janusz and Ben!

I have tried out firmware-2 version 999.999.0.636. The results are:
- Both wpa_supplicant and hostapd come up OK (using channel 6).
- It is also OK to use WPA2 on both, pinging with a remote client,
  and pinging with a remote AP at the same time.
- No kernel upgrades are needed to achieve the above.

I will provide further results when I try out CT kernel changes and
firmware.

Thanks,
Ann

On Wed, Aug 5, 2015 at 9:45 PM, Janusz Dziedzic
<janusz.dziedzic@tieto.com> wrote:
> On 5 August 2015 at 19:08, Ann Lo <annlo@ieee.org> wrote:
>> 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
> I think you should update your kernel - best compile code from gitub
> https://github.com/kvalo/ath
> Next you will get fresh cfg80211/mac80211/ath10k.
>
>> - firmware-2 version 10.1.467.2-1
> Single Channel Concurrency works correctly with 636 firmware - QCA9880
> - 10x fail in your case because of different iface combination.
> So, before kernel upgrade try 636 firmware.
>
> BTW:
> QCA6174 support also MCC.
>
>> - 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
>>
>
> BR
> Janusz

_______________________________________________
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