]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: validate remain-on-channel time better
authorJohannes Berg <johannes.berg@intel.com>
Fri, 1 Jun 2012 10:50:54 +0000 (12:50 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Jun 2012 19:20:22 +0000 (15:20 -0400)
commit09f7979106661e35ea4a8a982ed8b9ace0ae8705
tree62a01fcfad441b28acf6e39703ec37004a60ab36
parent15943db51afd5a3ab244ea98e5f7e14adf4588d7
cfg80211: validate remain-on-channel time better

The remain-on-channel time validation shouldn't
depend on the value of HZ, as it does now with
the check against jiffies, since then you might
use a value that works on one system but not on
another. Fix it by checking against a minimum
that's fixed.

Also add validation of the wait duration for a
management frame TX since this also translates
into remain-on-channel internally.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/linux/nl80211.h
net/wireless/nl80211.c