N PHY Estimate Tone Power (int *buffer, u8 samps)
- Establish 2-element int arrays idle, value, and index
- Establish a 4-element int array rssi
- Set idle[0] and idle[1] to -64
- If the current band is 2G
- Set type to 4
- Otherwise
- Set type to 5
Call N PHY Poll RSSI with type, rssi, samps as arguments
- Set value[0] to rssi[0] / samps
- Set value[1] to rssi[1] / samps
- Set index[0] to idle[0] - value[0] + 64
- Set index[1] to idle[1] - value[1] + 64
- Read the N PHY Table with ID 26, length 1, offset index[0], width 32, and data buffer[0]
- Read the N PHY Table with ID 27, length 1, offset index[1], width 32, and data buffer[1]