Browse Source

qcacmn: Add 11d offload APIs under correct feature flag

Currently host driver defines 11d offload APIs under
HOST_11D_SCAN feature flag which is not correct.
Add 11d offload APIs under TARGET_11D_SCAN feature flag.

Change-Id: I0d3205b215c9fc363a71c4e7a6b54e40fb10a964
CRs-Fixed: 3183200
Ashish Kumar Dhanotiya 3 năm trước cách đây
mục cha
commit
e9c9acf630

+ 2 - 1
target_if/regulatory/inc/target_if_reg_11d.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
@@ -32,7 +33,7 @@
 #include "wmi_unified_api.h"
 #include "wmi_unified_reg_api.h"
 
-#ifdef HOST_11D_SCAN
+#ifdef TARGET_11D_SCAN
 /**
  * tgt_if_regulatory_is_11d_offloaded() - Check if reg 11d is offloaded.
  * @psoc: psoc pointer

+ 2 - 1
target_if/regulatory/src/target_if_reg_11d.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
@@ -24,7 +25,7 @@
 
 #include "target_if_reg_11d.h"
 
-#ifdef HOST_11D_SCAN
+#ifdef TARGET_11D_SCAN
 bool tgt_if_regulatory_is_11d_offloaded(struct wlan_objmgr_psoc *psoc)
 {
 	wmi_unified_t wmi_handle = get_wmi_unified_hdl_from_psoc(psoc);