From c2668290e3907bfe101433a6655e071b3c48bc75 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sun, 12 Jul 2020 01:07:28 +0000 Subject: [PATCH] Allow a little extra size for rtw_hostapd_ioctl() packets --- os_dep/linux/ioctl_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_dep/linux/ioctl_linux.c b/os_dep/linux/ioctl_linux.c index d434bf5..b56b2dc 100644 --- a/os_dep/linux/ioctl_linux.c +++ b/os_dep/linux/ioctl_linux.c @@ -7721,7 +7721,7 @@ static int rtw_hostapd_ioctl(struct net_device *dev, struct iw_point *p) if (!rtw_is_hw_init_completed(padapter)) return -EPERM; - if (!p->pointer || p->length != sizeof(struct ieee_param)) + if (!p->pointer || p->length != (sizeof(struct ieee_param) + 100)) return -EINVAL; param = (struct ieee_param *)rtw_malloc(p->length);