Browse Source

qcacld-3.0: Set max group key only when firmware supports multipass

In api wma_rx_service_ready_ext2_event(),Set max group key
to firmware only if supports multipass sap.

Change-Id: I58ba5c53e81209e9a95878dca9bc5a5668b0edb0
CRs-Fixed: 3521352
Arun Kumar Khandavalli 1 year ago
parent
commit
6cc83bab0a
1 changed files with 9 additions and 0 deletions
  1. 9 0
      core/wma/src/wma_main.c

+ 9 - 0
core/wma/src/wma_main.c

@@ -7244,10 +7244,13 @@ static void wma_update_hw_mode_config(tp_wma_handle wma_handle,
 				     fw_config_bits);
 }
 
+#define MAX_GRP_KEY 16
+
 int wma_rx_service_ready_ext2_event(void *handle, uint8_t *ev, uint32_t len)
 {
 	tp_wma_handle wma_handle = (tp_wma_handle)handle;
 	struct target_psoc_info *tgt_hdl;
+	target_resource_config *wlan_res_cfg;
 	QDF_STATUS status;
 
 	wma_debug("Enter");
@@ -7260,6 +7263,12 @@ int wma_rx_service_ready_ext2_event(void *handle, uint8_t *ev, uint32_t len)
 		wma_err("target psoc info is NULL");
 		return -EINVAL;
 	}
+
+	wlan_res_cfg = target_psoc_get_wlan_res_cfg(tgt_hdl);
+
+	if (wlan_mlme_is_multipass_sap(wma_handle->psoc))
+		wlan_res_cfg->max_num_group_keys = MAX_GRP_KEY;
+
 	status = policy_mgr_update_sbs_freq(wma_handle->psoc, tgt_hdl);
 	if (QDF_IS_STATUS_ERROR(status))
 		return -EINVAL;