From b3ef41623c8a79a29847ca69c641ac7334d231b6 Mon Sep 17 00:00:00 2001 From: Hanumanth Reddy Pothula Date: Tue, 25 Oct 2016 15:13:26 +0530 Subject: [PATCH] qcacld-3.0: Don't set fixed params for setPktFilter ioctl While defining setPktFilter ioctl arguments, Host is setting IW_PRIV_SIZE_FIXED, which means setPktFilter ioctl accepts exactly fixed(103) number of parameters. So, if user issues the ioctl with number parameter other than 103, kernel returns failure. Remove IW_PRIV_SIZE_FIXED while defining arguments for setPktFilter IOCTL, so that setPktFilter is processed. Change-Id: I373609eb3c180af80218d6e955a1cf0d56f785a7 CRs-Fixed: 1081982 (cherry picked from commit 1105e872650391fbaad03efa325510482c413680) --- core/hdd/src/wlan_hdd_wext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index 720d1f504fc2..52d44b5668cb 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -11060,8 +11060,8 @@ static const struct iw_priv_args we_private_args[] = { #ifdef WLAN_FEATURE_PACKET_FILTERING { WLAN_SET_PACKET_FILTER_PARAMS, - IW_PRIV_TYPE_BYTE | IW_PRIV_SIZE_FIXED | - sizeof(struct pkt_filter_cfg), + IW_PRIV_TYPE_BYTE | + sizeof(struct pkt_filter_cfg), 0, "setPktFilter" }