diff options
author | sam <sam@FreeBSD.org> | 2009-03-30 21:29:25 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-03-30 21:29:25 +0000 |
commit | 67399c37a8ea6efeff9a9c9c333ecc8c31688e4c (patch) | |
tree | be6b072b34d6312091ca5fddaec74f868132452b /sys/dev/wi | |
parent | 369dfb5670f24cf9f27d3b0d4949c570bb2907b8 (diff) | |
download | FreeBSD-src-67399c37a8ea6efeff9a9c9c333ecc8c31688e4c.zip FreeBSD-src-67399c37a8ea6efeff9a9c9c333ecc8c31688e4c.tar.gz |
fake the association id so packets are not rejected in the tx path
Diffstat (limited to 'sys/dev/wi')
-rw-r--r-- | sys/dev/wi/if_wi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index 10d65d3..172beb3 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -1503,6 +1503,7 @@ wi_status_connected(void *arg, int pending) struct ieee80211com *ic = vap->iv_ic; IEEE80211_LOCK(ic); + vap->iv_bss->ni_associd = 1 | 0xc000; /* NB: anything will do */ WI_VAP(vap)->wv_newstate(vap, IEEE80211_S_RUN, 0); if (vap->iv_newstate_cb != NULL) vap->iv_newstate_cb(vap, IEEE80211_S_RUN, 0); @@ -1515,6 +1516,7 @@ wi_status_disconnected(void *arg, int pending) struct ieee80211vap *vap = arg; if (vap->iv_state == IEEE80211_S_RUN) { + vap->iv_bss->ni_associd = 0; vap->iv_stats.is_rx_deauth++; ieee80211_new_state(vap, IEEE80211_S_SCAN, 0); } |