Skip to content

Commit

Permalink
carl9170: use rx chainmask from eeprom
Browse files Browse the repository at this point in the history
The eeprom provides a mask for all present rx chains.
Why not use it instead of the generic initval default?

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Christian Lamparter authored and John W. Linville committed Sep 21, 2010
1 parent e0b1cc5 commit 9dec6f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/net/wireless/ath/carl9170/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,11 @@ static int carl9170_init_phy_from_eeprom(struct ar9170 *ar,
SET_VAL(AR9170_PHY_TPCRG1_PD_GAIN_2, val,
xpd2pd[m->xpdGain & 0xf] >> 2);
carl9170_regwrite(AR9170_PHY_REG_TPCRG1, val);
carl9170_regwrite_finish();

carl9170_regwrite(AR9170_PHY_REG_RX_CHAINMASK, ar->eeprom.rx_mask);
carl9170_regwrite(AR9170_PHY_REG_CAL_CHAINMASK, ar->eeprom.rx_mask);

carl9170_regwrite_finish();
return carl9170_regwrite_result();
}

Expand Down

0 comments on commit 9dec6f9

Please sign in to comment.