diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2007-01-23 17:43:26 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-02-07 15:23:54 -0500 |
commit | d1dbd283d68cace314edd186cf530324186dd26e (patch) | |
tree | 672c45bc96f6d78769e9144ffba74d6990f35f2e /drivers/net/wireless/bcm43xx | |
parent | 36ad8cd7b1215ed896cab1b59a7a94577e7c4f6b (diff) |
[PATCH] bcm43xx: Fix scaling error for 'iwlist freq' information
The bcm43xx driver returns the available frequencies to 'iwlist freq'
with the wrong scaling.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/bcm43xx')
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_wx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_wx.c b/drivers/net/wireless/bcm43xx/bcm43xx_wx.c index 5b1885268a74..6961be682c9d 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_wx.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_wx.c | |||
@@ -286,7 +286,7 @@ static int bcm43xx_wx_get_rangeparams(struct net_device *net_dev, | |||
286 | if (j == IW_MAX_FREQUENCIES) | 286 | if (j == IW_MAX_FREQUENCIES) |
287 | break; | 287 | break; |
288 | range->freq[j].i = j + 1; | 288 | range->freq[j].i = j + 1; |
289 | range->freq[j].m = geo->a[i].freq;//FIXME? | 289 | range->freq[j].m = geo->a[i].freq * 100000; |
290 | range->freq[j].e = 1; | 290 | range->freq[j].e = 1; |
291 | j++; | 291 | j++; |
292 | } | 292 | } |
@@ -294,7 +294,7 @@ static int bcm43xx_wx_get_rangeparams(struct net_device *net_dev, | |||
294 | if (j == IW_MAX_FREQUENCIES) | 294 | if (j == IW_MAX_FREQUENCIES) |
295 | break; | 295 | break; |
296 | range->freq[j].i = j + 1; | 296 | range->freq[j].i = j + 1; |
297 | range->freq[j].m = geo->bg[i].freq;//FIXME? | 297 | range->freq[j].m = geo->bg[i].freq * 100000; |
298 | range->freq[j].e = 1; | 298 | range->freq[j].e = 1; |
299 | j++; | 299 | j++; |
300 | } | 300 | } |