diff options
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_main.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_phy.c | 11 |
2 files changed, 10 insertions, 5 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_main.c b/drivers/net/wireless/bcm43xx/bcm43xx_main.c index ac9a8dd1ab8f..7c1d72fc6289 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_main.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_main.c | |||
@@ -2509,7 +2509,7 @@ error: | |||
2509 | return -ENODEV; | 2509 | return -ENODEV; |
2510 | } | 2510 | } |
2511 | 2511 | ||
2512 | void bcm43xx_init_struct_phyinfo(struct bcm43xx_phyinfo *phy) | 2512 | static void bcm43xx_init_struct_phyinfo(struct bcm43xx_phyinfo *phy) |
2513 | { | 2513 | { |
2514 | /* Initialize a "phyinfo" structure. The structure is already | 2514 | /* Initialize a "phyinfo" structure. The structure is already |
2515 | * zeroed out. | 2515 | * zeroed out. |
@@ -2521,7 +2521,7 @@ void bcm43xx_init_struct_phyinfo(struct bcm43xx_phyinfo *phy) | |||
2521 | spin_lock_init(&phy->lock); | 2521 | spin_lock_init(&phy->lock); |
2522 | } | 2522 | } |
2523 | 2523 | ||
2524 | void bcm43xx_init_struct_radioinfo(struct bcm43xx_radioinfo *radio) | 2524 | static void bcm43xx_init_struct_radioinfo(struct bcm43xx_radioinfo *radio) |
2525 | { | 2525 | { |
2526 | /* Initialize a "radioinfo" structure. The structure is already | 2526 | /* Initialize a "radioinfo" structure. The structure is already |
2527 | * zeroed out. | 2527 | * zeroed out. |
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) { |