1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

accept IEEE80211_KEYIX_NONE for a default tx key

This commit is contained in:
Sam Leffler 2004-12-31 21:13:35 +00:00
parent 3c20c603ca
commit 380c5fa9ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139519

View File

@ -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 */