Initialization
Perform a Revision 6 B PHY Init
- If gmode is set
- Set the loopback gain to 1
Perform an A PHY Init
Write 0 to PHY Register 0x814
Write 0 to PHY Register 0x815
If PHY Revision is 2
Write 0 to PHY Register 0x811
Write 0xC0 to PHY Register 0x15
If PHY Revision is >= 6
0x400 to PHY Register 0x811
Write 0xC0 to PHY Register 0x15
- If gmode is set
- Check the contained A PHY Revision (at PHY Register offset 0x400), and if it is 3
Write 0x1816 to PHY Register 0x4C2
Write 0x8606 to PHY Register 0x4C3
- If it is 5
Write 0x1816 to PHY Register 0x4C2
Write 0x8006 to PHY Register 0x4C3
MaskSet PHY Register 0x4CC with mask 0x00FF and set 0x1F00
- Check the contained A PHY Revision (at PHY Register offset 0x400), and if it is 3
If the PHY Revision is 2 and gmode is set
Write 0x78 to PHY Register 0x47E
If the Radio Revision is 8
Set bit 0x80 in PHY Register 0x801
Set bit 0x4 in PHY Register 0x43E
- If the loopback gain is not zero
Perform a Loopback Gain measurement
- If the Radio Revision is not 8
If 2050 Radio Initialization hasn't been run (calibration == 0xFFFF)
Perform a 2050 Radio Initialization now and save
- Otherwise
Write the previous result of the calibration to Radio Register 0x78
- If the saved Minimum TX Bias value hasn't been set yet
Measure the Local Oscillator for G PHYs
- If the hardware power control is not zero
- Perform the wlc_phy_cal_txpower_stats_clr(...) routine
- Otherwise
- If TX Magnification is enabled (this is a 2050 radio with a Radio Revision of 8)
- Take the saved value of the minimum TX Magnification Value and left shift it by 4
- OR the result with the Minimum TX Bias
Write the result to Radio Register 0x52
- Otherwise
Set the lower 4 bits of Radio Register 0x52 to the Minimum TX Magnification value
If the PHY Revision is 6 or greater
Write the Minimum TX bias to the uppermost 4 bits of PHY Register 0x36
- If the BFL_PACTRL board flag is set
Write 0x8075 to PHY Register 0x2E
- Otherwise
Write 0x807F to PHY Register 0x2E
Write 0x202 to PHY Register 0x2F
- If TX Magnification is enabled (this is a 2050 radio with a Radio Revision of 8)
- If gmode is set
Adjust the LO to the saved attenuation values
Write 0x8078 to PHY Register 0x80F
If BFL_RSSI is not set in the Board Flags
Update the NRSSI Table with the current NRSSI Table Delta
Set the NRSSI Threshold for G PHYs
- Otherwise,
- If the gmode is set, and the Minimum and Maximum RSSI values are zero
Determine the NRSSI Offset and NRSSI Slope
- Otherwise
Set the NRSSI Threshold for G PHYs
- If the gmode is set, and the Minimum and Maximum RSSI values are zero
- If the Radio Revision is 8
Write 0x3230 to PHY Register 0x805
Initialize Power Control
- If OFDM may not be used in the current locale or if the Chip ID is 0x4303
Bitwise AND PHY Register 0x429 with 0xBFFF
Bitwise AND PHY Register 0x4C3 with 0x7FFF