From 796b9a708e66a308fe770302d07324dd5cd513e2 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 1 Jun 2018 17:12:32 -0700 Subject: [PATCH] qcacld-3.0: hdd: Fix incorrect hal_handle declarations Turning on strict type checking flagged multiple of instances of hal_handle being declared incorrectly, so fix them. Change-Id: I8781c7e2839dcc3532b3aca066802db39f989e07 CRs-Fixed: 2254951 --- core/hdd/src/wlan_hdd_hostapd.c | 2 +- core/hdd/src/wlan_hdd_main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index a7c3fc256076..e9bb236a7ad0 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -2764,7 +2764,7 @@ QDF_STATUS wlan_hdd_get_channel_for_sap_restart( uint8_t vdev_id, uint8_t *channel, uint8_t *sec_ch) { - tHalHandle *hal_handle; + tHalHandle hal_handle; struct hdd_ap_ctx *hdd_ap_ctx; uint8_t intf_ch = 0; struct hdd_context *hdd_ctx; diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 6982dbf2b21f..43f7307c7a6c 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -7968,7 +7968,7 @@ static uint8_t hdd_get_safe_channel_from_pcl_and_acs_range( struct sir_pcl_list pcl; QDF_STATUS status; uint32_t i, j; - tHalHandle *hal_handle; + tHalHandle hal_handle; struct hdd_context *hdd_ctx; bool found = false; int ret; @@ -8072,7 +8072,7 @@ void hdd_switch_sap_channel(struct hdd_adapter *adapter, uint8_t channel, bool forced) { struct hdd_ap_ctx *hdd_ap_ctx; - tHalHandle *hal_handle; + tHalHandle hal_handle; struct hdd_context *hdd_ctx; if (!adapter) {