aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-06-01 06:50:54 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-06-06 15:20:22 -0400
commitebf348fcd088e3ffc6e76f6f349e27d30604865b (patch)
tree62a01fcfad441b28acf6e39703ec37004a60ab36 /include
parentccaf8c32d5ed08bfb4c45492f8f1c145fd45f4e8 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nl80211.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index 85e5037a218d..970afdf5a605 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -1522,6 +1522,8 @@ enum nl80211_attrs {
1522#define NL80211_MAX_NR_CIPHER_SUITES 5 1522#define NL80211_MAX_NR_CIPHER_SUITES 5
1523#define NL80211_MAX_NR_AKM_SUITES 2 1523#define NL80211_MAX_NR_AKM_SUITES 2
1524 1524
1525#define NL80211_MIN_REMAIN_ON_CHANNEL_TIME 10
1526
1525/** 1527/**
1526 * enum nl80211_iftype - (virtual) interface types 1528 * enum nl80211_iftype - (virtual) interface types
1527 * 1529 *