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

Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
John W. Linville 2010-01-27 09:44:48 -05:00
parent 22e16e55e3
commit 54233261d5

View file

@ -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 */