forked from Minki/linux
[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>
This commit is contained in:
parent
36ad8cd7b1
commit
d1dbd283d6
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user