Date: Sun, 11 Mar 2007 08:01:14 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 115712 for review Message-ID: <200703110801.l2B81EiS091520@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=115712 Change 115712 by sam@sam_ebb on 2007/03/11 08:00:25 correct modecaps checks Affected files ... .. //depot/projects/wifi/sys/dev/iwi/if_iwi.c#23 edit Differences ... ==== //depot/projects/wifi/sys/dev/iwi/if_iwi.c#23 (text+ko) ==== @@ -2653,8 +2653,6 @@ static int iwi_scan(struct iwi_softc *sc) { -#define IEEE80211_MODE_5GHZ (1<<IEEE80211_MODE_11A) -#define IEEE80211_MODE_2GHZ ((1<<IEEE80211_MODE_11B)|1<<IEEE80211_MODE_11G) struct ieee80211com *ic = &sc->sc_ic; const struct ieee80211_channel *c; struct iwi_scan_ext scan; @@ -2689,7 +2687,7 @@ scan_type = IWI_SCAN_TYPE_BROADCAST; ix = 0; - if (isset(ic->ic_modecaps, IEEE80211_MODE_5GHZ)) { + if (isset(ic->ic_modecaps, IEEE80211_MODE_11A)) { start = ix; for (i = 0; i <= IEEE80211_CHAN_MAX; i++) { c = &ic->ic_channels[i]; @@ -2713,7 +2711,7 @@ ix++; } } - if (isset(ic->ic_modecaps, IEEE80211_MODE_2GHZ)) { + if (isset(ic->ic_modecaps, IEEE80211_MODE_11B)) { start = ix; for (i = 0; i <= IEEE80211_CHAN_MAX; i++) { c = &ic->ic_channels[i]; @@ -2741,8 +2739,6 @@ sc->sc_ifp->if_timer = 1; sc->flags |= IWI_FLAG_SCANNING; return iwi_cmd(sc, IWI_CMD_SCAN_EXT, &scan, sizeof scan); -#undef IEEE80211_MODE_5GHZ -#undef IEEE80211_MODE_2GHZ } static void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703110801.l2B81EiS091520>