linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Cannot use ap and sta mode on same interface with ath9k and kernel 3.8.13 :-(
@ 2015-01-16 22:29 Beat Meier
  2015-01-16 23:16 ` Pat Erley
  0 siblings, 1 reply; 4+ messages in thread
From: Beat Meier @ 2015-01-16 22:29 UTC (permalink / raw)
  To: linux-wireless@vger.kernel.org >> Linux Wireless List

Hi

I'm using an WLM200NX card in master mode ath1 and want to do scanning
on the same interface.
I'm using ath9k on 3.8.13 kernel (voyage-linux)

So I setup an additional  interface in sta mode with
  iw phy phy1 interface add ath2 type managed
This works but the interface is not coming up.
I tried several things like
auto ath2
iface ath2 inet static
        address 10.58.1.1
        netmask 255.255.255.0
        wireless-mode Managed
        wpa-conf /etc/wpa_supplicant.conf.WPA-PSK

But wpa_spplicant comes with error:
  wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
  run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return
code 1
  RTNETLINK answers: Name not unique on network
  Failed to bring up ath2.

I can setup monitor mode but I want to scan to see what other equipment
is on which channel ...

What's the problem? With ath9k I cannot use ap and sta mode together???

Thanks

Beat

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

* Re: Cannot use ap and sta mode on same interface with ath9k and kernel 3.8.13 :-(
  2015-01-16 22:29 Cannot use ap and sta mode on same interface with ath9k and kernel 3.8.13 :-( Beat Meier
@ 2015-01-16 23:16 ` Pat Erley
  2015-01-16 23:43   ` Beat Meier
  0 siblings, 1 reply; 4+ messages in thread
From: Pat Erley @ 2015-01-16 23:16 UTC (permalink / raw)
  To: Beat Meier,
	linux-wireless@vger.kernel.org >> Linux Wireless List

On 01/16/2015 04:29 PM, Beat Meier wrote:
> Hi
>
> I'm using an WLM200NX card in master mode ath1 and want to do scanning
> on the same interface.
> I'm using ath9k on 3.8.13 kernel (voyage-linux)
>
> So I setup an additional  interface in sta mode with
>    iw phy phy1 interface add ath2 type managed
> This works but the interface is not coming up.
> I tried several things like
> auto ath2
> iface ath2 inet static
>          address 10.58.1.1
>          netmask 255.255.255.0
>          wireless-mode Managed
>          wpa-conf /etc/wpa_supplicant.conf.WPA-PSK
>
> But wpa_spplicant comes with error:
>    wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
>    run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return
> code 1
>    RTNETLINK answers: Name not unique on network
>    Failed to bring up ath2.
>
> I can setup monitor mode but I want to scan to see what other equipment
> is on which channel ...
>
> What's the problem? With ath9k I cannot use ap and sta mode together???
>

You need to assign a different mac address to the new interface.

[Resend, accidentally dropped mailing list]

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

* Re: Cannot use ap and sta mode on same interface with ath9k and kernel 3.8.13 :-(
  2015-01-16 23:16 ` Pat Erley
@ 2015-01-16 23:43   ` Beat Meier
  2015-01-17 20:26     ` Antonio Quartulli
  0 siblings, 1 reply; 4+ messages in thread
From: Beat Meier @ 2015-01-16 23:43 UTC (permalink / raw)
  To: Pat Erley,
	linux-wireless@vger.kernel.org >> Linux Wireless List

On 01/16/2015 08:16 PM, Pat Erley wrote:
> On 01/16/2015 04:29 PM, Beat Meier wrote:
>> Hi
>>
>> I'm using an WLM200NX card in master mode ath1 and want to do scanning
>> on the same interface.
>> I'm using ath9k on 3.8.13 kernel (voyage-linux)
>>
>> So I setup an additional  interface in sta mode with
>>    iw phy phy1 interface add ath2 type managed
>> This works but the interface is not coming up.
>> I tried several things like
>> auto ath2
>> iface ath2 inet static
>>          address 10.58.1.1
>>          netmask 255.255.255.0
>>          wireless-mode Managed
>>          wpa-conf /etc/wpa_supplicant.conf.WPA-PSK
>>
>> But wpa_spplicant comes with error:
>>    wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
>>    run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return
>> code 1
>>    RTNETLINK answers: Name not unique on network
>>    Failed to bring up ath2.
>>
>> I can setup monitor mode but I want to scan to see what other equipment
>> is on which channel ...
>>
>> What's the problem? With ath9k I cannot use ap and sta mode together???
>>
>
> You need to assign a different mac address to the new interface.
>
> [Resend, accidentally dropped mailing list]
>

This solved the problem.
Would be nice to add a comment in
  http://wireless.kernel.org/en/users/Documentation/iw/vif#station

Thanks a lot

Beat


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

* Re: Cannot use ap and sta mode on same interface with ath9k and kernel 3.8.13 :-(
  2015-01-16 23:43   ` Beat Meier
@ 2015-01-17 20:26     ` Antonio Quartulli
  0 siblings, 0 replies; 4+ messages in thread
From: Antonio Quartulli @ 2015-01-17 20:26 UTC (permalink / raw)
  To: Beat Meier, Pat Erley,
	linux-wireless@vger.kernel.org >> Linux Wireless List

[-- Attachment #1: Type: text/plain, Size: 1618 bytes --]

On 17/01/15 00:43, Beat Meier wrote:
> On 01/16/2015 08:16 PM, Pat Erley wrote:
>> On 01/16/2015 04:29 PM, Beat Meier wrote:
>>> Hi
>>>
>>> I'm using an WLM200NX card in master mode ath1 and want to do scanning
>>> on the same interface.
>>> I'm using ath9k on 3.8.13 kernel (voyage-linux)
>>>
>>> So I setup an additional  interface in sta mode with
>>>    iw phy phy1 interface add ath2 type managed
>>> This works but the interface is not coming up.
>>> I tried several things like
>>> auto ath2
>>> iface ath2 inet static
>>>          address 10.58.1.1
>>>          netmask 255.255.255.0
>>>          wireless-mode Managed
>>>          wpa-conf /etc/wpa_supplicant.conf.WPA-PSK
>>>
>>> But wpa_spplicant comes with error:
>>>    wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
>>>    run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return
>>> code 1
>>>    RTNETLINK answers: Name not unique on network
>>>    Failed to bring up ath2.
>>>
>>> I can setup monitor mode but I want to scan to see what other equipment
>>> is on which channel ...
>>>
>>> What's the problem? With ath9k I cannot use ap and sta mode together???
>>>
>>
>> You need to assign a different mac address to the new interface.
>>
>> [Resend, accidentally dropped mailing list]
>>
> 
> This solved the problem.
> Would be nice to add a comment in
>   http://wireless.kernel.org/en/users/Documentation/iw/vif#station

By the way, you can scan also with a master interface. You just need to
pass the ap-force flag to the scan command.

Cheers,


-- 
Antonio Quartulli


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2015-01-18  6:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-16 22:29 Cannot use ap and sta mode on same interface with ath9k and kernel 3.8.13 :-( Beat Meier
2015-01-16 23:16 ` Pat Erley
2015-01-16 23:43   ` Beat Meier
2015-01-17 20:26     ` Antonio Quartulli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).