Accept any correct frames from any source when MONITOR mode is used.
Submitted by: Andriy Voskoboinyk <s3erios at gmail.com> Differential Revision: https://reviews.freebsd.org/D3812
This commit is contained in:
parent
b2d48be1bc
commit
dc82802918
@ -1632,6 +1632,19 @@ urtwn_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
|
||||
/* Enable Rx of data frames. */
|
||||
urtwn_write_2(sc, R92C_RXFLTMAP2, 0xffff);
|
||||
|
||||
/* Enable Rx of ctrl frames. */
|
||||
urtwn_write_2(sc, R92C_RXFLTMAP1, 0xffff);
|
||||
|
||||
/*
|
||||
* Accept data/control/management frames
|
||||
* from any BSSID.
|
||||
*/
|
||||
urtwn_write_4(sc, R92C_RCR,
|
||||
(urtwn_read_4(sc, R92C_RCR) & ~(R92C_RCR_APM |
|
||||
R92C_RCR_CBSSID_DATA | R92C_RCR_CBSSID_BCN)) |
|
||||
R92C_RCR_ADF | R92C_RCR_ACF | R92C_RCR_AMF |
|
||||
R92C_RCR_AAP);
|
||||
|
||||
/* Turn link LED on. */
|
||||
urtwn_set_led(sc, URTWN_LED_LINK, 1);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user