qcacld-3.0: Reset cac state before precac sap start

Host creates a precac adapter and uses it for all the precac
request instances from userspace. To avoid cac state impact
of previous instance on current precac request, reset the
cac_state before starting a prepcac adapter.

Change-Id: I8bb7a2d10350eeeafaac9bea60947a52a1e8686e
CRs-Fixed: 2970505
Bu işleme şunda yer alıyor:
Abhishek Ambure
2021-06-21 19:42:18 +05:30
işlemeyi yapan: Madan Koyyalamudi
ebeveyn 21fe332f5b
işleme 1d037f5650
3 değiştirilmiş dosya ile 16 ekleme ve 2 silme

Dosyayı Görüntüle

@@ -283,6 +283,9 @@ static int __wlan_hdd_request_pre_cac(struct hdd_context *hdd_ctx,
}
}
sap_clear_global_dfs_param(mac_handle,
WLAN_HDD_GET_SAP_CTX_PTR(pre_cac_adapter));
/*
* This interface is internally created by the driver. So, no interface
* up comes for this interface from user space and hence starting

Dosyayı Görüntüle

@@ -1473,6 +1473,17 @@ void sap_get_cac_dur_dfs_region(struct sap_context *sap_ctx,
uint32_t *cac_duration_ms,
uint32_t *dfs_region);
/**
* sap_clear_global_dfs_param() - Reset global dfs param of sap ctx
* @mac_handle: pointer to mac handle
* @sap_ctx: sap context
*
* This API resets global dfs param of sap ctx.
*
* Return: QDF_STATUS
*/
QDF_STATUS sap_clear_global_dfs_param(mac_handle_t mac_handle,
struct sap_context *sap_ctx);
/**
* sap_dfs_set_current_channel() - Set current channel params in dfs component

Dosyayı Görüntüle

@@ -1111,8 +1111,8 @@ sap_find_valid_concurrent_session(mac_handle_t mac_handle)
return NULL;
}
static QDF_STATUS sap_clear_global_dfs_param(mac_handle_t mac_handle,
struct sap_context *sap_ctx)
QDF_STATUS sap_clear_global_dfs_param(mac_handle_t mac_handle,
struct sap_context *sap_ctx)
{
struct mac_context *mac_ctx = MAC_CONTEXT(mac_handle);
struct sap_context *con_sap_ctx;