nl80211: clean up CQM settings code
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Aug 2013 12:10:48 +0000 (14:10 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 12 Aug 2013 12:08:00 +0000 (14:08 +0200)
commit1da5fcc86d71040c5b294ca5611ae6c86bfa815c
tree74bd01cb4b55adf4e9d37a22247f058187ca0e63
parentab1e8ad3b463fd15b99a9b3980ec0f84294f6207
nl80211: clean up CQM settings code

Clean up the CQM settings code a bit and while at it
enforce that when setting the threshold to 0 (disable)
the hysteresis is also set to 0 to avoid confusion.
As we haven't enforce it, simply override userspace.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c