mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacld-3.0: Do not allow NoA setting in non P2P GO mode
Propagation from qcacld-2.0 to qcacld-3.0 - FW asserts after receiving P2P NOA parameter in non P2P GO mode - Add P2P GO mode check in set NOA IOCTL and do not allow this command in non P2P GO modes Change-Id: Ie786dcf33fc50eacadb407d74ae5638da68cf0d2 CRs-Fixed: 919889
This commit is contained in:
parent
c841692ae4
commit
274034cd12
1 changed files with 8 additions and 0 deletions
|
|
@ -7664,6 +7664,14 @@ static int __iw_set_var_ints_getnone(struct net_device *dev,
|
|||
{
|
||||
p2p_app_setP2pPs_t p2pNoA;
|
||||
|
||||
if (pAdapter->device_mode != WLAN_HDD_P2P_GO) {
|
||||
hdd_err("Setting NoA is not allowed in Device mode %s(%d)",
|
||||
hdd_device_mode_to_string(
|
||||
pAdapter->device_mode),
|
||||
pAdapter->device_mode);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
p2pNoA.opp_ps = apps_args[0];
|
||||
p2pNoA.ctWindow = apps_args[1];
|
||||
p2pNoA.duration = apps_args[2];
|
||||
|
|
|
|||
Loading…
Reference in a new issue