N PHY Adjust CRS Min Power (u8 power)
If PHY Revision >= 3
- If the current channel is 11 and the current channel width is 40 MHz
If pi->nphy_crsminpwr_adjusted is zero
- Read PHY Register 0x27D and save as tmp
Write tmp & 0xFF to nphy_crsminpwr[0]
Write tmp & 0xFF00 | power to PHY Register 0x27D
- Read PHY Register 0x280 and save as tmp
Write tmp & 0xFF to nphy_crsminpwr[1]
Write tmp & 0xFF00 | power to PHY Register 0x280
- Read PHY Register 0x283 and save as tmp
Write tmp & 0xFF to nphy_crsminpwr[2]
Write tmp & 0xFF00 | power to PHY Register 0x283
Set nphy_crsminpwr_adjusted to 1
- Otherwise
If pi->nphy_crsminpwr_adjusted is not zero
- Read PHY Register 0x27D and save as tmp
Write tmp & 0xFF00 | nphy_crsminpwr[0] to PHY Register 0x27D
- Read PHY Register 0x280 and save as tmp
Write tmp & 0xFF00 | nphy_crsminpwr[1] to PHY Register 0x280
- Read PHY Register 0x283 and save as tmp
Write tmp & 0xFF00 | nphy_crsminpwr[2] to PHY Register 0x283
Set nphy_crsminpwr_adjusted to 0
- If the current channel is 11 and the current channel width is 40 MHz