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 966d2f01beac2a26060df2bd284369fc3656f251..b17eeae448d54417d30ee687395eb075ec7a7f5a 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 */