b43: N-PHY: fix code path on PHY init
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
76b002bd6d
commit
e7797bf2c0
@@ -3498,18 +3498,15 @@ int b43_phy_initn(struct b43_wldev *dev)
|
|||||||
/* TODO N PHY Pre Calibrate TX Gain */
|
/* TODO N PHY Pre Calibrate TX Gain */
|
||||||
target = b43_nphy_get_tx_gains(dev);
|
target = b43_nphy_get_tx_gains(dev);
|
||||||
}
|
}
|
||||||
}
|
if (!b43_nphy_cal_tx_iq_lo(dev, target, true, false))
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!b43_nphy_cal_tx_iq_lo(dev, target, true, false)) {
|
|
||||||
if (b43_nphy_cal_rx_iq(dev, target, 2, 0) == 0)
|
if (b43_nphy_cal_rx_iq(dev, target, 2, 0) == 0)
|
||||||
b43_nphy_save_cal(dev);
|
b43_nphy_save_cal(dev);
|
||||||
else if (nphy->mphase_cal_phase_id == 0)
|
} else if (nphy->mphase_cal_phase_id == 0)
|
||||||
;/* N PHY Periodic Calibration with argument 3 */
|
;/* N PHY Periodic Calibration with arg 3 */
|
||||||
} else {
|
} else {
|
||||||
b43_nphy_restore_cal(dev);
|
b43_nphy_restore_cal(dev);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
b43_nphy_tx_pwr_ctrl_coef_setup(dev);
|
b43_nphy_tx_pwr_ctrl_coef_setup(dev);
|
||||||
b43_nphy_tx_power_ctrl(dev, tx_pwr_state);
|
b43_nphy_tx_power_ctrl(dev, tx_pwr_state);
|
||||||
|
Reference in New Issue
Block a user