From owner-svn-src-all@freebsd.org Fri May 20 08:58:07 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 86C2AB43B77; Fri, 20 May 2016 08:58:07 +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 542141096; Fri, 20 May 2016 08:58:07 +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 u4K8w6Wr027948; Fri, 20 May 2016 08:58:06 GMT (envelope-from avos@FreeBSD.org) Received: (from avos@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4K8w6Fh027946; Fri, 20 May 2016 08:58:06 GMT (envelope-from avos@FreeBSD.org) Message-Id: <201605200858.u4K8w6Fh027946@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: avos set sender to avos@FreeBSD.org using -f From: Andriy Voskoboinyk Date: Fri, 20 May 2016 08:58:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300292 - in head/sys/dev: bwn wi 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: Fri, 20 May 2016 08:58:07 -0000 Author: avos Date: Fri May 20 08:58:06 2016 New Revision: 300292 URL: https://svnweb.freebsd.org/changeset/base/300292 Log: wi: fix a typo. The max size of bitmask is IEEE80211_MODE_BYTES, not IEEE80211_MODE_MAX. Reuse it in bwn(4) while I'm here. Noticed by: kevlo Modified: head/sys/dev/bwn/if_bwn.c head/sys/dev/wi/if_wi.c Modified: head/sys/dev/bwn/if_bwn.c ============================================================================== --- head/sys/dev/bwn/if_bwn.c Fri May 20 08:43:18 2016 (r300291) +++ head/sys/dev/bwn/if_bwn.c Fri May 20 08:58:06 2016 (r300292) @@ -1498,7 +1498,7 @@ bwn_setup_channels(struct bwn_mac *mac, { struct bwn_softc *sc = mac->mac_sc; struct ieee80211com *ic = &sc->sc_ic; - uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)]; + uint8_t bands[IEEE80211_MODE_BYTES]; memset(ic->ic_channels, 0, sizeof(ic->ic_channels)); ic->ic_nchans = 0; Modified: head/sys/dev/wi/if_wi.c ============================================================================== --- head/sys/dev/wi/if_wi.c Fri May 20 08:43:18 2016 (r300291) +++ head/sys/dev/wi/if_wi.c Fri May 20 08:58:06 2016 (r300292) @@ -691,7 +691,7 @@ wi_getradiocaps(struct ieee80211com *ic, int maxchans, int *nchans, struct ieee80211_channel chans[]) { struct wi_softc *sc = ic->ic_softc; - u_int8_t bands[IEEE80211_MODE_MAX]; + u_int8_t bands[IEEE80211_MODE_BYTES]; int i; memset(bands, 0, sizeof(bands));