qcacld-3.0: Validate NUD stats commands for FTM mode

Do Not allow __wlan_hdd_cfg80211_get_nud_stats and
__wlan_hdd_cfg80211_set_nud_stats commands for FTM mode.

CRs-fixed: 2161387
Change-Id: I135cead506c741425845d9e000d9a868e4a7779a
This commit is contained in:
Anurag Chouhan 2018-01-04 12:25:48 +05:30 • committed by snandini
commit 9fb2bd53ab

View file

@ -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;