qcacld-3.0: Cleanup usage of csr_roam_profile in SAP module

Remove the usage of csrPersona from csr_roam_profile
and the unused wlan_sap_get_roam_profile function.

Change-Id: Ic7621c5e178a141b7e6e9d820d71fadfbff071ed
CRs-Fixed: 2998988
这个提交包含在:
Surya Prakash Sivaraj
2021-07-23 21:14:11 +05:30
提交者 Madan Koyyalamudi
父节点 31992e3438
当前提交 6fb7b93c61
修改 3 个文件,包含 2 行新增29 行删除

查看文件

@@ -1239,16 +1239,6 @@ QDF_STATUS wlansap_set_dfs_preferred_channel_location(mac_handle_t mac_handle);
QDF_STATUS wlansap_set_dfs_target_chnl(mac_handle_t mac_handle,
uint32_t target_chan_freq);
/**
* wlan_sap_get_roam_profile() - Returns sap roam profile.
* @sap_ctx: Pointer to Sap Context.
*
* This function provides the SAP roam profile.
*
* Return: SAP RoamProfile
*/
struct csr_roam_profile *wlan_sap_get_roam_profile(struct sap_context *sap_ctx);
/**
* wlan_sap_get_phymode() - Returns sap phymode.
* @sap_ctx: Pointer to Sap Context.

查看文件

@@ -1190,7 +1190,7 @@ QDF_STATUS sap_set_session_param(mac_handle_t mac_handle,
mac_ctx->sap.sapCtxList[sapctx->sessionId].sap_context = sapctx;
mac_ctx->sap.sapCtxList[sapctx->sessionId].sapPersona =
sapctx->csr_roamProfile.csrPersona;
wlan_get_opmode_vdev_id(mac_ctx->pdev, session_id);
sap_debug("Initializing sap_ctx = %pK with session = %d",
sapctx, session_id);

查看文件

@@ -546,23 +546,6 @@ wlansap_set_scan_acs_channel_params(struct sap_config *config,
return status;
}
/**
* wlan_sap_get_roam_profile() - Returns sap roam profile.
* @sap_ctx: Pointer to Sap Context.
*
* This function provides the SAP roam profile.
*
* Return: SAP RoamProfile
*/
struct csr_roam_profile *wlan_sap_get_roam_profile(struct sap_context *sap_ctx)
{
if (!sap_ctx) {
sap_err("Invalid SAP pointer from ctx");
return NULL;
}
return &sap_ctx->csr_roamProfile;
}
eCsrPhyMode wlan_sap_get_phymode(struct sap_context *sap_ctx)
{
if (!sap_ctx) {
@@ -800,7 +783,7 @@ QDF_STATUS wlansap_start_bss(struct sap_context *sap_ctx,
pmac->sap.SapDfsInfo.sap_ch_switch_mode = sap_chanswitch_mode;
pmac->sap.sapCtxList[sap_ctx->sessionId].sap_context = sap_ctx;
pmac->sap.sapCtxList[sap_ctx->sessionId].sapPersona =
sap_ctx->csr_roamProfile.csrPersona;
config->persona;
qdf_status = ucfg_mlme_get_sap_reduces_beacon_interval(
pmac->psoc,