|
@@ -1206,6 +1206,7 @@ QDF_STATUS sme_start(mac_handle_t mac_handle)
|
|
|
sme_change_mcc_beacon_interval;
|
|
|
sme_cbacks.sme_rso_start_cb = sme_start_roaming;
|
|
|
sme_cbacks.sme_rso_stop_cb = sme_stop_roaming;
|
|
|
+ sme_cbacks.sme_change_sap_csa_count = sme_change_sap_csa_count;
|
|
|
status = policy_mgr_register_sme_cb(mac->psoc, &sme_cbacks);
|
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
|
sme_err("Failed to register sme cb with Policy Manager: %d",
|
|
@@ -4982,6 +4983,19 @@ QDF_STATUS sme_change_mcc_beacon_interval(uint8_t sessionId)
|
|
|
return status;
|
|
|
}
|
|
|
|
|
|
+QDF_STATUS sme_change_sap_csa_count(uint8_t count)
|
|
|
+{
|
|
|
+ struct mac_context *mac_ctx = sme_get_mac_context();
|
|
|
+
|
|
|
+ if (!mac_ctx) {
|
|
|
+ sme_err("mac_ctx is NULL");
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+ }
|
|
|
+ mac_ctx->sap.one_time_csa_count = count;
|
|
|
+
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* sme_set_host_offload(): API to set the host offload feature.
|
|
|
* @mac_handle: The handle returned by mac_open.
|