]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[if_ath] Don't update the beacon bits from beacon frames in hostapd mode.
authorAdrian Chadd <adrian@FreeBSD.org>
Sun, 7 Jun 2020 05:08:44 +0000 (05:08 +0000)
committerAdrian Chadd <adrian@FreeBSD.org>
Sun, 7 Jun 2020 05:08:44 +0000 (05:08 +0000)
commit857e0646caf18a5ee37b53f2d9e7520c7df1aac7
tree74fcc5ca9f8266bc5e901a7630ce1062cfac2bbd
parent24a366af3a0b072b6b4570ee57e4b9e64eb76a90
[if_ath] Don't update the beacon bits from beacon frames in hostapd mode.

This logic is running the beacon receive bits in STA+AP mode on both the
STA and AP side.  The STA side sees its beacons from the BSS fine; the
AP side is seeing other beacons on the same channel but with the BSS
node for some odd reason.  (I think it's a valid reason, but I currently
forget what that valid reason is.)

So, just to be cleaner about things, don't run the nexttbtt/etc bits
at all if we're in hostap mode.  If I ever get mesh working then maybe
I'll make sure it works right on mesh+ap and mesh+sta modes.

Whilst here, log the VAP i'm being called on to make it clearer what
is going on.  I may end up adding a VAP dprintf version of this at
some point.

Tested:

* AR9380, STA (DWDS client) + hostap on the same NIC
sys/dev/ath/if_ath_rx.c