diff options
author | Andriy Voskoboinyk <avos@FreeBSD.org> | 2016-05-02 15:14:16 +0000 |
---|---|---|
committer | Andriy Voskoboinyk <avos@FreeBSD.org> | 2016-05-02 15:14:16 +0000 |
commit | b8ad211534e4529ab7e58679c1cf88fb6330aab6 (patch) | |
tree | 7895687423732ebd49c9f11c70e15dabd13361af /sys/dev/iwn/if_iwn.c | |
parent | e29c5529906483bcb979c1ddbae77400b704fe1c (diff) |
iwn: do not buffer frames for non-passive channels (it's not needed).
Notes
Notes:
svn path=/head/; revision=298925
Diffstat (limited to 'sys/dev/iwn/if_iwn.c')
-rw-r--r-- | sys/dev/iwn/if_iwn.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/iwn/if_iwn.c b/sys/dev/iwn/if_iwn.c index d0a952b0328a..65724e7c5dbd 100644 --- a/sys/dev/iwn/if_iwn.c +++ b/sys/dev/iwn/if_iwn.c @@ -2852,7 +2852,8 @@ iwn_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) 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, enum ieee80211_state nstate, int arg) } /* 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 |