N PHY TX Power Limit to Table
- Loop for i values of 0, 1, 2, and 3
Set adj_pwr_tbl_nphy[i] to tx_power_offset[i]
- Loop for i with values 0, 1, 2, and 3
- Set delta and idx2 to 0
- If i is 0
If the channel is 40 MHz AND PHY Revision >= 5
- Set idx to 68
- Otherwise
- Set delta to 1
- If the channel is 40 MHz
- Set idx to 52
- Otherwise
- Set idx to 4
- Else if i is 1
- If the channel is 40 MHz
- Set idx to 76
- Otherwise
- Set idx to 28
- If the channel is 40 MHz
- Else if i is 2
- If the channel is 40 MHz
- Set idx to 84
- Otherwise
- Set idx to 36
- If the channel is 40 MHz
- Else if i is 3
- If the channel is 40 MHz
- Set idx to 92
- Otherwise
- Set idx to 44
- If the channel is 40 MHz
- Loop from 0 to 19 (inclusive) with j as index
Set adj_pwr_tbl_nphy[4 + 4 * idx2 + i] to tx_power_offset[idx]
- Increment idx2
- If j is 0
- Set idx to idx + delta
- If j is 14
- Set idx to idx + 1 - delta
- If j is 3, 4, 7, 8, 11, or 13
- Increment idx