Date: Sun, 22 Apr 2007 05:17:17 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 118560 for review Message-ID: <200704220517.l3M5HHGZ023580@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=118560 Change 118560 by sam@sam_ebb on 2007/04/22 05:16:15 add missing array entry for static turbo mode; while here leave some asserts so it doesn't happen again Affected files ... .. //depot/projects/wifi/sys/net80211/ieee80211_ioctl.c#75 edit Differences ... ==== //depot/projects/wifi/sys/net80211/ieee80211_ioctl.c#75 (text+ko) ==== @@ -1605,11 +1605,15 @@ IEEE80211_CHAN_FHSS, /* IEEE80211_MODE_FH */ IEEE80211_CHAN_108A, /* IEEE80211_MODE_TURBO_A */ IEEE80211_CHAN_108G, /* IEEE80211_MODE_TURBO_G */ + IEEE80211_CHAN_STURBO, /* IEEE80211_MODE_STURBO_A */ }; u_int modeflags; int i; + KASSERT(mode < IEEE80211_MODE_MAX, ("bad mode %u", mode)); modeflags = chanflags[mode]; + KASSERT(modeflags != 0 || mode == IEEE80211_MODE_AUTO, + ("no chanflags for mode %u", mode)); for (i = 0; i < ic->ic_nchans; i++) { struct ieee80211_channel *c = &ic->ic_channels[i];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704220517.l3M5HHGZ023580>