2012-01-13 22:18:38

by Jonathan Bagg

[permalink] [raw]
Subject: ath6kl in compat wireless supports AP mode?

Anybody know if the ath6kl driver in compat wireless supports AP mode?

hostapd hostapd.conf
nl80211: Failed to set interface wlan0 into AP mode
nl80211 driver initialization failed.

hostapd.conf
interface=wlan0
driver=nl80211
ssid=test
channel=1

Using
hostapd v0.7.3
libnl-2.0

Jon Bagg




2012-01-18 11:40:08

by Kalle Valo

[permalink] [raw]
Subject: Re: ath6kl in compat wireless supports AP mode?

Hi Jonathan,

sorry for answering late.

On 01/14/2012 12:03 AM, Jonathan Bagg wrote:
> Anybody know if the ath6kl driver in compat wireless supports AP mode?
>
> hostapd hostapd.conf
> nl80211: Failed to set interface wlan0 into AP mode
> nl80211 driver initialization failed.
>
> hostapd.conf
> interface=wlan0
> driver=nl80211
> ssid=test
> channel=1
>
> Using
> hostapd v0.7.3
> libnl-2.0

Most of the ath6kl developers use wpasupplicants AP mode for this so I
recommend trying with wpasupplicant first. It might be that hostapd
requires something which ath6kl doesn't support.

Kalle

2012-01-18 19:44:05

by Jonathan Bagg

[permalink] [raw]
Subject: Re: ath6kl in compat wireless supports AP mode?

Sujith,

Can you tell me your setup for....

kernel ver?
hostapd ver?
libnl ver?
architecture ?

I'm running....
Compat-wireless 3.1 (ath6kl still in staging) built against kernel 2.6.35.3
mac80211 as module
cfg80211 as module
hostapd v2.0-devel (git cloned today)
libnl-2.0
arm, freescale imx51

I tried hostapd v2.0-devel and no go.

Jon

On 12-01-18 07:09 AM, Sujith Manoharan wrote:
> Kalle Valo wrote:
>> Hi Jonathan,
>>
>> sorry for answering late.
>>
>> On 01/14/2012 12:03 AM, Jonathan Bagg wrote:
>>> Anybody know if the ath6kl driver in compat wireless supports AP mode?
>>>
>>> hostapd hostapd.conf
>>> nl80211: Failed to set interface wlan0 into AP mode
>>> nl80211 driver initialization failed.
>>>
>>> hostapd.conf
>>> interface=wlan0
>>> driver=nl80211
>>> ssid=test
>>> channel=1
>>>
>>> Using
>>> hostapd v0.7.3
>>> libnl-2.0
>> Most of the ath6kl developers use wpasupplicants AP mode for this so I
>> recommend trying with wpasupplicant first. It might be that hostapd
>> requires something which ath6kl doesn't support.
> hostapd works fine, but a recent git version is probably required.
> v0.7.3 is a bit old, I think.
>
> Sujith


2012-01-18 12:10:07

by Sujith Manoharan

[permalink] [raw]
Subject: Re: ath6kl in compat wireless supports AP mode?

Kalle Valo wrote:
> Hi Jonathan,
>
> sorry for answering late.
>
> On 01/14/2012 12:03 AM, Jonathan Bagg wrote:
> > Anybody know if the ath6kl driver in compat wireless supports AP mode?
> >
> > hostapd hostapd.conf
> > nl80211: Failed to set interface wlan0 into AP mode
> > nl80211 driver initialization failed.
> >
> > hostapd.conf
> > interface=wlan0
> > driver=nl80211
> > ssid=test
> > channel=1
> >
> > Using
> > hostapd v0.7.3
> > libnl-2.0
>
> Most of the ath6kl developers use wpasupplicants AP mode for this so I
> recommend trying with wpasupplicant first. It might be that hostapd
> requires something which ath6kl doesn't support.

hostapd works fine, but a recent git version is probably required.
v0.7.3 is a bit old, I think.

Sujith

2012-01-19 06:24:24

by Kalle Valo

[permalink] [raw]
Subject: Re: ath6kl in compat wireless supports AP mode?

On 01/18/2012 09:44 PM, Jonathan Bagg wrote:

> I'm running....
> Compat-wireless 3.1 (ath6kl still in staging) built against kernel 2.6.35.3
> mac80211 as module
> cfg80211 as module
> hostapd v2.0-devel (git cloned today)
> libnl-2.0
> arm, freescale imx51
>
> I tried hostapd v2.0-devel and no go.

If ath6kl is still in staging you have an ancient version and it will
not support AP mode. Please try latest wireless-compat or use the latest
kernel from ath6kl.git:

git://github.com/kvalo/ath6kl.git

Kalle

2012-12-21 00:50:52

by cashq

[permalink] [raw]
Subject: Re: ath6kl in compat wireless supports AP mode?

<drwho@...> writes:

>
> cashq,
>
> AR6003 is working for me with hostapd...
>
> platform = arm imx51
> kernel = 2.6.35.3-998
> compat-wireless = "Backport based on linux-stable.git v3.4-rc3"
> hostapd = v1.0
> ....

Hi DrWho,

Thank you so much. It turns out that I took an incorrect version of hostapd-
0.7.3. After using hostapd-1.0, AP mode has been successfully enabled.

Regards,
cashq




2012-12-20 03:19:52

by cashq

[permalink] [raw]
Subject: Re: ath6kl in compat wireless supports AP mode?

Kalle Valo <kvalo@...> writes:

>
> On 01/18/2012 09:44 PM, Jonathan Bagg wrote:
>
> > I'm running....
> > Compat-wireless 3.1 (ath6kl still in staging) built against kernel 2.6.35.3
> > mac80211 as module
> > cfg80211 as module
> > hostapd v2.0-devel (git cloned today)
> > libnl-2.0
> > arm, freescale imx51
> >
> > I tried hostapd v2.0-devel and no go.
>
> If ath6kl is still in staging you have an ancient version and it will
> not support AP mode. Please try latest wireless-compat or use the latest
> kernel from ath6kl.git:
>
> git://github.com/kvalo/ath6kl.git
>
> Kalle
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@...
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>

Hi Kalle,

I've tried ath6kl in compact-wireless-3.6.8-1 built with kernel v3.5.7 on arm
for AR6003, as well the driver in kernel v3.5.7. Both of them still failed to
work at AP mode with hostapd 0.7.3 complaining "Failed to create interface
mon.wlan0: -95 (Operation not supported)".

Only IBSS(adhoc) mode can work with wpa_supplicant.

Has anyone successfully had AP mode enabled for ath6kl?

Is there any official announcement about the capability of ath6kl driver in
compact-wireless?

Only thing I found is http://linuxwireless.org/en/users/Drivers. It indicates
ath6kl does not support AP mode in linux driver. I'm just not sure whether it
covers the capability of the one in compact-wireless.

Regards,
cashq


2012-12-20 15:05:22

by Jonathan Bagg

[permalink] [raw]
Subject: Re: ath6kl in compat wireless supports AP mode?

cashq,

AR6003 is working for me with hostapd...

platform = arm imx51
kernel = 2.6.35.3-998
compat-wireless = "Backport based on linux-stable.git v3.4-rc3"
hostapd = v1.0

hostapd conf file
interface=wlan0
driver=nl80211
ssid=ATH6K_TEST
channel=1

I'm not creating a virtual interface wlan0.mon, just using wlan0. Make
sure you have up-to-date ar6003 hw2.1.1 firmware from
git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

DrWho


2012-12-21 09:47:26

by Kalle Valo

[permalink] [raw]
Subject: Re: ath6kl in compat wireless supports AP mode?

cashq <[email protected]> writes:

> Thank you so much. It turns out that I took an incorrect version of hostapd-
> 0.7.3. After using hostapd-1.0, AP mode has been successfully enabled.

Thanks for confirming this. I added the requirement to the wiki:

http://wireless.kernel.org/en/users/Drivers/ath6kl

--
Kalle Valo