WDS & hostapd port authorization

Slobodan Tomic stomic
Sun May 18 14:44:24 PDT 2003


  Hi,

  I have setup with two (and more) APs using WDS. Everything is bridged
(wlan0 and wlan0wds0 at each AP) and everything works perfectlly. But if
I use hostapd at each AP (with or without 802.1X) wlan0wds0 is blocked
by each hostapd because that port is not authorized, even if I put MAC
addresses of other APs in /etc/hostapd.accept. Is this bug in hostap[d]
or have I missed something?

  I am using latest hostap from cvs (2003-05-18), SparkLAN PCI cards
with firmwares pri: 1.1.0 and sta: 1.5.6 (uploaded to RAM over 1.4.9
with prism2_srec). I have included some dmesg output which might help.

  Regards,
  st

---------------
hostap_pci: CVS (Jouni Malinen <jkmaline at cc.hut.fi>)
PCI: Found IRQ 5 for device 00:13.0
hostap_pci: Registered netdevice wlan0
prism2_hw_init()
prism2_hw_init: initialized in 18196 iterations
wlan0: trying to read PDA from 0x007f0000: OK
wlan0: NIC: id=0x8013 v1.0.0
wlan0: PRI: id=0x15 v1.1.0
wlan0: STA: id=0x1f v1.4.9
wlan0: defaulting to bogus WDS frame as a workaround for firmware bug in
Host AP mode WDS
wlan0: Intersil Prism2.5 PCI: mem=0xfedfa000, irq=5
prism2_download: dl_cmd=1 start_addr=0x003f0c01 num_areas=3
  area 0: addr=0x007e1800 len=48864 ptr=0x08051d30
  area 1: addr=0x007f0800 len=4244 ptr=0x0805dc18
  area 2: addr=0x007fe000 len=3322 ptr=0x0805ecb0
prism2_hw_init()
prism2_hw_init: initialized in 7639 iterations
wlan0: Writing 48864 bytes at 0x007e1800
wlan0: Writing 4244 bytes at 0x007f0800
wlan0: Writing 3322 bytes at 0x007fe000
prism2_hw_init()
prism2_hw_init: initialized in 3049 iterations
wlan0: trying to read PDA from 0x007f0000: OK
wlan0: NIC: id=0x8013 v1.0.0
wlan0: PRI: id=0x15 v1.1.0
wlan0: STA: id=0x1f v1.5.6
wlan0: prism2_open
wlan0: registered WDS netdevice wlan0wds0
device wlan0 entered promiscuous mode
wlan0: adding automatic WDS connection to AP 00:90:4b:60:85:89
wlan0: using pre-allocated WDS netdevice wlan0wds0
device wlan0wds0 entered promiscuous mode
wlan0wds0: prism2_open
br0: port 2(wlan0wds0) entering listening state
br0: port 1(wlan0) entering listening state
br0: port 2(wlan0wds0) entering learning state
br0: port 1(wlan0) entering learning state
br0: port 2(wlan0wds0) entering forwarding state
br0: topology change detected, propagating
br0: port 1(wlan0) entering forwarding state
br0: topology change detected, propagating

[ this is where hostapd start and then bring up second AP ]

wlan0: received WDS[4 addr] frame from unknown TA=00:90:4b:60:85:89
wlan0: adding automatic WDS connection to AP 00:90:4b:60:85:89
wlan0: using pre-allocated WDS netdevice wlan0wds0
wlan0wds0: dropped frame to unauthorized port (IEEE 802.1X):
ethertype=0x0026
wlan0wds0: TX status=0x0000 retry_count=0 tx_rate=110 tx_control=0x000c;
jiffies=2337575
   FC=0x0308 (type=2:0) dur=0x0000 seq=0x0000 data_len=46 [ToDS]
[FromDS]
   A1=00:90:4b:60:85:89 A2=00:90:4b:60:85:6d A3=01:80:c2:00:00:00
A4=00:90:4b:60:85:6d
   dst=01:80:c2:00:00:00 src=00:90:4b:60:85:6d len=46
wlan0wds0: dropped frame from unauthorized port (IEEE 802.1X):
ethertype=0x0000
wlan0wds0: RX status=0x0000 (port=0, type=0, fcserr=0) silence=17
signal=78 rate=110 rxflow=0; jiffies=2337670
   FC=0x0308 (type=2:0) dur=0x0102 seq=0x02f0 data_len=46 [ToDS]
[FromDS]
   A1=00:90:4b:60:85:6d A2=00:90:4b:60:85:89 A3=01:80:c2:00:00:00
A4=00:90:4b:60:85:89
   dst=01:80:c2:00:00:00 src=00:90:4b:60:85:89 len=46
---------------------





More information about the Hostap mailing list