cfg80211: add sanity check for retry limit in wext-compat
PATCH 1/1 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 <[email protected]>
--- net/wireless/wext-compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/wext-compat.c +1 -1
@@ -370,7 +370,7 @@ static int cfg80211_wext_siwretry(struct net_device *dev,u8 oshort = wdev->wiphy->retry_short;int err; -if (retry->disabled || +if (retry->disabled || retry->value <1 || retry->value >255 || (retry->flags &IW_RETRY_TYPE ) !=IW_RETRY_LIMIT )return -EINVAL ;
Signature · 1 line
1.8.1.4
Johannes Berg
maintainerQuoted 3 lines · Ujjal Roy
Block setting the wrong values through iwconfig retry command. Add sanity checking before sending the retry limit to the driver.
Sure, applied. You'd probably be better off just turning off wext though :)
johannes
Quoted 3 lines · Johannes Berg
Sure, applied. You'd probably be better off just turning off wext though :)
Sorry!