From 65161e36f3b7e95a8c185a6414b120c804abcaeb Mon Sep 17 00:00:00 2001 From: Jianmin Zhu Date: Wed, 15 Jun 2022 15:09:02 +0800 Subject: [PATCH] qcacmn: Allow eht in WMI_SCAN_CHAN_LIST_CMDID Set WMI_CHAN_FLAG_ALLOW_EHT in WMI_SCAN_CHAN_LIST_CMDID to FW. Change-Id: I45c413a9a732e3f6be090dca6559f594bd07eeaf CRs-Fixed: 3221023 --- wmi/inc/wmi_unified_param.h | 4 +++- wmi/src/wmi_unified_tlv.c | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index ecc6e167f1..1809188b8b 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -697,6 +697,7 @@ typedef enum { * @allow_he: HE allowed on chan * @psc_channel: 6 ghz preferred scan chan * @nan_disabled: is NAN disabled on @mhz + * @allow_eht: EHT allowed on chan * @phy_mode: phymode (vht80 or ht40 or ...) * @cfreq1: centre frequency on primary * @cfreq2: centre frequency on secondary @@ -722,7 +723,8 @@ struct channel_param { set_agile:1, allow_he:1, psc_channel:1, - nan_disabled:1; + nan_disabled:1, + allow_eht:1; uint32_t phy_mode; uint32_t cfreq1; uint32_t cfreq2; diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 47b20a4c34..813d8b897f 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -3773,6 +3773,10 @@ static QDF_STATUS send_scan_chan_list_cmd_tlv(wmi_unified_t wmi_handle, WMI_SET_CHANNEL_FLAG(chan_info, WMI_CHAN_FLAG_ALLOW_HE); + if (tchan_info->allow_eht) + WMI_SET_CHANNEL_FLAG(chan_info, + WMI_CHAN_FLAG_ALLOW_EHT); + if (tchan_info->allow_vht) WMI_SET_CHANNEL_FLAG(chan_info, WMI_CHAN_FLAG_ALLOW_VHT);