qcacld-3.0: Use correct hw mode switch reason

Currently the driver uses the reason code
POLICY_MGR_UPDATE_REASON_CHANNEL_SWITCH for
chanenl switch for P2P-CLI which is same
reason code used for hw mode change in case
of SAP, so after the hw mode is changed the
VDEV-SM does call the callback of SAP CSA
also.

Fix is to use a different reason code for
SAP CSA.

Change-Id: I16b0521d5a21391e642f29e86037f9eb4fd2af62
CRs-Fixed: 2663915
Šī revīzija ir iekļauta:
gaurank kathpalia
2020-04-17 12:14:32 +05:30
revīziju iesūtīja nshrivas
vecāks 670a0b4e58
revīzija 4d769c247d
5 mainīti faili ar 9 papildinājumiem un 7 dzēšanām

Parādīt failu

@@ -1401,7 +1401,7 @@ QDF_STATUS wlansap_set_channel_change_with_csa(struct sap_context *sap_ctx,
policy_mgr_check_and_set_hw_mode_for_channel_switch(
mac->psoc, sap_ctx->sessionId,
target_chan_freq,
POLICY_MGR_UPDATE_REASON_CHANNEL_SWITCH);
POLICY_MGR_UPDATE_REASON_CHANNEL_SWITCH_SAP);
/*
* If hw_mode_status is QDF_STATUS_E_FAILURE, mean HW