Sfoglia il codice sorgente

qcacmn: Resolve compilation error for TWT APIs

Currently, driver does not use "WLAN_TWT_CONV_SUPPORTED" flag in
TWT APIs declaration. So, for some targets, it causes
compilation failure.

So, this change fixes the compilation issue.

Change-Id: Ie1b92119ef37b85f4c7eb1d0e23e7910eeab3415
CRs-Fixed: 3603668
Rahul Gusain 1 anno fa
parent
commit
25a99149d2
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      umac/twt/dispatcher/inc/wlan_twt_ucfg_ext_cfg.h

+ 2 - 1
umac/twt/dispatcher/inc/wlan_twt_ucfg_ext_cfg.h

@@ -26,6 +26,7 @@
 #include <wlan_objmgr_psoc_obj.h>
 #include <wlan_twt_public_structs.h>
 
+#if defined(WLAN_SUPPORT_TWT) && defined(WLAN_TWT_CONV_SUPPORTED)
 /**
  * ucfg_twt_cfg_get_requestor() - get TWT requestor
  * @psoc: Pointer to global PSOC object
@@ -180,5 +181,5 @@ ucfg_twt_cfg_get_flex_sched(struct wlan_objmgr_psoc *psoc, bool *val)
 	*val = false;
 	return QDF_STATUS_SUCCESS;
 }
-
+#endif /* WLAN_TWT_CONV_SUPPORTED */
 #endif /* _WLAN_TWT_UCFG_EXT_CFG_H_ */