accept short WEP keys for backward compatibility

This commit is contained in:
Sam Leffler 2003-01-19 20:13:43 +00:00
parent 63264a559f
commit 9142ac5760
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109538

View File

@ -866,8 +866,7 @@ ieee80211_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
error = EINVAL;
break;
}
if (ireq->i_len < IEEE80211_WEP_KEYLEN ||
ireq->i_len > sizeof(tmpkey)) {
if (ireq->i_len > sizeof(tmpkey)) {
error = EINVAL;
break;
}