Browse Source

qcacld-3.0: Fix compilation error in case NAN is disabled

Currently the function ucfg_nan_get_ndi_state is not defined for the
case WLAN_FEATURE_NAN is not defined. As this is a public function
defined in dispatcher/inc/ and can be used externally, there would be a
compilation failure on such cases.

Resolve the failure by declaring ucfg_nan_get_ndi_state as static in the
case WLAN_FEATURE_NAN is not enabled.

Change-Id: I30297e8a3781f9a529c40a1423a9d2613c286f4e
CRs-Fixed: 2548223
Sourav Mohapatra 5 years ago
parent
commit
4c9b82aaf6
1 changed files with 6 additions and 0 deletions
  1. 6 0
      components/nan/dispatcher/inc/nan_ucfg_api.h

+ 6 - 0
components/nan/dispatcher/inc/nan_ucfg_api.h

@@ -373,5 +373,11 @@ static inline bool ucfg_is_nan_disc_active(struct wlan_objmgr_psoc *psoc)
 	return false;
 }
 
+static inline
+enum nan_datapath_state ucfg_nan_get_ndi_state(struct wlan_objmgr_vdev *vdev)
+{
+	return NAN_DATA_INVALID_STATE;
+}
+
 #endif /* WLAN_FEATURE_NAN */
 #endif /* _NAN_UCFG_API_H_ */