qcacmn: Add support to send csa_event_bitmap to FW

In the current implementation, csa_event_bitmap for CSA in the beacon
template WMI command is set to 0. Hence, the FW sends CSA complete event
to the host at the end of CSA complete.

Set the below values to csa_event_bitmap to get the current channel switch
count from FW to update the CSA/ECSA IE count in probe response frame.

1. WMI_CSA_EVENT_BMAP_ALL:
   To get the CSA switch count event for every update to switch count.
2. WMI_CSA_EVENT_BMAP_SWITCH_COUNT_ZERO:
   To get the CSA complete event only when the switch count becomes zero.
3. WMI_CSA_EVENT_BMAP_VALID_MASK:
   FW to follow the bitmap for sending the CSA switch count event to the
   host. Example,
   0X80000000: Send the CSA event when the switch count becomes zero.
   0X80000033: Send the CSA switch count to host for the count 0,1,4 and 5.

Change-Id: I8380d6badc3b84c72fde489e59b51b5ac122b97b
CRs-Fixed: 2978799
This commit is contained in:
Shashikala Prabhu
2021-06-18 09:42:31 +05:30
committed by Madan Koyyalamudi
parent e962074dd7
commit c33f73847d
2 changed files with 14 additions and 0 deletions

View File

@@ -2471,6 +2471,7 @@ static QDF_STATUS send_beacon_tmpl_send_cmd_tlv(wmi_unified_t wmi_handle,
cmd->mu_edca_ie_offset = param->mu_edca_ie_offset;
cmd->ema_params = param->ema_params;
cmd->buf_len = param->tmpl_len;
cmd->csa_event_bitmap = param->csa_event_bitmap;
WMI_BEACON_PROTECTION_EN_SET(cmd->feature_enable_bitmap,
param->enable_bigtk);