From 1407a9e105d811632b3fd57741a1b3d72a26c9e6 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Mon, 30 Aug 2010 07:51:09 -0500 Subject: [PATCH] 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 Signed-off-by: Larry Finger --- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c index 862ac45..1529239 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; -- 2.7.4