svn commit: r190574 - head/sys/dev/wi

Sam Leffler sam at FreeBSD.org
Mon Mar 30 14:29:29 PDT 2009


Author: sam
Date: Mon Mar 30 21:29:25 2009
New Revision: 190574
URL: http://svn.freebsd.org/changeset/base/190574

Log:
  fake the association id so packets are not rejected in the tx path

Modified:
  head/sys/dev/wi/if_wi.c

Modified: head/sys/dev/wi/if_wi.c
==============================================================================
--- head/sys/dev/wi/if_wi.c	Mon Mar 30 20:56:37 2009	(r190573)
+++ head/sys/dev/wi/if_wi.c	Mon Mar 30 21:29:25 2009	(r190574)
@@ -1503,6 +1503,7 @@ wi_status_connected(void *arg, int pendi
 	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 pe
 	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);
 	}


More information about the svn-src-all mailing list