summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_ioctl.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2007-03-11 22:37:32 +0000
committersam <sam@FreeBSD.org>2007-03-11 22:37:32 +0000
commit35a6c17cb8cd2d9c814d2cff98b00a26fae9b9e6 (patch)
tree7601409f400bd2d60403c79b2eb23f78587868c2 /sys/net80211/ieee80211_ioctl.c
parentc77fb6f45fa6f27fca46baa53d66769e9246d705 (diff)
downloadFreeBSD-src-35a6c17cb8cd2d9c814d2cff98b00a26fae9b9e6.zip
FreeBSD-src-35a6c17cb8cd2d9c814d2cff98b00a26fae9b9e6.tar.gz
change ic_modecaps to a bit vector and use setbit, et. al.
Diffstat (limited to 'sys/net80211/ieee80211_ioctl.c')
-rw-r--r--sys/net80211/ieee80211_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c
index 1f19ff5..0499bcb 100644
--- a/sys/net80211/ieee80211_ioctl.c
+++ b/sys/net80211/ieee80211_ioctl.c
@@ -595,7 +595,7 @@ ieee80211_cfgset(struct ieee80211com *ic, u_long cmd, caddr_t data)
*/
for (j = IEEE80211_MODE_11A;
j < IEEE80211_MODE_MAX; j++) {
- if ((ic->ic_modecaps & (1<<j)) == 0)
+ if (isclr(ic->ic_modecaps, j))
continue;
i = findrate(ic, j, rate);
if (i != -1) {
OpenPOWER on IntegriCloud