diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index b961582560b4..9089b2844776 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -11622,6 +11622,11 @@ static int __wlan_hdd_cfg80211_set_nud_stats(struct wiphy *wiphy, ENTER(); + if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) { + hdd_err("Command not allowed in FTM mode"); + return -EINVAL; + } + err = wlan_hdd_validate_context(hdd_ctx); if (0 != err) return err; @@ -11773,6 +11778,11 @@ static int __wlan_hdd_cfg80211_get_nud_stats(struct wiphy *wiphy, ENTER(); + if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) { + hdd_err("Command not allowed in FTM mode"); + return -EINVAL; + } + err = wlan_hdd_validate_context(hdd_ctx); if (0 != err) return err;