diff options
author | sam <sam@FreeBSD.org> | 2007-03-11 22:37:32 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2007-03-11 22:37:32 +0000 |
commit | 35a6c17cb8cd2d9c814d2cff98b00a26fae9b9e6 (patch) | |
tree | 7601409f400bd2d60403c79b2eb23f78587868c2 /sys/net80211/ieee80211_ioctl.c | |
parent | c77fb6f45fa6f27fca46baa53d66769e9246d705 (diff) | |
download | FreeBSD-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.c | 2 |
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) { |