mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
qcacld-3.0: Skip packet filter in disconnect state
Currently, Host allows to set packet filter in disconnect state which is leading assert in firmware. As a part of this fix, skip packet filter configuration in disconnect state. Change-Id: Ibc02105fe4d2455dfb0e527d7fcb240fc1b39330 CRs-Fixed: 2041846
This commit is contained in:
parent
922344761b
commit
be846bbbdc
1 changed files with 5 additions and 0 deletions
|
|
@ -11811,6 +11811,11 @@ static int __iw_set_packet_filter_params(struct net_device *dev,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (!hdd_conn_is_connected(WLAN_HDD_GET_STATION_CTX_PTR(adapter))) {
|
||||
hdd_err("Packet filter not supported in disconnected state");
|
||||
return -ENOTSUPP;
|
||||
}
|
||||
|
||||
/* copy data using copy_from_user */
|
||||
request = mem_alloc_copy_from_user_helper(priv_data.pointer,
|
||||
priv_data.length);
|
||||
|
|
|
|||
Loading…
Reference in a new issue