* [PATCH] bcm43xx: Fix scaling error for 'iwlist freq' information
@ 2007-01-23 22:43 Larry Finger
2007-01-23 23:04 ` Michael Buesch
0 siblings, 1 reply; 2+ messages in thread
From: Larry Finger @ 2007-01-23 22:43 UTC (permalink / raw)
To: John Linville
Cc: netdev-u79uwXL29TY76Z2rM5mHXA, Bcm43xx-dev-0fE9KPoRgkgATYTw5x5z8w,
Michael Buesch
The bcm43xx driver returns the available frequencies to 'iwlist freq' with the wrong scaling.
Signed-off-by: Larry Finger <Larry.Finger-tQ5ms3gMjBLk1uMJSBkQmQ@public.gmane.org>
---
John,
This is to be applied to wireless-2.6. It could also be sent upstream to 2.6.20,
but it is not very important.
Larry
---
Index: wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_wx.c
===================================================================
--- wireless-2.6.orig/drivers/net/wireless/bcm43xx/bcm43xx_wx.c
+++ wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_wx.c
@@ -286,7 +286,7 @@ static int bcm43xx_wx_get_rangeparams(st
if (j == IW_MAX_FREQUENCIES)
break;
range->freq[j].i = j + 1;
- range->freq[j].m = geo->a[i].freq;//FIXME?
+ range->freq[j].m = geo->a[i].freq * 100000;
range->freq[j].e = 1;
j++;
}
@@ -294,7 +294,7 @@ static int bcm43xx_wx_get_rangeparams(st
if (j == IW_MAX_FREQUENCIES)
break;
range->freq[j].i = j + 1;
- range->freq[j].m = geo->bg[i].freq;//FIXME?
+ range->freq[j].m = geo->bg[i].freq * 100000;
range->freq[j].e = 1;
j++;
}
---
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] bcm43xx: Fix scaling error for 'iwlist freq' information
2007-01-23 22:43 [PATCH] bcm43xx: Fix scaling error for 'iwlist freq' information Larry Finger
@ 2007-01-23 23:04 ` Michael Buesch
0 siblings, 0 replies; 2+ messages in thread
From: Michael Buesch @ 2007-01-23 23:04 UTC (permalink / raw)
To: Larry Finger; +Cc: John Linville, netdev, Bcm43xx-dev
On Tuesday 23 January 2007 23:43, Larry Finger wrote:
> The bcm43xx driver returns the available frequencies to 'iwlist freq' with the wrong scaling.
>
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> ---
>
> John,
>
> This is to be applied to wireless-2.6. It could also be sent upstream to 2.6.20,
> but it is not very important.
ACKed. The previous rates-fix patch is also ACKed.
> Larry
> ---
>
> Index: wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_wx.c
> ===================================================================
> --- wireless-2.6.orig/drivers/net/wireless/bcm43xx/bcm43xx_wx.c
> +++ wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_wx.c
> @@ -286,7 +286,7 @@ static int bcm43xx_wx_get_rangeparams(st
> if (j == IW_MAX_FREQUENCIES)
> break;
> range->freq[j].i = j + 1;
> - range->freq[j].m = geo->a[i].freq;//FIXME?
> + range->freq[j].m = geo->a[i].freq * 100000;
> range->freq[j].e = 1;
> j++;
> }
> @@ -294,7 +294,7 @@ static int bcm43xx_wx_get_rangeparams(st
> if (j == IW_MAX_FREQUENCIES)
> break;
> range->freq[j].i = j + 1;
> - range->freq[j].m = geo->bg[i].freq;//FIXME?
> + range->freq[j].m = geo->bg[i].freq * 100000;
> range->freq[j].e = 1;
> j++;
> }
>
> ---
>
>
>
--
Greetings Michael.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-23 23:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-23 22:43 [PATCH] bcm43xx: Fix scaling error for 'iwlist freq' information Larry Finger
2007-01-23 23:04 ` Michael Buesch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).