BAND_ON_5G
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G &&
} else if (rtlhal->current_bandtype == BAND_ON_5G) {
if (rtlhal->current_bandtype == BAND_ON_5G)
u8 is_5g = (rtlhal->current_bandtype == BAND_ON_5G);
case BAND_ON_5G:
u8 is_5g = (band_type == BAND_ON_5G);
if (rtlhal->current_bandtype == BAND_ON_5G) {
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G) {
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
} else if (rtlhal->current_bandtype == BAND_ON_5G) {
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
} else if (rtlhal->current_bandtype == BAND_ON_5G) {
if (delta_rxgain > 0 && rtlhal->current_bandtype == BAND_ON_5G &&
if (rtlpriv->rtlhal.current_bandtype != BAND_ON_5G) {
if (rtlpriv->rtlhal.current_bandtype != BAND_ON_5G) {
if (rtlpriv->rtlhal.current_bandtype != BAND_ON_5G)
case BAND_ON_5G:
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
rtlhal->bandset = BAND_ON_5G;
rtlhal->current_bandtype = BAND_ON_5G;
if (rtlhal->current_bandtype == BAND_ON_5G) {
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G)
rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G) {
BAND_ON_5G ? RF90_PATH_A :
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G) {/* Path-A for 5G */
BAND_ON_5G) {
rtl92d_phy_switch_wirelessband(hw, BAND_ON_5G);
case BAND_ON_5G:
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G) {
BAND_ON_5G ? RF90_PATH_A : RF90_PATH_B;
if (rtlhal->current_bandtype == BAND_ON_5G) {
} else if (rtlhal->current_bandtype == BAND_ON_5G &&
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G) {
rtlhal->current_bandtype != BAND_ON_5G)
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G)
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G) {
rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G) {
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G) {
u8 erfpath = rtlhal->current_bandtype == BAND_ON_5G ? RF90_PATH_A :
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G) {/* Path-A for 5G */
rtl92du_phy_switch_wirelessband(hw, BAND_ON_5G);
case BAND_ON_5G:
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G) {
} else if (rtlhal->interfaceindex == 1 && rtlhal->bandset == BAND_ON_5G) {
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G) {
u8 path = rtlhal->current_bandtype == BAND_ON_5G ? RF90_PATH_A
if (rtlhal->current_bandtype == BAND_ON_5G) {
} else if (rtlhal->current_bandtype == BAND_ON_5G &&
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
for (; band <= BAND_ON_5G; ++band)
if (band != BAND_ON_2_4G && band != BAND_ON_5G) {
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
if (rtlhal->current_bandtype == BAND_ON_5G)
for (band = BAND_ON_2_4G; band <= BAND_ON_5G; ++band)
if (band != BAND_ON_2_4G && band != BAND_ON_5G) {
if (rtlhal->current_bandtype == BAND_ON_5G)
} else if (band == BAND_ON_5G) {
rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_5G][path][RF_1TX][2] >> 24) & 0xFF;
_rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_5G, path, OFDM, RF_1TX, base);
rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_5G][path][RF_1TX][4] >> 24) & 0xFF;
_rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_5G, path, HT_MCS0_MCS7, RF_1TX, base);
rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_5G][path][RF_2TX][6] >> 24) & 0xFF;
_rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_5G, path, HT_MCS8_MCS15, RF_2TX, base);
rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_5G][path][RF_1TX][8] >> 24) & 0xFF;
_rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_5G, path, VHT_1SSMCS0_1SSMCS9, RF_1TX, base);
rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_5G][path][RF_2TX][11] >> 8) & 0xFF;
_rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_5G, path, VHT_2SSMCS0_2SSMCS9, RF_2TX, base);
} else if (band == BAND_ON_5G) {
BAND_ON_5G, MGN_54M);
BAND_ON_5G, MGN_MCS7);
BAND_ON_5G, MGN_MCS15);
BAND_ON_5G, MGN_VHT1SS_MCS7);
BAND_ON_5G, MGN_VHT2SS_MCS7);
base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_5G, rfpath, RF_1TX, OFDM);
&rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][1],
&rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][2],
base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_5G, rfpath, RF_1TX, HT_MCS0_MCS7);
&rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][3],
&rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][4],
base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_5G, rfpath, RF_2TX, HT_MCS8_MCS15);
&rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_2TX][5],
&rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_2TX][6],
base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_5G, rfpath, RF_1TX, VHT_1SSMCS0_1SSMCS9);
&rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][7],
&rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][8],
&rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][9],
base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_5G, rfpath, RF_2TX, VHT_2SSMCS0_2SSMCS9);
&rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][9],
&rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_2TX][10],
&rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_2TX][11],
else if (band == BAND_ON_5G) {
BAND_ON_5G,
if (band != BAND_ON_2_4G && band != BAND_ON_5G) {
else if (band == BAND_ON_5G)
if (band_temp == BAND_ON_5G && rate_section == 0)
if ((rate_section == 2 || rate_section == 3) && band == BAND_ON_5G &&
else if (band == BAND_ON_5G)
BAND_ON_5G, channel);
} else if (band == BAND_ON_5G) {
((rtlhal->current_bandtype == BAND_ON_5G) && (channel <= 14))) {
if (rtlphy->current_channel > 14 && rtlhal->current_bandtype != BAND_ON_5G)
rtl8821ae_phy_switch_wirelessband(hw, BAND_ON_5G);
} else if (band == BAND_ON_5G) {
for (band = BAND_ON_2_4G; band <= BAND_ON_5G; ++band)
} else if (band == BAND_ON_5G) {