qcacmn: Send re_ul_resp configuration through WMI resource config
Send configuration option to configure enable/disable of re_ul_resp..
Change-Id: I045e48bb1597c37805d792bdc34bcb34bcc0534c
diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h
index d2c000e..9859fbd 100644
--- a/wmi/inc/wmi_unified_param.h
+++ b/wmi/inc/wmi_unified_param.h
@@ -5162,6 +5162,7 @@
* @max_bssid_indicator: max number of MBSS VAPs
* @three_way_coex_config_legacy_en: enable three way coex legacy feature
* @max_num_group_keys: max number of group keys supported for VLAN
+ * @re_ul_resp: enable 11ax UL response feature (UL-OFDMA) for repeater
*/
typedef struct {
uint32_t num_vdevs;
@@ -5247,6 +5248,7 @@
bool tstamp64_en;
bool three_way_coex_config_legacy_en;
uint32_t max_num_group_keys;
+ uint32_t re_ul_resp;
} target_resource_config;
/**
diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c
index c73d4ff..e51e111 100644
--- a/wmi/src/wmi_unified_tlv.c
+++ b/wmi/src/wmi_unified_tlv.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -6750,6 +6750,10 @@
resource_cfg->peer_map_unmap_v2_support =
tgt_res_cfg->peer_map_unmap_v2;
resource_cfg->smart_ant_cap = tgt_res_cfg->smart_ant_cap;
+ if (tgt_res_cfg->re_ul_resp)
+ WMI_SET_BITS(resource_cfg->flags2, 0, 4,
+ tgt_res_cfg->re_ul_resp);
+
}
/* copy_hw_mode_id_in_init_cmd() - Helper routine to copy hw_mode in init cmd