Browse Source

qcacmn: Add host WMI support for EAPOL minrate resource config

Add host WMI support for EAPOL minrate resource configuration.

Through the use of the global.ini configuration parameter -
eapol_minrate_set and eapol_minrate_ac_set, the user can set EAPOL
frames to be sent in minimum rate in tunnel mode. In addition to
this, the user can also select between the 4 ACs (BE, BK, VI, VO)
to send the EAPOL frames.

The changes are reflected in the target resource config which
is sent to the firmware.

Change-Id: Ib9a264b64305bf43708c3c2af3ff254b6cc28477
CRs-Fixed: 2298020
Aditya Sathish 6 years ago
parent
commit
800c73704f
1 changed files with 11 additions and 0 deletions
  1. 11 0
      wmi_unified_tlv.c

+ 11 - 0
wmi_unified_tlv.c

@@ -11118,6 +11118,17 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
 			resource_cfg->flag1, 1);
 	if (tgt_res_cfg->cce_disable)
 		WMI_RSRC_CFG_FLAG_TCL_CCE_DISABLE_SET(resource_cfg->flag1, 1);
+	if (tgt_res_cfg->eapol_minrate_set) {
+		WMI_RSRC_CFG_FLAG_EAPOL_REKEY_MINRATE_SUPPORT_ENABLE_SET(
+			resource_cfg->flag1, 1);
+		if (tgt_res_cfg->eapol_minrate_ac_set != 3) {
+			WMI_RSRC_CFG_FLAG_EAPOL_AC_OVERRIDE_VALID_SET(
+				resource_cfg->flag1, 1);
+			WMI_RSRC_CFG_FLAG_EAPOL_AC_OVERRIDE_SET(
+				resource_cfg->flag1,
+				tgt_res_cfg->eapol_minrate_ac_set);
+		}
+	}
 
 	wmi_copy_twt_resource_config(resource_cfg, tgt_res_cfg);
 	resource_cfg->peer_map_unmap_v2_support =