N PHY
Return, there's nothing to do
Non-N PHY Hardware Power Control Enabled
Write 0x3F to SHM offset 0x28
Write 0x10 to SHM offset 0x24
Write the Minimum TX Power left shifted by 4 to SHM offset 0x26
Write the current Hardware Power Control value to SHM offset 0x32
- If this is a G PHY
Loop over the ODFM Rates (7 values)
- Do Stuff
Set the Microcode Host Flag for Hardware Power Control (0x800000)
Non-N PHY Hardware Power Control Disabled
- Loop over the ODFM TX Power Offset values (loop 7 times)
If the value of this Offset is < -7
- Add 0xE to the value
- Otherwise
- Add 0x7 to the value
- Save the result AND'd with 0xF8 to the ODFM TX Power Offset value it corresponds with
Write the (first OFDM TX Power Offset value + 7) / 8 to SHM Offset 0x4E