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)
This commit is contained in:
Hanumanth Reddy Pothula
2016-10-25 15:13:26 +05:30
committed by Gerrit - the friendly Code Review server
parent 4405cbfb79
commit b3ef41623c

View File

@@ -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"
}