diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 706a01c77a33..86069f166326 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -641,6 +641,7 @@ typedef enum { * @set_agile: is agile mode * @allow_he: HE allowed on chan * @psc_channel: 6 ghz preferred scan chan + * @nan_disabled: is NAN disabled on @mhz * @phy_mode: phymode (vht80 or ht40 or ...) * @cfreq1: centre frequency on primary * @cfreq2: centre frequency on secondary @@ -665,7 +666,8 @@ struct channel_param { allow_vht:1, set_agile:1, allow_he:1, - psc_channel:1; + psc_channel:1, + nan_disabled: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 a60b93f2895c..d986973b33ba 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -3301,6 +3301,10 @@ static QDF_STATUS send_scan_chan_list_cmd_tlv(wmi_unified_t wmi_handle, WMI_SET_CHANNEL_FLAG(chan_info, WMI_CHAN_FLAG_PSC); + if (tchan_info->nan_disabled) + WMI_SET_CHANNEL_FLAG(chan_info, + WMI_CHAN_FLAG_NAN_DISABLED); + /* also fill in power information */ WMI_SET_CHANNEL_MIN_POWER(chan_info, tchan_info->minpower);