diff options
author | sam <sam@FreeBSD.org> | 2003-01-19 20:13:43 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-01-19 20:13:43 +0000 |
commit | 31d113863ae808125788db5b230b39a0627961df (patch) | |
tree | d93383d476bc793d9248236411fad85cdc154cb7 /sys | |
parent | 85e76830e5ffd038cd515d55b2a3e36f3341caa0 (diff) | |
download | FreeBSD-src-31d113863ae808125788db5b230b39a0627961df.zip FreeBSD-src-31d113863ae808125788db5b230b39a0627961df.tar.gz |
accept short WEP keys for backward compatibility
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_ieee80211subr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_ieee80211subr.c b/sys/net/if_ieee80211subr.c index 79cb841..b088e26 100644 --- a/sys/net/if_ieee80211subr.c +++ b/sys/net/if_ieee80211subr.c @@ -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; } |