mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
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:
parent
cf507097ba
commit
9fb2bd53ab
1 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue