From owner-svn-src-all@freebsd.org Mon May 2 15:14:17 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8CC9B2A646; Mon, 2 May 2016 15:14:17 +0000 (UTC) (envelope-from avos@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 765AD1A5C; Mon, 2 May 2016 15:14:17 +0000 (UTC) (envelope-from avos@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u42FEGf3032655; Mon, 2 May 2016 15:14:16 GMT (envelope-from avos@FreeBSD.org) Received: (from avos@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u42FEGop032654; Mon, 2 May 2016 15:14:16 GMT (envelope-from avos@FreeBSD.org) Message-Id: <201605021514.u42FEGop032654@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: avos set sender to avos@FreeBSD.org using -f From: Andriy Voskoboinyk Date: Mon, 2 May 2016 15:14:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298925 - head/sys/dev/iwn X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2016 15:14:17 -0000 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