WDS: iwconfig does not show correct mode?
vda at port.imtp.ilyichevsk.odessa.ua
vda
Sat Dec 13 19:56:28 PST 2003
Hi folks.
Short summary of a problem: in a WDS setup iwconfig always show
the same mode for both master device and wds link(s)
although in my understanding wlan0 is a master
and wlan0wds0 is a repeater:
wlan0 IEEE 802.11b ESSID:"ear" Nickname:"mambo"
Mode:Master Frequency:2.462GHz Access Point: 00:05:5D:FA:58:45
wlan0wds IEEE 802.11b ESSID:"ear" Nickname:"mambo"
Mode:Master Frequency:2.462GHz Access Point: 00:05:5D:FA:58:45
(trailing 0 in wlan0wds0 dev name was eaten by iwconfig.
Jean, can you look into this?).
Version info:
# uname -a
Linux quasar 2.4.23-rc2_wl #1 ??? ??? 22 11:03:49 GMT-2 2003 i686 unknown
# iwconfig -v
iwconfig Version 26
Compatible with Wireless Extension v16 or earlier,
Currently compiled with Wireless Extension v16.
Kernel Currently compiled with Wireless Extension v16.
wlan0 Recommend Wireless Extension v13 or later,
Currently compiled with Wireless Extension v16.
wlan0wds Recommend Wireless Extension v13 or later,
Currently compiled with Wireless Extension v16.
# dmesg
hostap_pci: 0.1.2 - 2003-11-02 (Jouni Malinen <jkmaline at cc.hut.fi>)
PCI: Found IRQ 10 for device 00:0b.0
PCI: Sharing IRQ 10 with 00:07.5
wlan0: NIC: id=0x8013 v1.0.0
wlan0: PRI: id=0x15 v1.1.1
wlan0: STA: id=0x1f v1.5.6
wlan0: Intersil Prism2.5 PCI: mem=0xd7000000, irq=10
Gory details:
I operate an AP with a couple of STAs.
Well, now I need to connect another new STA which does not see my AP
but do see one of old STAs. Heh. It seems like I need to set up WDS.
Yeah. Time to learn.
This is how I did it. I read the list archives and ran this script on
AP (it will be AP1 now) and on the nearby test STA (now AP2).
#!/bin/sh
ap1=false # reverse these for ap1
ap2=true #
essid=mambo
apmac1=00:05:5d:fa:58:45
apmac2=00:05:5d:fa:14:08
channel=11
if $ap1; then
iwconfig wlan0 mode repeater
iwconfig wlan0 channel $channel
iwconfig wlan0 essid $essid
prism2_param wlan0 max_wds 1
prism2_param wlan0 wds_type 4
iwpriv wlan0 wds_add $apmac2
ifconfig wlan0wds0 2.0.0.1 netmask 255.255.255.0 broadcast 2.0.0.255 up
fi
if $ap2; then
<<< snip >>>
iwpriv wlan0 wds_add $apmac1
ifconfig wlan0wds0 2.0.0.2 netmask 255.255.255.0 broadcast 2.0.0.255 up
fi
It worked. But AP1 lost all the other STA associations.
iwconfig shows *both* wlan0 and wlan0wds0 to be repeaters!
Thats probably not right.
iwconfig wlan0 mode master
fixed that *without* losing wlan0wds0 link! Wow!
Now iwconfig shows wlan0 and wlan0wds0 as masters.
This is not right either, but I suppose it's simply not true and wds0
is a repeater in reality?
--
vda
More information about the Hostap
mailing list