ATH10K Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Ann Lo <annlo@ieee.org>, ath10k@lists.infradead.org
Subject: Re: Simultaneous hostapd and wpa_supplicant on QCA9880
Date: Wed, 05 Aug 2015 12:21:40 -0700	[thread overview]
Message-ID: <55C26244.1090004@candelatech.com> (raw)
In-Reply-To: <CALCDuF=3pR96tAD=ZZ_i1Nh88bMXdvU26sVD8i6OuKcgR3ctBQ@mail.gmail.com>

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

  reply	other threads:[~2015-08-05 19:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-05 17:08 Simultaneous hostapd and wpa_supplicant on QCA9880 Ann Lo
2015-08-05 19:21 ` Ben Greear [this message]
2015-08-06  4:45 ` Janusz Dziedzic
2015-08-07 20:13   ` Ann Lo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55C26244.1090004@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=annlo@ieee.org \
    --cc=ath10k@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox