From 7dd1429dab05cfb7d67603323fff1c3f4ea66317 Mon Sep 17 00:00:00 2001 From: Nirav Shah Date: Fri, 18 Jan 2019 10:43:16 +0530 Subject: [PATCH] qcacmn: Properly featurize QCA_WIFI_FTM_NL80211 Properly featurize QCA_WIFI_FTM_NL80211. Change-Id: I7bb2ce1c84c46582b87ffcd7fa5b582a9fdec271 CRs-Fixed: 2384335 --- os_if/linux/ftm/inc/wlan_cfg80211_ftm.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/os_if/linux/ftm/inc/wlan_cfg80211_ftm.h b/os_if/linux/ftm/inc/wlan_cfg80211_ftm.h index 3bb497eb38..030ac3f19f 100644 --- a/os_if/linux/ftm/inc/wlan_cfg80211_ftm.h +++ b/os_if/linux/ftm/inc/wlan_cfg80211_ftm.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -69,7 +69,15 @@ int wlan_cfg80211_ftm_testmode_cmd(struct wlan_objmgr_pdev *pdev, * * Return: QDF_STATUS_SUCCESS on success or QDF_STATUS_E errno otherwise */ +#ifdef QCA_WIFI_FTM_NL80211 QDF_STATUS wlan_cfg80211_ftm_rx_event(struct wlan_objmgr_pdev *pdev, uint8_t *data, uint32_t len); - +#else +static inline QDF_STATUS +wlan_cfg80211_ftm_rx_event(struct wlan_objmgr_pdev *pdev, + uint8_t *data, uint32_t len) +{ + return QDF_STATUS_E_NOSUPPORT; +} +#endif #endif