Gmane
From: Pavel Roskin <proski <at> gnu.org>
Subject: Re: WDS bridge setup failed
Newsgroups: gmane.linux.drivers.madwifi.user
Date: 2008-09-02 12:47:30 GMT (11 weeks, 2 days, 19 hours and 25 minutes ago)
On Tue, 2008-09-02 at 18:05 +0530, saravanan chanemouganandam wrote:
> 
> root <at> OpenWrt:~# iwconfig
> lo        no wireless extensions.
> eth0      no wireless extensions.
> eth1      no wireless extensions.
> wifi0     no wireless extensions.
> ath0      IEEE 802.11a  ESSID:"OpenWrt"  Nickname:""
>           Mode:Managed  Frequency:5.825 GHz  Access Point:
> Not-Associated
>           Bit Rate:0 kb/s   Tx-Power:17 dBm   Sensitivity=1/1
>           Retry:off   RTS thr:off   Fragment thr:off
>           Encryption key:off
>           Power Management:off
>           Link Quality=0/70  Signal level=-85 dBm  Noise level=-85 dBm
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>           Tx excessive retries:0  Invalid misc:0   Missed beacon:0

So, there is an interface in managed more and you didn't mention that
you removed it.

> > > root <at> OpenWrt:/# brctl addbr br0
> > > br0: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
> > > root <at> OpenWrt:/# iwpriv ath0 mode 3
> > > root <at> OpenWrt:/# iwconfig ath0 essid "SaraAP" channel 6
> > > root <at> OpenWrt:/# iwpriv ath0 wds 1
> > > root <at> OpenWrt:/# ifconfig ath0 up
> > > root <at> OpenWrt:/# brctl addif br0 ath0
> > > device ath0 entered promiscuous mode
> > > root <at> OpenWrt:/# ifconfig br0 10.10.1.1 up
> > > br0: port 1(ath0) entering learning state
> > > root <at> OpenWrt:/#
> > > root <at> OpenWrt:/#
> > > root <at> OpenWrt:/# wlanconfig ath1 create wlandev wifi0 wlanmode wds
> > > wlanconfig: ioctl: Input/output error
> > 
> > I cannot reproduce this error if I use "autocreate=ap". Please make
> > sure you don't have any interface in managed mode. Use iwconfig to
> find
> > out.
> 
> iwconfig after bootup shows

What matters is the iwconfig output before you are trying to create the
WDS interface.  If there is a VAP in managed mode, the WDS interface
won't be created.  I'm quite sure now that it's what happens to you.

-- 
Regards,
Pavel Roskin

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/