diff options
author | Michael Buesch <mbuesch@freenet.de> | 2006-03-25 11:04:41 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-03-27 11:19:46 -0500 |
commit | 8afceb1e6a3b6361c7c2456ef488ee9c6db7b370 (patch) | |
tree | c38bc8587af99e761766fb0388c4b9c1e59be22b /drivers/net/wireless/bcm43xx/bcm43xx_phy.c | |
parent | b5e868edbeaa5fd832d42563195c0da00edfd3c9 (diff) |
[PATCH] bcm43xx: fix the remaining sparse warnings.
Signed-off-by: Michael Buesch <mbuesch@freenet.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx_phy.c')
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_phy.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_phy.c b/drivers/net/wireless/bcm43xx/bcm43xx_phy.c index 054c64e462fb..4ab17a7f7e91 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_phy.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_phy.c | |||
@@ -1057,9 +1057,14 @@ static void bcm43xx_phy_initg(struct bcm43xx_private *bcm) | |||
1057 | bcm43xx_phy_write(bcm, 0x002F, 0x0202); | 1057 | bcm43xx_phy_write(bcm, 0x002F, 0x0202); |
1058 | } | 1058 | } |
1059 | 1059 | ||
1060 | if ((bcm->sprom.boardflags & BCM43xx_BFL_RSSI) == 0) { | 1060 | if (!(bcm->sprom.boardflags & BCM43xx_BFL_RSSI)) { |
1061 | FIXME();//FIXME: 0x7FFFFFFF should be 16-bit ! | 1061 | /* The specs state to update the NRSSI LT with |
1062 | bcm43xx_nrssi_hw_update(bcm, (u16)0x7FFFFFFF); | 1062 | * the value 0x7FFFFFFF here. I think that is some weird |
1063 | * compiler optimization in the original driver. | ||
1064 | * Essentially, what we do here is resetting all NRSSI LT | ||
1065 | * entries to -32 (see the limit_value() in nrssi_hw_update()) | ||
1066 | */ | ||
1067 | bcm43xx_nrssi_hw_update(bcm, 0xFFFF); | ||
1063 | bcm43xx_calc_nrssi_threshold(bcm); | 1068 | bcm43xx_calc_nrssi_threshold(bcm); |
1064 | } else if (phy->connected) { | 1069 | } else if (phy->connected) { |
1065 | if (radio->nrssi[0] == -1000) { | 1070 | if (radio->nrssi[0] == -1000) { |