]> err.no Git - linux-2.6/commitdiff
[PATCH] bcm43xx: Fix scaling error for 'iwlist freq' information
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 23 Jan 2007 22:43:26 +0000 (16:43 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Feb 2007 20:23:54 +0000 (15:23 -0500)
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>
drivers/net/wireless/bcm43xx/bcm43xx_wx.c

index 5b1885268a74a9825bcad18f8d629a67d4a925a5..6961be682c9dfe33c53dbdae13a3da6ac6159778 100644 (file)
@@ -286,7 +286,7 @@ static int bcm43xx_wx_get_rangeparams(struct net_device *net_dev,
                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(struct net_device *net_dev,
                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++;
        }