Commit 1407a9e1 authored by Larry Finger's avatar Larry Finger

staging: r8712u: Fix rate setting when HT is not enabled

When operating in normal bg mode, the maximum rate was fixed at 48 Mb/s.
Signed-off-by: default avatarAlbert Wang <albert_wang@realtek.com.tw>
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
parent c3747e66
...@@ -1371,6 +1371,8 @@ static int r8711_wx_get_rate(struct net_device *dev, ...@@ -1371,6 +1371,8 @@ static int r8711_wx_get_rate(struct net_device *dev,
135) : ((short_GI) ? 72 : 65); 135) : ((short_GI) ? 72 : 65);
max_rate *= 2; /* Mbps/2 */ max_rate *= 2; /* Mbps/2 */
wrqu->bitrate.value = max_rate * 500000; wrqu->bitrate.value = max_rate * 500000;
} else {
wrqu->bitrate.value = max_rate * 500000;
} }
} else } else
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment