From cf1c8d5f9c2c703715953cffdce44eb2769cbbb1 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Mon, 30 Mar 2009 21:29:25 +0000 Subject: [PATCH] fake the association id so packets are not rejected in the tx path --- sys/dev/wi/if_wi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index 10d65d372bb..172beb3fed5 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); }