Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24698
b: refs/heads/master
c: 67093a6
h: refs/heads/master
v: v3
  • Loading branch information
Danny van Dyk authored and John W. Linville committed Mar 27, 2006
1 parent f503465 commit 0469281
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8fa252d099d864f8848a9890f26d1a51a9c7ad32
refs/heads/master: 67093a65c08dc45374f642b1ec1b86e7095a4dc8
15 changes: 10 additions & 5 deletions trunk/drivers/net/wireless/bcm43xx/bcm43xx_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ static void bcm43xx_phy_initb6(struct bcm43xx_private *bcm)
bcm43xx_radio_write16(bcm, 0x0050, 0x0020);
if ((bcm->current_core->radio->manufact == 0x17F) &&
(bcm->current_core->radio->version == 0x2050) &&
(bcm->current_core->radio->revision == 2)) {
(bcm->current_core->radio->revision <= 2)) {
bcm43xx_radio_write16(bcm, 0x0050, 0x0020);
bcm43xx_radio_write16(bcm, 0x005A, 0x0070);
bcm43xx_radio_write16(bcm, 0x005B, 0x007B);
Expand Down Expand Up @@ -984,10 +984,15 @@ static void bcm43xx_phy_initb6(struct bcm43xx_private *bcm)
bcm43xx_write16(bcm, 0x03E4, 0x0009);
if (phy->type == BCM43xx_PHYTYPE_B) {
bcm43xx_write16(bcm, 0x03E6, 0x8140);
bcm43xx_phy_write(bcm, 0x0016, 0x5410);
bcm43xx_phy_write(bcm, 0x0017, 0xA820);
bcm43xx_phy_write(bcm, 0x0007, 0x0062);
TODO();//TODO: calibrate stuff.
bcm43xx_phy_write(bcm, 0x0016, 0x0410);
bcm43xx_phy_write(bcm, 0x0017, 0x0820);
bcm43xx_phy_write(bcm, 0x0062, 0x0007);
(void) bcm43xx_radio_calibrationvalue(bcm);
bcm43xx_phy_lo_b_measure(bcm);
if (bcm->sprom.boardflags & BCM43xx_BFL_RSSI) {
bcm43xx_calc_nrssi_slope(bcm);
bcm43xx_calc_nrssi_threshold(bcm);
}
bcm43xx_phy_init_pctl(bcm);
} else
bcm43xx_write16(bcm, 0x03E6, 0x0);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/bcm43xx/bcm43xx_radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ int bcm43xx_radio_set_interference_mitigation(struct bcm43xx_private *bcm,
return 0;
}

static u16 bcm43xx_radio_calibrationvalue(struct bcm43xx_private *bcm)
u16 bcm43xx_radio_calibrationvalue(struct bcm43xx_private *bcm)
{
u16 reg, index, ret;

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/bcm43xx/bcm43xx_radio.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@ void bcm43xx_nrssi_hw_update(struct bcm43xx_private *bcm, u16 val);
void bcm43xx_nrssi_mem_update(struct bcm43xx_private *bcm);

void bcm43xx_radio_set_tx_iq(struct bcm43xx_private *bcm);
u16 bcm43xx_radio_calibrationvalue(struct bcm43xx_private *bcm);

#endif /* BCM43xx_RADIO_H_ */

0 comments on commit 0469281

Please sign in to comment.