staging: r8712u: Fix rate setting when HT is not enabled
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 30 Aug 2010 12:51:09 +0000 (07:51 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Mon, 30 Aug 2010 12:51:09 +0000 (07:51 -0500)
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>
drivers/staging/rtl8712/rtl871x_ioctl_linux.c

index 862ac45c52878f02fd254c9641ad83693640378c..1529239bac686f792af1dfe88251e2b3ab7891cf 100644 (file)
@@ -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;