Changes between Version 6 and Version 7 of 802.11/app_notes/FDD-NoMAC
- Timestamp:
- Feb 15, 2017, 9:16:35 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
802.11/app_notes/FDD-NoMAC
v6 v7 87 87 wlan_phy_DSSS_rx_disable(); 88 88 89 89 if (wlan_verify_channel(mac_param_chan) == XST_SUCCESS) { 90 90 91 91 // Update the framework's global variables for channel/band 92 92 mac_param_chan = channel; 93 93 94 95 94 if(mac_param_chan <= 14) mac_param_band = RC_24GHZ; 95 else mac_param_band = RC_5GHZ; 96 96 97 97 // Adjust Tx baseband gain when switching to 5GHz channels; this adjustment makes 98 98 // the actual Tx power set via the Tx VGA more accurate 99 if(channel >= 36) radio_controller_setRadioParam(RC_BASEADDR, RC_RF_A, RC_PARAMID_TXGAIN_BB, 3);100 else radio_controller_setRadioParam(RC_BASEADDR, RC_RF_A, RC_PARAMID_TXGAIN_BB, 1);99 if(channel >= 36) radio_controller_setRadioParam(RC_BASEADDR, RC_RFA, RC_PARAMID_TXGAIN_BB, 3); 100 else radio_controller_setRadioParam(RC_BASEADDR, RC_RFA, RC_PARAMID_TXGAIN_BB, 1); 101 101 102 102 // Tune the RF A interface to the requested channel 103 radio_controller_setCenterFrequency(RC_BASEADDR, RC_RF_A, mac_param_band, wlan_mac_low_wlan_chan_to_rc_chan(mac_param_chan));103 radio_controller_setCenterFrequency(RC_BASEADDR, RC_RFA, mac_param_band, wlan_mac_low_wlan_chan_to_rc_chan(mac_param_chan)); 104 104 105 105 // Tune the RF B interface to channel 36 106 radio_controller_setRadioParam(RC_BASEADDR, RC_RF _B, RC_PARAMID_TXGAIN_BB, 3);107 radio_controller_setCenterFrequency(RC_BASEADDR, RC_RF _B, mac_param_band, wlan_mac_low_wlan_chan_to_rc_chan(36));108 109 110 106 radio_controller_setRadioParam(RC_BASEADDR, RC_RFB, RC_PARAMID_TXGAIN_BB, 3); 107 radio_controller_setCenterFrequency(RC_BASEADDR, RC_RFB, mac_param_band, wlan_mac_low_wlan_chan_to_rc_chan(36)); 108 } else { 109 xil_printf("Invalid channel selection %d\n", mac_param_chan); 110 } 111 111 } 112 112 }}}