From 3aa150756b297336771dfd4a5740bd9c052e1ee9 Mon Sep 17 00:00:00 2001 From: Shashikala Prabhu Date: Thu, 13 Feb 2020 12:14:35 +0530 Subject: [PATCH] qcacmn: Use restricted 80+80 MHz service bit instead of 165 MHz For restricted 80+80 MHz FR, target team initially added wmi_service_bw_165mhz_support to indicate the target is capable of supporting restricted 80+80 MHz. Later, they have added wmi_service_bw_restricted_80p80_support to indicate the same. Therefore rename wmi_service_bw_165mhz_support as wmi_service_bw_restricted_80p80_support. Change-Id: I12229b5d35911d4c34e63902c09592187d902bed CRs-Fixed: 2621249 --- target_if/init_deinit/src/init_event_handler.c | 3 ++- wmi/inc/wmi_unified_param.h | 1 + wmi/src/wmi_unified_tlv.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/target_if/init_deinit/src/init_event_handler.c b/target_if/init_deinit/src/init_event_handler.c index 5868c1a84d05..bb21d0084478 100644 --- a/target_if/init_deinit/src/init_event_handler.c +++ b/target_if/init_deinit/src/init_event_handler.c @@ -126,7 +126,8 @@ static int init_deinit_service_ready_event_handler(ol_scn_t scn_handle, if (wmi_service_enabled(wmi_handle, wmi_service_dynamic_hw_mode)) wlan_psoc_nif_fw_ext_cap_set(psoc, WLAN_SOC_CEXT_DYNAMIC_HW_MODE); - if (wmi_service_enabled(wmi_handle, wmi_service_bw_165mhz_support)) + if (wmi_service_enabled(wmi_handle, + wmi_service_bw_restricted_80p80_support)) wlan_psoc_nif_fw_ext_cap_set(psoc, WLAN_SOC_RESTRICTED_80P80_SUPPORT); diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 64b5567cf332..c0bc79d5231a 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -5101,6 +5101,7 @@ typedef enum { wmi_service_ext2_msg, wmi_service_6ghz_support, wmi_service_bw_165mhz_support, + wmi_service_bw_restricted_80p80_support, wmi_service_packet_capture_support, wmi_service_nan_vdev, wmi_service_multiple_vdev_restart_ext, diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 1baea22c6f00..8ce92bdf8d4c 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -14156,6 +14156,8 @@ static void populate_tlv_service(uint32_t *wmi_service) WMI_SERVICE_6GHZ_SUPPORT; wmi_service[wmi_service_bw_165mhz_support] = WMI_SERVICE_BW_165MHZ_SUPPORT; + wmi_service[wmi_service_bw_restricted_80p80_support] = + WMI_SERVICE_BW_RESTRICTED_80P80_SUPPORT; wmi_service[wmi_service_packet_capture_support] = WMI_SERVICE_PACKET_CAPTURE_SUPPORT; wmi_service[wmi_service_nan_vdev] = WMI_SERVICE_NAN_VDEV_SUPPORT;