cfg80211: fix wext-compat for setting rate to 'auto'
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 27 Jan 2010 14:44:48 +0000 (09:44 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 27 Jan 2010 20:02:09 +0000 (15:02 -0500)
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/wext-compat.c

index 966d2f0..b17eeae 100644 (file)
@@ -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 */