svn commit: r298925 - head/sys/dev/iwn
Andriy Voskoboinyk
avos at FreeBSD.org
Mon May 2 15:14:17 UTC 2016
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
More information about the svn-src-all
mailing list