Skip to content

Commit

Permalink
staging: r8712u: Fix rate setting when HT is not enabled
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Larry Finger authored and Larry Finger committed Aug 30, 2010
1 parent c3747e6 commit 1407a9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/rtl8712/rtl871x_ioctl_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1407a9e

Please sign in to comment.