diff options
| author | Arunk Khandavalli <akhandav@codeaurora.org> | 2017-04-05 20:49:28 +0530 |
|---|---|---|
| committer | spuligil <spuligil@codeaurora.org> | 2017-04-15 12:49:57 -0700 |
| commit | da21c7bc56bc2aaeb30262b9eec61e29860d7e0e (patch) | |
| tree | 411aab937f277e2abd0afcf6850f2cbcf0699e53 | |
| parent | 35aa017908acc476a9b678bc3d96e8f985ba6a13 (diff) | |
qcacld-3.0: Reject set packet filter params for invalid device mode
Packet filter params is supported only for Station mode presently,
configuring the filter for other modes results in failure in fw.
To mitigate the issue reject the packet filter for other modes than
Station mode.
CRs-Fixed: 2029356
Change-Id: Ic2c1786dcf8d8980a104af2ee6916489dd2ec423
| -rw-r--r-- | core/hdd/src/wlan_hdd_wext.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index c8d09d5f4ac5..ca0c9db6131a 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -11402,6 +11402,12 @@ static int __iw_set_packet_filter_params(struct net_device *dev, return -EINVAL; } + if (adapter->device_mode != QDF_STA_MODE) { + hdd_err("Packet filter not supported for this mode :%d", + adapter->device_mode); + return -ENOTSUPP; + } + /* copy data using copy_from_user */ request = mem_alloc_copy_from_user_helper(priv_data.pointer, priv_data.length); |
