Bladeren bron

qcacmn: Fix 'struct wifi_pos_osif_ops' will not be visible issue

Fix the compile error: "declaration of 'struct wifi_pos_osif_ops'
will not be visible outside of wifi_pos_register_osif_callbacks"
when enable CONFIG_WIFI_POS_CONVERGED but disable the macro
WLAN_FEATURE_RTT_11AZ_SUPPORT.

Change-Id: Ib0043a109244d25368b7508b67b5b7b5c26cd3bf
CRs-Fixed: 3338198
Chaoli Zhou 2 jaren geleden
bovenliggende
commit
c0d40ef91a
1 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 4 1
      os_if/linux/wifi_pos/inc/os_if_wifi_pos_utils.h

+ 4 - 1
os_if/linux/wifi_pos/inc/os_if_wifi_pos_utils.h

@@ -26,7 +26,7 @@
 #include <wlan_objmgr_cmn.h>
 #include "wifi_pos_public_struct.h"
 
-#if defined(WIFI_POS_CONVERGED) && defined(WLAN_FEATURE_RTT_11AZ_SUPPORT)
+#if defined(WIFI_POS_CONVERGED)
 /**
  * struct wifi_pos_osif_ops - Wifi POS osif callbacks
  * @osif_initiate_pasn_cb: Callback to initiate PASN authentication
@@ -37,6 +37,9 @@ struct wifi_pos_osif_ops {
 					    uint8_t num_pasn_peers,
 					    bool is_initiate_pasn);
 };
+#endif
+
+#if defined(WIFI_POS_CONVERGED) && defined(WLAN_FEATURE_RTT_11AZ_SUPPORT)
 
 /**
  * osif_wifi_pos_register_ops() - Register Wifi-Pos module OS_IF callbacks