diff options
author | sam <sam@FreeBSD.org> | 2009-04-26 21:46:04 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-04-26 21:46:04 +0000 |
commit | 4af5d5056bb6ef08f69414227e158a45d7343719 (patch) | |
tree | 9e668ef6901f296b5a298c7f64ea8641d4d3b319 /sys/net80211/ieee80211_sta.c | |
parent | 3469cff523519709cbaeb40ab2326524ee4f0c11 (diff) | |
download | FreeBSD-src-4af5d5056bb6ef08f69414227e158a45d7343719.zip FreeBSD-src-4af5d5056bb6ef08f69414227e158a45d7343719.tar.gz |
add iv_recv_ctl method to allow hooking rx ctl frame handling
Diffstat (limited to 'sys/net80211/ieee80211_sta.c')
-rw-r--r-- | sys/net80211/ieee80211_sta.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_sta.c b/sys/net80211/ieee80211_sta.c index 3cdcaec..a90e504 100644 --- a/sys/net80211/ieee80211_sta.c +++ b/sys/net80211/ieee80211_sta.c @@ -70,6 +70,7 @@ static int sta_input(struct ieee80211_node *, struct mbuf *, int rssi, int noise, uint32_t rstamp); static void sta_recv_mgmt(struct ieee80211_node *, struct mbuf *, int subtype, int rssi, int noise, uint32_t rstamp); +static void sta_recv_ctl(struct ieee80211_node *, struct mbuf *, int subtype); void ieee80211_sta_attach(struct ieee80211com *ic) @@ -93,6 +94,7 @@ sta_vattach(struct ieee80211vap *vap) vap->iv_newstate = sta_newstate; vap->iv_input = sta_input; vap->iv_recv_mgmt = sta_recv_mgmt; + vap->iv_recv_ctl = sta_recv_ctl; vap->iv_opdetach = sta_vdetach; vap->iv_bmiss = sta_beacon_miss; } @@ -872,6 +874,7 @@ sta_input(struct ieee80211_node *ni, struct mbuf *m, case IEEE80211_FC0_TYPE_CTL: vap->iv_stats.is_rx_ctl++; IEEE80211_NODE_STAT(ni, rx_ctrl); + vap->iv_recv_ctl(ni, m, subtype); goto out; default: IEEE80211_DISCARD(vap, IEEE80211_MSG_ANY, @@ -1597,3 +1600,8 @@ sta_recv_mgmt(struct ieee80211_node *ni, struct mbuf *m0, #undef ISREASSOC #undef ISPROBE } + +static void +sta_recv_ctl(struct ieee80211_node *ni, struct mbuf *m0, int subtype) +{ +} |