qcacld-3.0: Update to change CSA count

Add variables and APIs in SAP and SME to change CSA count
for SAP / GO.
Currently the default CSA count is 10, this API allows
to reduce the CSA count if required as per the requirements

Change-Id: I17c101cd0c809f49d57d2aaf87fc37d90b92ea1f
CRs-Fixed: 3431384
Цей коміт міститься в:
Rachit Kankane
2023-02-03 20:03:22 +05:30
зафіксовано Madan Koyyalamudi
джерело 9d96541447
коміт e0b7095e74
6 змінених файлів з 35 додано та 1 видалено

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

@@ -1863,6 +1863,8 @@ typedef void (*policy_mgr_nss_update_cback)(struct wlan_objmgr_psoc *psoc,
* @sme_change_mcc_beacon_interval: Set MCC beacon interval to FW
* @sme_rso_start_cb: Enable roaming offload callback
* @sme_rso_stop_cb: Disable roaming offload callback
* @sme_change_sap_csa_count: Change CSA count for SAP/GO, only one
* time, needs to set again if used once.
*/
struct policy_mgr_sme_cbacks {
void (*sme_get_nss_for_vdev)(enum QDF_OPMODE,
@@ -1883,6 +1885,7 @@ struct policy_mgr_sme_cbacks {
QDF_STATUS (*sme_rso_stop_cb)(
mac_handle_t mac_handle, uint8_t vdev_id,
uint8_t reason, enum wlan_cm_rso_control_requestor requestor);
QDF_STATUS (*sme_change_sap_csa_count)(uint8_t count);
};
/**

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

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -738,6 +738,8 @@ QDF_STATUS policy_mgr_register_sme_cb(struct wlan_objmgr_psoc *psoc,
sme_cbacks->sme_rso_start_cb;
pm_ctx->sme_cbacks.sme_rso_stop_cb =
sme_cbacks->sme_rso_stop_cb;
pm_ctx->sme_cbacks.sme_change_sap_csa_count =
sme_cbacks->sme_change_sap_csa_count;
return QDF_STATUS_SUCCESS;
}