diff options
author | sam <sam@FreeBSD.org> | 2004-12-31 21:13:35 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2004-12-31 21:13:35 +0000 |
commit | e1832f531bd039cef11fea3be8fd65e94a5b2c0b (patch) | |
tree | 1dc481ff8087f087c0f26a553f8ed2e64322f161 /sys/net80211 | |
parent | 0ccfc318ae47722c61d85019e819fa932fcc8e6b (diff) | |
download | FreeBSD-src-e1832f531bd039cef11fea3be8fd65e94a5b2c0b.zip FreeBSD-src-e1832f531bd039cef11fea3be8fd65e94a5b2c0b.tar.gz |
accept IEEE80211_KEYIX_NONE for a default tx key
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_ioctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index 170ea8f..cab26de 100644 --- a/sys/net80211/ieee80211_ioctl.c +++ b/sys/net80211/ieee80211_ioctl.c @@ -1972,7 +1972,8 @@ ieee80211_ioctl_set80211(struct ieee80211com *ic, u_long cmd, struct ieee80211re break; case IEEE80211_IOC_WEPTXKEY: kid = (u_int) ireq->i_val; - if (kid >= IEEE80211_WEP_NKID) + if (kid >= IEEE80211_WEP_NKID && + (u_int16_t) kid != IEEE80211_KEYIX_NONE) return EINVAL; ic->ic_def_txkey = kid; error = ENETRESET; /* push to hardware */ |