N PHY PreCalibrate TX Gain
- Set bbmult to 0
If (nphy_ipa2g_on and the band type is 2G) or (nphy_ipa5g_on and the band type is 5G)
- If the PHY Revision is less than 5
Call N PHY Calibrate TX Gain Control with arguments 11, 0
If hw_phytxchain not equal to 3
Set nphy_txcal_pwr_idx[1] to nphy_txcal_pwr_idx[0]
Call N PHY TX Power Index with arguments 3, nphy_txcal_pwr_idx[0], 1
- Set bbmult to 1
- Else if the PHY Revision is 5
- If the current band is 2 GHz
Call N PHY Calibrate TX Gain Control with arguments 12, 0
- Otherwise
Set nphy_txcal_pwr_idx[0] to 80
Set nphy_txcal_pwr_idx[1] to 80
Call N PHY TX Power Index with arguments 3, 80, 0
- Set bbmult to 1
- If the current band is 2 GHz
Else if the PHY Revision > 5
- If the current band is 2 GHz
Call N PHY Calibrate TX Gain Control with arguments 12, 0
- Otherwise
Call N PHY Calibrate TX Gain Control with arguments 14, 0
- If the current band is 2 GHz
- If the PHY Revision is less than 5
- Otherwise
Call N PHY Calibrate TX Gain Control with arguments 10, 0
- If bbmult not zero
- Write 0x3C57 to PHY Register 0x73
Set nphy_txcal_bbmult to the contents of PHY Register 0x73