PHY Set Channel Spec for LP PHY(u16 chanspec)
- Bitwise mask chanspec with 0xFF to get channel
- Set a variable cur_channel to 0
- Write the chanspec to the private variable radio_chanspec
- If radio is a 0x2063
Tune 2063 Radio to the channel
- Otherwise
Tune 2062 Radio to the channel
Convert the channel number to frequency (MHz) and use as argument to LP PHY Adjust Gain Tables
- Save the channel in cur_channel and in the private variable radio_code
- If the channel is for 5 GHz
- Bitwise OR cur_channel with 0x0100
- Write cur_channel to Shared Memory address 0xA0
Call PHY Channel Register with channel as the argument
- Set the private variable phy_forcecal to TRUE to force a calibration