Commit 809cf2ac authored by Margit Schubert-While's avatar Margit Schubert-While Committed by Linus Torvalds

[PATCH] prism54 Fix supported rates reporting

* We are not correctly reporting supported bit rates.
* Fix it.
parent d716e082
......@@ -436,7 +436,7 @@ prism54_get_range(struct net_device *ndev, struct iw_request_info *info,
{
struct iw_range *range = (struct iw_range *) extra;
islpci_private *priv = netdev_priv(ndev);
char *data;
u8 *data;
int i, m, rvalue;
struct obj_frequencies *freq;
union oid_res_t r;
......@@ -513,8 +513,7 @@ prism54_get_range(struct net_device *ndev, struct iw_request_info *info,
i = 0;
while ((i < IW_MAX_BITRATES) && (*data != 0)) {
/* the result must be in bps. The card gives us 500Kbps */
range->bitrate[i] = (__s32) (*data >> 1);
range->bitrate[i] *= 1000000;
range->bitrate[i] = *data * 500000;
i++;
data++;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment