diff options
author | Sam Leffler <sam@FreeBSD.org> | 2005-08-08 03:30:57 +0000 |
---|---|---|
committer | Sam Leffler <sam@FreeBSD.org> | 2005-08-08 03:30:57 +0000 |
commit | d365f9c76094de4e2c66f4a916999de432e50628 (patch) | |
tree | b61ffe07bac4a6b4eaff6820d88a3707be5fc831 /sys/net80211/ieee80211_ioctl.c | |
parent | 9c3fd4048954bb01a3a4150414778b8182b7bbbf (diff) | |
download | src-d365f9c76094de4e2c66f4a916999de432e50628.tar.gz src-d365f9c76094de4e2c66f4a916999de432e50628.zip |
Cleanup beacon/listen interval handling:
o separate configured beacon interval from listen interval; this
avoids potential use of one value for the other (e.g. setting
powersavesleep to 0 clobbers the beacon interval used in hostap
or ibss mode)
o bounds check the beacon interval received in probe response and
beacon frames and drop frames with bogus settings; not clear
if we should instead clamp the value as any alteration would
result in mismatched sta+ap configuration and probably be more
confusing (don't want to log to the console but perhaps ok with
rate limiting)
o while here up max beacon interval to reflect WiFi standard
Noticed by: Martin <nakal@nurfuerspam.de>
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=148843
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 3396934d2e99..61d8cc49563d 100644 --- a/sys/net80211/ieee80211_ioctl.c +++ b/sys/net80211/ieee80211_ioctl.c @@ -2317,7 +2317,7 @@ ieee80211_ioctl_set80211(struct ieee80211com *ic, u_long cmd, struct ieee80211re return EINVAL; if (IEEE80211_BINTVAL_MIN <= ireq->i_val && ireq->i_val <= IEEE80211_BINTVAL_MAX) { - ic->ic_lintval = ireq->i_val; + ic->ic_bintval = ireq->i_val; error = ENETRESET; /* requires restart */ } else error = EINVAL; |