diff options
author | sam <sam@FreeBSD.org> | 2009-06-02 00:06:39 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-06-02 00:06:39 +0000 |
commit | cab175ca2d15d9e321b35b3dd7a38e3d6a17fa9a (patch) | |
tree | f542414080ca2ea7d72aa6d07235dfde4544397c /sys/net80211 | |
parent | 2060c551f6279673cab4ec15028df0f8ecf64bca (diff) | |
download | FreeBSD-src-cab175ca2d15d9e321b35b3dd7a38e3d6a17fa9a.zip FreeBSD-src-cab175ca2d15d9e321b35b3dd7a38e3d6a17fa9a.tar.gz |
don't dispatch frames to vap's not running
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index 6e06918..3cd9d8a 100644 --- a/sys/net80211/ieee80211_input.c +++ b/sys/net80211/ieee80211_input.c @@ -65,6 +65,9 @@ ieee80211_input_all(struct ieee80211com *ic, struct mbuf *m, int rssi, int nf) struct ieee80211_node *ni; struct mbuf *mcopy; + /* NB: could check for IFF_UP but this is cheaper */ + if (vap->iv_state == IEEE80211_S_INIT) + continue; /* * WDS vap's only receive directed traffic from the * station at the ``far end''. That traffic should |