cfg80211: add sanity check for retry limit in wext-compat
authorUjjal Roy <royujjal@gmail.com>
Thu, 9 Jan 2014 15:46:14 +0000 (21:16 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 9 Jan 2014 16:05:28 +0000 (17:05 +0100)
commitf5aa0d21dd5ada040ff42b4d40357285e4ace441
treec51ebb815d33aadf8f86df11ee8e1a42f3fb0abf
parentbdfbec2d2d240e9c528caae9c743801629b60166
cfg80211: add sanity check for retry limit in wext-compat

Block setting the wrong values through iwconfig retry
command. Add sanity checking before sending the retry
limit to the driver.

Signed-off-by: Ujjal Roy <royujjal@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/wext-compat.c