Merge git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers.git
To fix a conflict reported by Stephen Rothwell <sfr@canb.auug.org.au>: Today's linux-next merge of the wireless-drivers-next tree got a conflict in: drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c between commit:77e30e10ee
("iwlwifi: mvm: query regdb for wmm rule if needed") from the wireless-drivers tree and commits:9c4f7d5127
("iwlwifi: move all NVM parsing code to the common files")4c625c564b
("iwlwifi: get rid of fw/nvm.c") from the wireless-drivers-next tree.
This commit is contained in:
@@ -158,16 +158,6 @@ static u8 halbtc_get_wifi_central_chnl(struct btc_coexist *btcoexist)
|
||||
|
||||
static u8 rtl_get_hwpg_single_ant_path(struct rtl_priv *rtlpriv)
|
||||
{
|
||||
struct rtl_mod_params *mod_params = rtlpriv->cfg->mod_params;
|
||||
|
||||
/* override ant_num / ant_path */
|
||||
if (mod_params->ant_sel) {
|
||||
rtlpriv->btcoexist.btc_info.ant_num =
|
||||
(mod_params->ant_sel == 1 ? ANT_X2 : ANT_X1);
|
||||
|
||||
rtlpriv->btcoexist.btc_info.single_ant_path =
|
||||
(mod_params->ant_sel == 1 ? 0 : 1);
|
||||
}
|
||||
return rtlpriv->btcoexist.btc_info.single_ant_path;
|
||||
}
|
||||
|
||||
@@ -178,7 +168,6 @@ static u8 rtl_get_hwpg_bt_type(struct rtl_priv *rtlpriv)
|
||||
|
||||
static u8 rtl_get_hwpg_ant_num(struct rtl_priv *rtlpriv)
|
||||
{
|
||||
struct rtl_mod_params *mod_params = rtlpriv->cfg->mod_params;
|
||||
u8 num;
|
||||
|
||||
if (rtlpriv->btcoexist.btc_info.ant_num == ANT_X2)
|
||||
@@ -186,10 +175,6 @@ static u8 rtl_get_hwpg_ant_num(struct rtl_priv *rtlpriv)
|
||||
else
|
||||
num = 1;
|
||||
|
||||
/* override ant_num / ant_path */
|
||||
if (mod_params->ant_sel)
|
||||
num = (mod_params->ant_sel == 1 ? ANT_X2 : ANT_X1) + 1;
|
||||
|
||||
return num;
|
||||
}
|
||||
|
||||
|
@@ -848,6 +848,9 @@ static bool _rtl8723be_init_mac(struct ieee80211_hw *hw)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (rtlpriv->cfg->ops->get_btc_status())
|
||||
rtlpriv->btcoexist.btc_ops->btc_power_on_setting(rtlpriv);
|
||||
|
||||
bytetmp = rtl_read_byte(rtlpriv, REG_MULTI_FUNC_CTRL);
|
||||
rtl_write_byte(rtlpriv, REG_MULTI_FUNC_CTRL, bytetmp | BIT(3));
|
||||
|
||||
@@ -2696,21 +2699,21 @@ void rtl8723be_read_bt_coexist_info_from_hwpg(struct ieee80211_hw *hw,
|
||||
rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8723B;
|
||||
rtlpriv->btcoexist.btc_info.ant_num = (value & 0x1);
|
||||
rtlpriv->btcoexist.btc_info.single_ant_path =
|
||||
(value & 0x40); /*0xc3[6]*/
|
||||
(value & 0x40 ? ANT_AUX : ANT_MAIN); /*0xc3[6]*/
|
||||
} else {
|
||||
rtlpriv->btcoexist.btc_info.btcoexist = 0;
|
||||
rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8723B;
|
||||
rtlpriv->btcoexist.btc_info.ant_num = ANT_X2;
|
||||
rtlpriv->btcoexist.btc_info.single_ant_path = 0;
|
||||
rtlpriv->btcoexist.btc_info.single_ant_path = ANT_MAIN;
|
||||
}
|
||||
|
||||
/* override ant_num / ant_path */
|
||||
if (mod_params->ant_sel) {
|
||||
rtlpriv->btcoexist.btc_info.ant_num =
|
||||
(mod_params->ant_sel == 1 ? ANT_X2 : ANT_X1);
|
||||
(mod_params->ant_sel == 1 ? ANT_X1 : ANT_X2);
|
||||
|
||||
rtlpriv->btcoexist.btc_info.single_ant_path =
|
||||
(mod_params->ant_sel == 1 ? 0 : 1);
|
||||
(mod_params->ant_sel == 1 ? ANT_AUX : ANT_MAIN);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -2823,6 +2823,11 @@ enum bt_ant_num {
|
||||
ANT_X1 = 1,
|
||||
};
|
||||
|
||||
enum bt_ant_path {
|
||||
ANT_MAIN = 0,
|
||||
ANT_AUX = 1,
|
||||
};
|
||||
|
||||
enum bt_co_type {
|
||||
BT_2WIRE = 0,
|
||||
BT_ISSC_3WIRE = 1,
|
||||
|
Reference in New Issue
Block a user