]> git.openfabrics.org - ~shefty/rdma-dev.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)
commitebf348fcd088e3ffc6e76f6f349e27d30604865b
tree62a01fcfad441b28acf6e39703ec37004a60ab36
parentccaf8c32d5ed08bfb4c45492f8f1c145fd45f4e8
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