BAND_ON_2_4G
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
case BAND_ON_2_4G:
if (rtlhal->current_bandtype == BAND_ON_2_4G)
if (rtlhal->current_bandtype == BAND_ON_2_4G)
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_2_4G)
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_2_4G)
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_2_4G)
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
rtlpriv->rtlhal.current_bandtype == BAND_ON_2_4G &&
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G;
rtlpriv->rtlhal.bandset = BAND_ON_2_4G;
rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G;
rtlpriv->rtlhal.bandset = BAND_ON_2_4G;
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
case BAND_ON_2_4G:
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_2_4G)
if (rtlpriv->rtlhal.current_bandtype == BAND_ON_2_4G)
rtlhal->current_bandtype = BAND_ON_2_4G;
rtlhal->current_bandtype = BAND_ON_2_4G;
rtlhal->bandset = BAND_ON_2_4G;
rtlhal->current_bandtype = BAND_ON_2_4G;
if (rtlhal->current_bandtype == BAND_ON_2_4G)
} else if (rtlhal->current_bandtype == BAND_ON_2_4G) {
} else if (rtlpriv->rtlhal.current_bandtype == BAND_ON_2_4G) {
rtl92d_phy_switch_wirelessband(hw, BAND_ON_2_4G);
case BAND_ON_2_4G:
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G)
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
} else if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G &&
if (rtlhal->current_bandtype == BAND_ON_2_4G)
if (rtlhal->current_bandtype == BAND_ON_2_4G)
} else if (rtlhal->current_bandtype == BAND_ON_2_4G) {
} else if (rtlpriv->rtlhal.current_bandtype == BAND_ON_2_4G) {
rtl92du_phy_switch_wirelessband(hw, BAND_ON_2_4G);
case BAND_ON_2_4G:
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->interfaceindex == 0 && rtlhal->bandset == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G)
if (rtlhal->current_bandtype == BAND_ON_2_4G)
if (rtlhal->current_bandtype == BAND_ON_2_4G)
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
} else if (rtlhal->current_bandtype == BAND_ON_2_4G) {
if (rtlhal->current_bandtype == BAND_ON_2_4G &&
diff = _rtl92ee_get_txpower_by_rate(hw, BAND_ON_2_4G,
if (rtlhal->current_bandtype == BAND_ON_2_4G)
u8 band = BAND_ON_2_4G, rf = 0, txnum = 0, sec = 0;
if (band == BAND_ON_2_4G) {
if (band == BAND_ON_2_4G) {
[BAND_ON_2_4G][path][RF_1TX][3] >> 24) &
_rtl92ee_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G,
[BAND_ON_2_4G][path][RF_1TX][3] >> 0) &
_rtl92ee_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G,
[BAND_ON_2_4G][path][RF_1TX][1] >> 24) & 0xFF;
_rtl92ee_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path,
[BAND_ON_2_4G][path][RF_1TX][5] >> 24) & 0xFF;
_rtl92ee_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path,
[BAND_ON_2_4G][path][RF_2TX][7] >> 24) & 0xFF;
_rtl92ee_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path,
u8 base = 0, rf = 0, band = BAND_ON_2_4G;
if (band != BAND_ON_2_4G && band != BAND_ON_5G) {
rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G;
rtlpriv->rtlhal.bandset = BAND_ON_2_4G;
rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G;
rtlpriv->rtlhal.bandset = BAND_ON_2_4G;
rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G;
rtlpriv->rtlhal.bandset = BAND_ON_2_4G;
for (band = BAND_ON_2_4G; band <= BAND_ON_5G; ++band)
if (band == BAND_ON_2_4G) {
if (band == BAND_ON_2_4G) {
[BAND_ON_2_4G][path][RF_1TX][3] >> 24) & 0xFF;
BAND_ON_2_4G, path, CCK, RF_1TX, base);
[BAND_ON_2_4G][path][RF_1TX][3] >> 0) & 0xFF;
BAND_ON_2_4G,
[BAND_ON_2_4G][path][RF_1TX][1] >> 24) & 0xFF;
_rtl8723be_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G,
[BAND_ON_2_4G][path][RF_1TX][5] >> 24) & 0xFF;
_rtl8723be_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G,
[BAND_ON_2_4G][path][RF_2TX][7] >> 24) & 0xFF;
_rtl8723be_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G,
BAND_ON_2_4G, rfpath, RF_1TX, CCK);
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][2],
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][3],
base = _rtl8723be_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G, rfpath,
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][0],
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][1],
base = _rtl8723be_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G,
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][4],
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][5],
base = _rtl8723be_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G,
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][6],
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][7],
if (band != BAND_ON_2_4G && band != BAND_ON_5G) {
BAND_ON_2_4G,
rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G;
rtlpriv->rtlhal.bandset = BAND_ON_2_4G;
rtl8821ae_phy_switch_wirelessband(hw, BAND_ON_2_4G);
rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][path][RF_1TX][0] >> 24) & 0xFF;
_rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, CCK, RF_1TX, base);
rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][path][RF_1TX][2] >> 24) & 0xFF;
_rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, OFDM, RF_1TX, base);
rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][path][RF_1TX][4] >> 24) & 0xFF;
_rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, HT_MCS0_MCS7, RF_1TX, base);
rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][path][RF_2TX][6] >> 24) & 0xFF;
_rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, HT_MCS8_MCS15, RF_2TX, base);
rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][path][RF_1TX][8] >> 24) & 0xFF;
_rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, VHT_1SSMCS0_1SSMCS9, RF_1TX, base);
rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][path][RF_2TX][11] >> 8) & 0xFF;
_rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, VHT_2SSMCS0_2SSMCS9, RF_2TX, base);
if (band == BAND_ON_2_4G) {
BAND_ON_2_4G, MGN_11M);
BAND_ON_2_4G, MGN_54M);
BAND_ON_2_4G, MGN_MCS7);
BAND_ON_2_4G, MGN_MCS15);
base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G, rfpath, RF_1TX, CCK);
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][0],
base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G, rfpath, RF_1TX, OFDM);
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][1],
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][2],
base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G, rfpath, RF_1TX, HT_MCS0_MCS7);
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][3],
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][4],
base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G, rfpath, RF_2TX, HT_MCS8_MCS15);
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][5],
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][6],
base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G, rfpath, RF_1TX, VHT_1SSMCS0_1SSMCS9);
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][7],
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][8],
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][9],
base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G, rfpath, RF_2TX, VHT_2SSMCS0_2SSMCS9);
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][9],
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][10],
&rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][11],
if (band == BAND_ON_2_4G)
BAND_ON_2_4G,
if (band != BAND_ON_2_4G && band != BAND_ON_5G) {
band = BAND_ON_2_4G;
if (band == BAND_ON_2_4G)
if (band == BAND_ON_2_4G)
BAND_ON_2_4G, channel);
if (band == BAND_ON_2_4G) {
if (((rtlhal->current_bandtype == BAND_ON_2_4G) &&
if (rtlhal->current_bandtype == BAND_ON_2_4G)
else if (rtlphy->current_channel <= 14 && rtlhal->current_bandtype != BAND_ON_2_4G)
rtl8821ae_phy_switch_wirelessband(hw, BAND_ON_2_4G);
if (band == BAND_ON_2_4G) {
if (band == BAND_ON_2_4G) {
if (band == BAND_ON_2_4G)
if (band == BAND_ON_2_4G)
if (band == BAND_ON_2_4G)
if (band == BAND_ON_2_4G)
if (band == BAND_ON_2_4G)
if (band == BAND_ON_2_4G)
if (band == BAND_ON_2_4G)
if (band == BAND_ON_2_4G)
if (rtlhal->current_bandtype == BAND_ON_2_4G) {
bb_diff_between_band = (band == BAND_ON_2_4G) ?
for (band = BAND_ON_2_4G; band <= BAND_ON_5G; ++band)
if (band == BAND_ON_2_4G) {
if (band == BAND_ON_2_4G) {
rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G;