Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Mar 2009 21:29:25 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r190574 - head/sys/dev/wi
Message-ID:  <200903302129.n2ULTPpF078760@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903302129.n2ULTPpF078760>