diff options
| author | Rajeev Kumar <rajekuma@qca.qualcomm.com> | 2015-11-13 14:05:49 -0800 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2015-11-20 15:15:51 +0530 |
| commit | bf12b2761db30f62883f2924f197de5ef87fb8a7 (patch) | |
| tree | c7b7841b29e47bd2ad84b10e18028799aaced862 | |
| parent | ef35de6f0b10f8c0b774bdbcf6908ae9c3f3714f (diff) | |
qcacld-2.0: Do not allow NoA setting in non P2P GO mode
- 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
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_wext.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c index 27d541c3d7ee..7e420d1aca10 100644 --- a/CORE/HDD/src/wlan_hdd_wext.c +++ b/CORE/HDD/src/wlan_hdd_wext.c @@ -8752,6 +8752,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) { + hddLog(LOGE, + FL("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]; |
