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
2019-10-18 11:37:41 +05:30
提交者 nshrivas
父節點 6421d36dd6
當前提交 4c9b82aaf6

查看文件

@@ -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_ */