diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-03-23 14:31:31 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-03-23 14:31:31 +0000 |
commit | 0495685db076897865a82fe5ae919bceb7bc5679 (patch) | |
tree | db40ed3030329a7cd75837a66d6c7aa0363f4002 /sys | |
parent | e14131f581bbfac40c04f8bde231a65c4adad61c (diff) | |
download | FreeBSD-src-0495685db076897865a82fe5ae919bceb7bc5679.zip FreeBSD-src-0495685db076897865a82fe5ae919bceb7bc5679.tar.gz |
When receiving a management frame, pass the mbuf to bpf before calling
iv_recv_mgmt(). iv_recv_mgmt() will generate management frame responses
and pass them to bpf before the management frame that triggered the
response.
PR: 144323
Submitted by: Alexander Egorenkov <egorenar at gmail.com>
MFC after: 2 weeks
Sponsored by: iXsystems, inc.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net80211/ieee80211_hostap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_hostap.c b/sys/net80211/ieee80211_hostap.c index 8405b4f..9f1d3b5 100644 --- a/sys/net80211/ieee80211_hostap.c +++ b/sys/net80211/ieee80211_hostap.c @@ -883,6 +883,9 @@ hostap_input(struct ieee80211_node *ni, struct mbuf *m, int rssi, int nf) wh = mtod(m, struct ieee80211_frame *); wh->i_fc[1] &= ~IEEE80211_FC1_WEP; } + if (ieee80211_radiotap_active_vap(vap)) + ieee80211_radiotap_rx(vap, m); + need_tap = 0; vap->iv_recv_mgmt(ni, m, subtype, rssi, nf); goto out; |