N PHY TX Power Control Idle TSSI
- Create a 4-element s32 rssi buffer
If PHY Radar Chanspec for the current channel is not zero
- Exit
If (nphy_ipa2g_on and band is 2 GHz) or (nphy_ipa5g_on and band is 5 GHz)
If PHY Revision >= 7
Call N PHY RF Control Override Rev7 with 0x2000, 0, 3, 0, 0 as arguments
Else If Phy Revision >= 3
Call N PHY RF Control Override with 0x2000, 0, 3, 0 as arguments
Call N PHY Stop Playback
Call N PHY TX Tone with 0xFA0, 0, 0, 0 as arguments
- Delay for 20 usec
Call N PHY Poll RSSI with 4, rssi buffer, 1 as arguments and save returned value as tmp
Call N PHY Stop Playback
Call N PHY RSSI Select with 0, 0 as arguments
If PHY Revision >= 7
Call N PHY RF Control Override Rev7 with 0x2000, 0, 3, 1, 0 as arguments
Else If Phy Revision >= 3
Call N PHY RF Control Override with 0x2000, 0, 3, 1 as arguments
If Phy Revision >= 3
Set nphy_pwrctrl_info[0].idle_tssi_5g to (tmp >> 24) & 0xFF
Set nphy_pwrctrl_info[1].idle_tssi_5g to (tmp >> 8) & 0xFF
- Otherwise
Set nphy_pwrctrl_info[0].idle_tssi_5g to (tmp >> 16) & 0xFF
Set nphy_pwrctrl_info[1].idle_tssi_5g to tmp & 0xFF
Set nphy_pwrctrl_info[0].idle_tssi_2g to (tmp >> 24) & 0xFF
Set nphy_pwrctrl_info[1].idle_tssi_2g to (tmp >> 8) & 0xFF