Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 May 2016 15:14:16 +0000 (UTC)
From:      Andriy Voskoboinyk <avos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r298925 - head/sys/dev/iwn
Message-ID:  <201605021514.u42FEGop032654@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avos
Date: Mon May  2 15:14:16 2016
New Revision: 298925
URL: https://svnweb.freebsd.org/changeset/base/298925

Log:
  iwn: do not buffer frames for non-passive channels (it's not needed).

Modified:
  head/sys/dev/iwn/if_iwn.c

Modified: head/sys/dev/iwn/if_iwn.c
==============================================================================
--- head/sys/dev/iwn/if_iwn.c	Mon May  2 15:07:43 2016	(r298924)
+++ head/sys/dev/iwn/if_iwn.c	Mon May  2 15:14:16 2016	(r298925)
@@ -2852,7 +2852,8 @@ iwn_newstate(struct ieee80211vap *vap, e
 		sc->calib.state = IWN_CALIB_STATE_INIT;
 
 		/* Wait until we hear a beacon before we transmit */
-		sc->sc_beacon_wait = 1;
+		if (IEEE80211_IS_CHAN_PASSIVE(ic->ic_curchan))
+			sc->sc_beacon_wait = 1;
 
 		if ((error = iwn_auth(sc, vap)) != 0) {
 			device_printf(sc->sc_dev,
@@ -2870,7 +2871,8 @@ iwn_newstate(struct ieee80211vap *vap, e
 		}
 
 		/* Wait until we hear a beacon before we transmit */
-		sc->sc_beacon_wait = 1;
+		if (IEEE80211_IS_CHAN_PASSIVE(ic->ic_curchan))
+			sc->sc_beacon_wait = 1;
 
 		/*
 		 * !RUN -> RUN requires setting the association id



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