mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
qcacld-3.0: Allow monitor mode vendor cmd only if mon iface is created
QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE is used to set the config for packet capture feature on STA interface. Currently this vendor command is allowed even if monitor interface which will be used in packet capture mode is not created, which is wrong. To fix this, allow monitor mode config related to packet capture feature only if monitor interface is created. Change-Id: Iea94b4cd5f21d8ce13643c209d4027972d7a16d3 CRs-Fixed: 3256298
This commit is contained in:
parent
be6039dd5a
commit
f502b47633
1 changed files with 2 additions and 1 deletions
|
|
@ -15714,7 +15714,8 @@ __wlan_hdd_cfg80211_set_monitor_mode(struct wiphy *wiphy,
|
|||
return -EPERM;
|
||||
}
|
||||
|
||||
if (!ucfg_pkt_capture_get_mode(hdd_ctx->psoc))
|
||||
if (!ucfg_pkt_capture_get_mode(hdd_ctx->psoc) ||
|
||||
!hdd_is_pkt_capture_mon_enable(adapter))
|
||||
return -EPERM;
|
||||
|
||||
errno = hdd_validate_adapter(adapter);
|
||||
|
|
|
|||
Loading…
Reference in a new issue