Skip to contentSkip to conversation

Cannot use ap and sta mode on same interface with ath9k and kernel 3.8.13 :-(

DISCUSSION Beat Meier 3 participants 4 messages Jan 16, 2015 – Jan 18, 2015

lore
Share & tools
lore

Beat Meier

author
#0 lore raw

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

#1 lore raw
Quoted 24 lines · Beat Meier

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.

Quoted 5 lines

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]

author
#2 lore raw
Quoted 28 lines · Pat Erley
Quoted 27 lines · Beat Meier

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

Quoted 7 lines
Quoted 2 lines

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

#3 lore raw
Quoted 32 lines · Beat Meier
Quoted 31 lines · Pat Erley
Quoted 29 lines · Beat Meier

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

Quoted 8 lines
Quoted 4 lines

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,

Signature · 1 line
Antonio Quartulli