From 067a92f8f4effc05a608c5dbdbee6b96d71e336f Mon Sep 17 00:00:00 2001 From: Andriy Voskoboinyk Date: Mon, 29 Feb 2016 00:05:37 +0000 Subject: [PATCH] urtwn: do not filter beacon frames in HOSTAP mode while scanning urtwn_set_rx_bssid_all() will allow to receive beacons only when they are not denied by filter. Revealed by D5474. Tested with RTL8188CUS, HOSTAP mode. Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D5477 --- sys/dev/usb/wlan/if_urtwn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/usb/wlan/if_urtwn.c b/sys/dev/usb/wlan/if_urtwn.c index d95be56b23f2..8b568474d980 100644 --- a/sys/dev/usb/wlan/if_urtwn.c +++ b/sys/dev/usb/wlan/if_urtwn.c @@ -4170,8 +4170,7 @@ urtwn_rxfilter_init(struct urtwn_softc *sc) case IEEE80211_M_HOSTAP: filter &= ~( R92C_RXFLTMAP_SUBTYPE(IEEE80211_FC0_SUBTYPE_ASSOC_RESP) | - R92C_RXFLTMAP_SUBTYPE(IEEE80211_FC0_SUBTYPE_REASSOC_RESP) | - R92C_RXFLTMAP_SUBTYPE(IEEE80211_FC0_SUBTYPE_BEACON)); + R92C_RXFLTMAP_SUBTYPE(IEEE80211_FC0_SUBTYPE_REASSOC_RESP)); break; case IEEE80211_M_MONITOR: case IEEE80211_M_IBSS: