ソースを参照

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
Jeff Johnson 6 年 前
コミット
796b9a708e
2 ファイル変更3 行追加3 行削除
  1. 1 1
      core/hdd/src/wlan_hdd_hostapd.c
  2. 2 2
      core/hdd/src/wlan_hdd_main.c

+ 1 - 1
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;

+ 2 - 2
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) {