diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2010-08-30 07:51:09 -0500 |
---|---|---|
committer | Larry Finger <Larry.Finger@lwfinger.net> | 2010-08-30 07:51:09 -0500 |
commit | 1407a9e105d811632b3fd57741a1b3d72a26c9e6 (patch) | |
tree | eea7c8f1904e77391b9b746234fc33fe5a3e4763 | |
parent | c3747e6650436e8ea57a8675cbaacd14bf4626b4 (diff) | |
download | linux-3.10-1407a9e105d811632b3fd57741a1b3d72a26c9e6.tar.gz linux-3.10-1407a9e105d811632b3fd57741a1b3d72a26c9e6.tar.bz2 linux-3.10-1407a9e105d811632b3fd57741a1b3d72a26c9e6.zip |
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: Albert Wang <albert_wang@realtek.com.tw>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c index 862ac45c528..1529239bac6 100644 --- a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c +++ b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c @@ -1371,6 +1371,8 @@ static int r8711_wx_get_rate(struct net_device *dev, 135) : ((short_GI) ? 72 : 65); max_rate *= 2; /* Mbps/2 */ wrqu->bitrate.value = max_rate * 500000; + } else { + wrqu->bitrate.value = max_rate * 500000; } } else return -1; |