Martin
2010-Jul-28 22:50 UTC
ath(4) hostap with fake MAC/BSSID results in station dropping packets when associated
Hi, I noticed a bug that was introduced somewhere in the Atheros 9280 support in 8.1-RELEASE when used as a station. I had this already running correctly with 7.x releases. What happens: I cannot connect to a hostap ath(4) (Atheros 2413) when using a fake MAC/BSSID (on the hostap!). How to reproduce it: 1) Put this into your rc.local on your hostap machine and replace xx's by an address of your choice (first octet needs to have lowest bit "0"): ifconfig ath0 ether xx:xx:xx:xx:xx:xx 2) Start hostapd (must be configured, of course). Eventually you need to set BSSID also in hostapd.conf. 3) Try to connect with an Atheros 9280. You don't need to fake MAC address here (I'm only talking about the hostap MAC/BSSID). What you get: - You get association. This is OK, so far. - Try DHCP. You won't see packets arriving at the station. They are not recognized and filtered somewhere. - When you watch with tcpdump on the hostap interface you'll see DHCP requests arriving and being answered. - I further noticed, even you don't have any IP (set to 0.0.0.0, because of failed DHCP), you can see packets being sent to different machines - You can try to setup a static address, but when you ping the station, you don't see a ping arriving (watch tcpdump on the station wireless interface and try to ping from the hostap machine). Further information: - This only affects ath(4) and I could only see this on Atheros 9280, because I don't have any other ath(4) adapters at the moment. - I tried rum(4). It does not have any problems like this. DHCP and everything else works with this driver (of course with a fake MAC/BSSID!). - Running 8.1-RELEASE on all machines. Kernel is GENERIC, but on hostap machine there is ALTQ added (should not affect anything, as I said, I had this running already). - hostapd is configured with 11g, WPA2 and passwords in hostapd.wpapsk. WME is switched off, because it does not work at all for me. I can provide more information, if needed. -- Martin
Alexandre L.
2010-Jul-29 10:07 UTC
ath(4) hostap with fake MAC/BSSID results in station dropping packets when associated
Hi Martin, I got similar problem from my PC using a Netgear WG311T PCI wireless card. ath0: <Atheros 5212> mem 0x40100000-0x4010ffff irq 11 at device 8.0 on pci1 ath0: AR2413 mac 7.9 RF2413 phy 4.5 I have joined all my config files, and the results of the commands : # dmesg # ifconfig # dhclient wlan0 Also, I have opened before your mail to the list, a thread on FreeBSD Forums http://forums.freebsd.org/showthread.php?t=16373 --- En date de?: Mer 28.7.10, Martin <nakal@web.de> a ?crit?:> De: Martin <nakal@web.de> > Objet: ath(4) hostap with fake MAC/BSSID results in station dropping packets when associated > ?: freebsd-stable@freebsd.org > Date: Mercredi 28 juillet 2010, 22h24 > > Hi, > > I noticed a bug that was introduced somewhere in the > Atheros 9280 > support in 8.1-RELEASE when used as a station. I had this > already > running correctly with 7.x releases. > > What happens: > > I cannot connect to a hostap ath(4) (Atheros 2413) when > using a fake > MAC/BSSID (on the hostap!). > > How to reproduce it: > > 1) Put this into your rc.local on your hostap machine and > replace xx's > by an address of your choice (first octet needs to have > lowest bit "0"): > > ifconfig ath0 ether xx:xx:xx:xx:xx:xx > > 2) Start hostapd (must be configured, of course). > Eventually you need > to set BSSID also in hostapd.conf. > > 3) Try to connect with an Atheros 9280. You don't need to > fake MAC > address here (I'm only talking about the hostap > MAC/BSSID). > > What you get: > > - You get association. This is OK, so far. > - Try DHCP. You won't see packets arriving at the station. > They are not > ? recognized and filtered somewhere. > - When you watch with tcpdump on the hostap interface > you'll see DHCP > ? requests arriving and being answered. > - I further noticed, even you don't have any IP (set to > 0.0.0.0, > ? because of failed DHCP), you can see packets being > sent to different > ? machines > - You can try to setup a static address, but when you ping > the station, > ? you don't see a ping arriving (watch tcpdump on the > station wireless > ? interface and try to ping from the hostap machine). > > Further information: > > - This only affects ath(4) and I could only see this on > Atheros 9280, > ? because I don't have any other ath(4) adapters at > the moment. > - I tried rum(4). It does not have any problems like this. > DHCP and > ? everything else works with this driver (of course > with a fake > ? MAC/BSSID!). > - Running 8.1-RELEASE on all machines. Kernel is GENERIC, > but on hostap > ? machine there is ALTQ added (should not affect > anything, as I said, > ? I had this running already). > - hostapd is configured with 11g, WPA2 and passwords in > hostapd.wpapsk. > ? WME is switched off, because it does not work at all > for me. > > I can provide more information, if needed. > > -- > Martin > _______________________________________________ > freebsd-stable@freebsd.org > mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >-------------- next part -------------- A non-text attachment was scrubbed... Name: dhclient_wlan0 Type: application/octet-stream Size: 465 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20100729/fc293661/dhclient_wlan0.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: dmesg Type: application/octet-stream Size: 4514 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20100729/fc293661/dmesg.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: ifconfig Type: application/octet-stream Size: 1369 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20100729/fc293661/ifconfig.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: wpa_supplicant.conf Type: application/octet-stream Size: 136 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20100729/fc293661/wpa_supplicant.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: rc.conf Type: application/octet-stream Size: 445 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20100729/fc293661/rc.obj
Adrian Chadd
2010-Aug-11 07:12 UTC
ath(4) hostap with fake MAC/BSSID results in station dropping packets when associated
To both of you - create PRs. Thanks, Adrian On 29 July 2010 17:54, Alexandre L. <axelbsd@ymail.com> wrote:> Hi Martin, > > I got similar problem from my PC using a Netgear WG311T PCI wireless card. > > ath0: <Atheros 5212> mem 0x40100000-0x4010ffff irq 11 at device 8.0 on pci1 > ath0: AR2413 mac 7.9 RF2413 phy 4.5 > > I have joined all my config files, and the results of the commands : > # dmesg > # ifconfig > # dhclient wlan0 > > Also, I have opened before your mail to the list, a thread on FreeBSD Forums http://forums.freebsd.org/showthread.php?t=16373 > > --- En date de?: Mer 28.7.10, Martin <nakal@web.de> a ?crit?: > >> De: Martin <nakal@web.de> >> Objet: ath(4) hostap with fake MAC/BSSID results in station dropping packets when associated >> ?: freebsd-stable@freebsd.org >> Date: Mercredi 28 juillet 2010, 22h24 >> >> Hi, >> >> I noticed a bug that was introduced somewhere in the >> Atheros 9280 >> support in 8.1-RELEASE when used as a station. I had this >> already >> running correctly with 7.x releases. >> >> What happens: >> >> I cannot connect to a hostap ath(4) (Atheros 2413) when >> using a fake >> MAC/BSSID (on the hostap!). >> >> How to reproduce it: >> >> 1) Put this into your rc.local on your hostap machine and >> replace xx's >> by an address of your choice (first octet needs to have >> lowest bit "0"): >> >> ifconfig ath0 ether xx:xx:xx:xx:xx:xx >> >> 2) Start hostapd (must be configured, of course). >> Eventually you need >> to set BSSID also in hostapd.conf. >> >> 3) Try to connect with an Atheros 9280. You don't need to >> fake MAC >> address here (I'm only talking about the hostap >> MAC/BSSID). >> >> What you get: >> >> - You get association. This is OK, so far. >> - Try DHCP. You won't see packets arriving at the station. >> They are not >> ? recognized and filtered somewhere. >> - When you watch with tcpdump on the hostap interface >> you'll see DHCP >> ? requests arriving and being answered. >> - I further noticed, even you don't have any IP (set to >> 0.0.0.0, >> ? because of failed DHCP), you can see packets being >> sent to different >> ? machines >> - You can try to setup a static address, but when you ping >> the station, >> ? you don't see a ping arriving (watch tcpdump on the >> station wireless >> ? interface and try to ping from the hostap machine). >> >> Further information: >> >> - This only affects ath(4) and I could only see this on >> Atheros 9280, >> ? because I don't have any other ath(4) adapters at >> the moment. >> - I tried rum(4). It does not have any problems like this. >> DHCP and >> ? everything else works with this driver (of course >> with a fake >> ? MAC/BSSID!). >> - Running 8.1-RELEASE on all machines. Kernel is GENERIC, >> but on hostap >> ? machine there is ALTQ added (should not affect >> anything, as I said, >> ? I had this running already). >> - hostapd is configured with 11g, WPA2 and passwords in >> hostapd.wpapsk. >> ? WME is switched off, because it does not work at all >> for me. >> >> I can provide more information, if needed. >> >> -- >> Martin >> _______________________________________________ >> freebsd-stable@freebsd.org >> mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-stable >> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >> > > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >