qcacld-3.0: Retain WTC mode value after vdev delete

After mac randomization, the change interface causes
the WTC mode to be reset as part of the hdd_init_station_mode()

Initialize the WTC mode during start modules as part
of the mlme component cfg values population.

Change-Id: I4a57c29053f0100c14cef067952d49cecbdc8ea5
CRs-Fixed: 3047594
Цей коміт міститься в:
Pragaspathi Thilagaraj
2021-09-30 21:58:28 +05:30
зафіксовано Madan Koyyalamudi
джерело b1db874999
коміт 330a20ccff
5 змінених файлів з 4 додано та 32 видалено

Переглянути файл

@@ -1589,6 +1589,7 @@ static void mlme_init_roam_offload_cfg(struct wlan_objmgr_psoc *psoc,
lfr->idle_roam_min_rssi = cfg_get(psoc, CFG_LFR_IDLE_ROAM_MIN_RSSI);
lfr->roam_trigger_bitmap =
cfg_get(psoc, CFG_ROAM_TRIGGER_BITMAP);
lfr->vendor_btm_param.user_roam_reason = DISABLE_VENDOR_BTM_CONFIG;
lfr->idle_roam_band = cfg_get(psoc, CFG_LFR_IDLE_ROAM_BAND);
lfr->sta_roam_disable = cfg_get(psoc, CFG_STA_DISABLE_ROAM);

Переглянути файл

@@ -28,9 +28,6 @@
#include "wlan_mlme_main.h"
#include "wlan_mlme_api.h"
/* Default value of reason code */
#define DISABLE_VENDOR_BTM_CONFIG 2
#if defined(WLAN_FEATURE_HOST_ROAM) || defined(WLAN_FEATURE_ROAM_OFFLOAD)
/**
* wlan_cm_enable_roaming_on_connected_sta() - Enable roaming on other connected
@@ -848,15 +845,6 @@ void
wlan_cm_roam_set_vendor_btm_params(struct wlan_objmgr_psoc *psoc,
struct wlan_cm_roam_vendor_btm_params
*param);
/**
* wlan_cm_roam_disable_vendor_btm() - API to disable vendor btm by default
* reason
* @psoc: PSOC pointer
*
* Return: none
*/
void wlan_cm_roam_disable_vendor_btm(struct wlan_objmgr_psoc *psoc);
/**
* wlan_cm_roam_get_vendor_btm_params() - API to get vendor btm param
* @psoc: PSOC pointer
@@ -1151,11 +1139,6 @@ wlan_cm_roam_set_vendor_btm_params(struct wlan_objmgr_psoc *psoc,
struct wlan_cm_roam_vendor_btm_params *param)
{}
static inline void
wlan_cm_roam_get_vendor_btm_params(struct wlan_objmgr_psoc *psoc,
struct wlan_cm_roam_vendor_btm_params *param)
{}
static inline void
wlan_cm_roam_get_score_delta_params(struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id,

Переглянути файл

@@ -109,6 +109,9 @@
#define MAX_BSSID_FAVORED 16
#define WLAN_MAX_BTM_CANDIDATES 8
/* Default value of WTC reason code */
#define DISABLE_VENDOR_BTM_CONFIG 2
#ifdef WLAN_FEATURE_HOST_ROAM
#define MAX_FTIE_SIZE CM_MAX_FTIE_SIZE
#else

Переглянути файл

@@ -586,20 +586,6 @@ wlan_cm_dual_sta_roam_update_connect_channels(struct wlan_objmgr_psoc *psoc,
qdf_mem_free(chan_buff);
}
void
wlan_cm_roam_disable_vendor_btm(struct wlan_objmgr_psoc *psoc)
{
struct wlan_mlme_psoc_ext_obj *mlme_obj;
mlme_obj = mlme_get_psoc_ext_obj(psoc);
if (!mlme_obj)
return;
/* Set default value of reason code */
mlme_obj->cfg.lfr.vendor_btm_param.user_roam_reason =
DISABLE_VENDOR_BTM_CONFIG;
}
void
wlan_cm_roam_set_vendor_btm_params(struct wlan_objmgr_psoc *psoc,
struct wlan_cm_roam_vendor_btm_params *param)

Переглянути файл

@@ -6144,7 +6144,6 @@ QDF_STATUS hdd_init_station_mode(struct hdd_adapter *adapter)
roam_triggers = ucfg_mlme_get_roaming_triggers(hdd_ctx->psoc);
mlme_set_roam_trigger_bitmap(hdd_ctx->psoc, adapter->vdev_id,
roam_triggers);
wlan_cm_roam_disable_vendor_btm(hdd_ctx->psoc);
ucfg_mlme_get_fine_time_meas_cap(hdd_ctx->psoc,
&fine_time_meas_cap);
sme_cli_set_command(