浏览代码

cfg80211: fix wext-compat for setting rate to 'auto'

Signed-off-by: John W. Linville <linville@tuxdriver.com>
John W. Linville 15 年之前
父节点
当前提交
54233261d5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/wireless/wext-compat.c

+ 1 - 1
net/wireless/wext-compat.c

@@ -1214,7 +1214,7 @@ int cfg80211_wext_siwrate(struct net_device *dev,
 
 
 	memset(&mask, 0, sizeof(mask));
 	memset(&mask, 0, sizeof(mask));
 	fixed = 0;
 	fixed = 0;
-	maxrate = 0;
+	maxrate = (u32)-1;
 
 
 	if (rate->value < 0) {
 	if (rate->value < 0) {
 		/* nothing */
 		/* nothing */