2009-12-09 23:46:05

by Natale Vinto

[permalink] [raw]
Subject: SIOCSIFFLAGS: Name not unique on network with b43

Hi all,
I'm on Kubuntu 2.6.32-rc8-wl and according to lspci I have this Broadcom card:
Broadcom Corporation BCM4312 802.11a/b/g (rev 02)
and modinfo b43:

filename:
/lib/modules/2.6.32-rc8-wl/kernel/drivers/net/wireless/b43/b43.ko
firmware: FW13
license: GPL
author: G?bor Stefanik
author: Michael Buesch
author: Stefano Brivio
author: Martin Langer
description: Broadcom B43 wireless driver
srcversion: 77E3E0ECBCB6EA787FE05CF
alias: ssb:v4243id0812rev10*
alias: ssb:v4243id0812rev0F*
alias: ssb:v4243id0812rev0D*
alias: ssb:v4243id0812rev0B*
alias: ssb:v4243id0812rev0A*
alias: ssb:v4243id0812rev09*
alias: ssb:v4243id0812rev07*
alias: ssb:v4243id0812rev06*
alias: ssb:v4243id0812rev05*
depends: ssb,mac80211,led-class,cfg80211
vermagic: 2.6.32-rc8-wl mod_unload modversions PENTIUMM 4KSTACKS
parm: bad_frames_preempt:enable(1) / disable(0) Bad Frames
Preemption (int)
parm: fwpostfix:Postfix for the .fw files to load. (string)
parm: hwpctl:Enable hardware-side power control (default off) (int)
parm: nohwcrypt:Disable hardware encryption. (int)
parm: hwtkip:Enable hardware tkip. (int)
parm: qos:Enable QOS support (default on) (int)
parm: btcoex:Enable Bluetooth coexistence (default on) (int)
parm: verbose:Log message verbosity: 0=error, 1=warn,
2=info(default), 3=debug (int)

My problem is that I would use multiple interfaces (as mentioned here
http://wireless.kernel.org/en/users/Drivers/b43#features ) using one
for AP and one for station but I always get this error while trying to
up the other interface:
SIOCSIFFLAGS: Name not unique on network

This is the command list that I've done:

service network-manager stop
iw phy phy0 interface add wlan1 type station (or managed)
ifconfig wlan1 up

then I used wpa_supplicant on wlan1 and all ok. But when I try to up
wlan0 that from iwconfig shows this:
wlan0 Link encap:Ethernet HWaddr 00:1a:73:xx:xx:xx
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

or when I try to use hostapd:
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
ioctl[SIOCSIFFLAGS]: Name not unique on network
nl80211 driver initialization failed.
wlan0: Unable to setup interface.
rmdir[ctrl_interface]: No such file or directory
ELOOP: remaining socket: sock=5 eloop_data=0x80f0a38 user_data=(nil)
handler=0x80874

so how to have multiple interfaces (in my case one AP and one station) with b43?
I haven't found a solution googling

Best Regards



--
Natale Vinto
http://www.gotext.org
http://bluesman.gotext.org


2009-12-10 15:03:34

by Michael Büsch

[permalink] [raw]
Subject: Re: SIOCSIFFLAGS: Name not unique on network with b43

On Thursday 10 December 2009 02:12:37 Natale Vinto wrote:
> Hi,
> I've changed the mac of the AP interface for example, using
> macchanger. Then I've created a managed wlan1 one but now I got:
> SIOCSIFFLAGS: Operation not supported

So the next step is to read that error message. It tells you exactly what's
going on: Operation not supported

--
Greetings, Michael.

2009-12-10 00:34:09

by Pat Erley

[permalink] [raw]
Subject: Re: SIOCSIFFLAGS: Name not unique on network with b43

Natale Vinto wrote:
> Hi all,
> I'm on Kubuntu 2.6.32-rc8-wl and according to lspci I have this Broadcom card:
> Broadcom Corporation BCM4312 802.11a/b/g (rev 02)
> and modinfo b43:
>
> filename:
> /lib/modules/2.6.32-rc8-wl/kernel/drivers/net/wireless/b43/b43.ko
> firmware: FW13
> license: GPL
> author: G?bor Stefanik
> author: Michael Buesch
> author: Stefano Brivio
> author: Martin Langer
> description: Broadcom B43 wireless driver
> srcversion: 77E3E0ECBCB6EA787FE05CF
> alias: ssb:v4243id0812rev10*
> alias: ssb:v4243id0812rev0F*
> alias: ssb:v4243id0812rev0D*
> alias: ssb:v4243id0812rev0B*
> alias: ssb:v4243id0812rev0A*
> alias: ssb:v4243id0812rev09*
> alias: ssb:v4243id0812rev07*
> alias: ssb:v4243id0812rev06*
> alias: ssb:v4243id0812rev05*
> depends: ssb,mac80211,led-class,cfg80211
> vermagic: 2.6.32-rc8-wl mod_unload modversions PENTIUMM 4KSTACKS
> parm: bad_frames_preempt:enable(1) / disable(0) Bad Frames
> Preemption (int)
> parm: fwpostfix:Postfix for the .fw files to load. (string)
> parm: hwpctl:Enable hardware-side power control (default off) (int)
> parm: nohwcrypt:Disable hardware encryption. (int)
> parm: hwtkip:Enable hardware tkip. (int)
> parm: qos:Enable QOS support (default on) (int)
> parm: btcoex:Enable Bluetooth coexistence (default on) (int)
> parm: verbose:Log message verbosity: 0=error, 1=warn,
> 2=info(default), 3=debug (int)
>
> My problem is that I would use multiple interfaces (as mentioned here
> http://wireless.kernel.org/en/users/Drivers/b43#features ) using one
> for AP and one for station but I always get this error while trying to
> up the other interface:
> SIOCSIFFLAGS: Name not unique on network
>
> This is the command list that I've done:
>
> service network-manager stop
> iw phy phy0 interface add wlan1 type station (or managed)
> ifconfig wlan1 up
>
> then I used wpa_supplicant on wlan1 and all ok. But when I try to up
> wlan0 that from iwconfig shows this:
> wlan0 Link encap:Ethernet HWaddr 00:1a:73:xx:xx:xx
> BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> or when I try to use hostapd:
> Configuration file: /etc/hostapd/hostapd.conf
> ctrl_interface_group=0
> ioctl[SIOCSIFFLAGS]: Name not unique on network
> nl80211 driver initialization failed.
> wlan0: Unable to setup interface.
> rmdir[ctrl_interface]: No such file or directory
> ELOOP: remaining socket: sock=5 eloop_data=0x80f0a38 user_data=(nil)
> handler=0x80874
>
> so how to have multiple interfaces (in my case one AP and one station) with b43?
> I haven't found a solution googling
>
> Best Regards
>
>
>
You need to change the mac address of one of the wireless interfaces. I don't know if multiple vifs works with b43, though, only tested with ath9k.

Pat

2009-12-10 20:50:52

by Natale Vinto

[permalink] [raw]
Subject: Re: SIOCSIFFLAGS: Name not unique on network with b43

> So the next step is to read that error message. It tells you exactly what's
> going on: Operation not supported
:-)

But why in the Driver page there is written that b43 works with
multiple interfaces? This means that I can create for example two
interfaces but I can't use both?

Best Regards



--
Natale

2009-12-10 21:05:05

by Natale Vinto

[permalink] [raw]
Subject: Re: SIOCSIFFLAGS: Name not unique on network with b43

Thank you for the explanation

--
Natale

2009-12-10 01:12:33

by Natale Vinto

[permalink] [raw]
Subject: Re: SIOCSIFFLAGS: Name not unique on network with b43

Hi,
I've changed the mac of the AP interface for example, using
macchanger. Then I've created a managed wlan1 one but now I got:
SIOCSIFFLAGS: Operation not supported

while trying to up it


2009/12/10 Pat Erley <[email protected]>:
> Natale Vinto wrote:
>> Hi all,
>> I'm on Kubuntu 2.6.32-rc8-wl and according to lspci I have this Broadcom card:
>> Broadcom Corporation BCM4312 802.11a/b/g (rev 02)
>> and modinfo b43:
>>
>> filename:
>> /lib/modules/2.6.32-rc8-wl/kernel/drivers/net/wireless/b43/b43.ko
>> firmware: ? ? ? FW13
>> license: ? ? ? ?GPL
>> author: ? ? ? ? G?bor Stefanik
>> author: ? ? ? ? Michael Buesch
>> author: ? ? ? ? Stefano Brivio
>> author: ? ? ? ? Martin Langer
>> description: ? ?Broadcom B43 wireless driver
>> srcversion: ? ? 77E3E0ECBCB6EA787FE05CF
>> alias: ? ? ? ? ?ssb:v4243id0812rev10*
>> alias: ? ? ? ? ?ssb:v4243id0812rev0F*
>> alias: ? ? ? ? ?ssb:v4243id0812rev0D*
>> alias: ? ? ? ? ?ssb:v4243id0812rev0B*
>> alias: ? ? ? ? ?ssb:v4243id0812rev0A*
>> alias: ? ? ? ? ?ssb:v4243id0812rev09*
>> alias: ? ? ? ? ?ssb:v4243id0812rev07*
>> alias: ? ? ? ? ?ssb:v4243id0812rev06*
>> alias: ? ? ? ? ?ssb:v4243id0812rev05*
>> depends: ? ? ? ?ssb,mac80211,led-class,cfg80211
>> vermagic: ? ? ? 2.6.32-rc8-wl mod_unload modversions PENTIUMM 4KSTACKS
>> parm: ? ? ? ? ? bad_frames_preempt:enable(1) / disable(0) Bad Frames
>> Preemption (int)
>> parm: ? ? ? ? ? fwpostfix:Postfix for the .fw files to load. (string)
>> parm: ? ? ? ? ? hwpctl:Enable hardware-side power control (default off) (int)
>> parm: ? ? ? ? ? nohwcrypt:Disable hardware encryption. (int)
>> parm: ? ? ? ? ? hwtkip:Enable hardware tkip. (int)
>> parm: ? ? ? ? ? qos:Enable QOS support (default on) (int)
>> parm: ? ? ? ? ? btcoex:Enable Bluetooth coexistence (default on) (int)
>> parm: ? ? ? ? ? verbose:Log message verbosity: 0=error, 1=warn,
>> 2=info(default), 3=debug (int)
>>
>> My problem is that I would use multiple interfaces (as mentioned here
>> http://wireless.kernel.org/en/users/Drivers/b43#features ) using one
>> for AP and one for station but I always get this error while trying to
>> up the other interface:
>> SIOCSIFFLAGS: Name not unique on network
>>
>> This is the command list that I've done:
>>
>> service network-manager stop
>> iw phy phy0 interface add wlan1 type station (or managed)
>> ifconfig wlan1 up
>>
>> then I used wpa_supplicant on wlan1 and all ok. But when I try to up
>> wlan0 that from iwconfig shows this:
>> wlan0 ? ? Link encap:Ethernet ?HWaddr 00:1a:73:xx:xx:xx
>> ? ? ? ? ? BROADCAST MULTICAST ?MTU:1500 ?Metric:1
>> ? ? ? ? ? RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>> ? ? ? ? ? TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>> ? ? ? ? ? collisions:0 txqueuelen:1000
>> ? ? ? ? ? RX bytes:0 (0.0 B) ?TX bytes:0 (0.0 B)
>>
>> or when I try to use hostapd:
>> Configuration file: /etc/hostapd/hostapd.conf
>> ctrl_interface_group=0
>> ioctl[SIOCSIFFLAGS]: Name not unique on network
>> nl80211 driver initialization failed.
>> wlan0: Unable to setup interface.
>> rmdir[ctrl_interface]: No such file or directory
>> ELOOP: remaining socket: sock=5 eloop_data=0x80f0a38 user_data=(nil)
>> handler=0x80874
>>
>> so how to have multiple interfaces (in my case one AP and one station) with b43?
>> I haven't found a solution googling
>>
>> Best Regards
>>
>>
>>
> You need to change the mac address of one of the wireless interfaces. ?I don't know if multiple vifs works with b43, though, only tested with ath9k.
>
> Pat
>



--
Natale Vinto
http://www.gotext.org
http://bluesman.gotext.org

2009-12-10 20:54:03

by Michael Büsch

[permalink] [raw]
Subject: Re: SIOCSIFFLAGS: Name not unique on network with b43

On Thursday 10 December 2009 21:50:57 Natale Vinto wrote:
> > So the next step is to read that error message. It tells you exactly what's
> > going on: Operation not supported
> :-)
>
> But why in the Driver page there is written that b43 works with
> multiple interfaces? This means that I can create for example two
> interfaces but I can't use both?

You can use multiple monitor interfaces simultaneously with a sta or ap interface.

--
Greetings, Michael.