From: John W. Linville Date: Wed, 27 Jan 2010 14:44:48 +0000 (-0500) Subject: cfg80211: fix wext-compat for setting rate to 'auto' X-Git-Tag: firefly_0821_release~9833^2~3055^2~49^2~151 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=54233261d5aa2926f080b67ac22f508c9f15e690;p=firefly-linux-kernel-4.4.55.git cfg80211: fix wext-compat for setting rate to 'auto' Signed-off-by: John W. Linville --- diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c index 966d2f01beac..b17eeae448d5 100644 --- a/net/wireless/wext-compat.c +++ b/net/wireless/wext-compat.c @@ -1214,7 +1214,7 @@ int cfg80211_wext_siwrate(struct net_device *dev, memset(&mask, 0, sizeof(mask)); fixed = 0; - maxrate = 0; + maxrate = (u32)-1; if (rate->value < 0) { /* nothing */