From: Larry Finger Date: Mon, 30 Aug 2010 12:51:09 +0000 (-0500) Subject: staging: r8712u: Fix rate setting when HT is not enabled X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1407a9e105d811632b3fd57741a1b3d72a26c9e6;p=linux-beck.git 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 --- diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c index 862ac45c5287..1529239bac68 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;