diff --git a/os_dep/ioctl_linux.c b/os_dep/ioctl_linux.c index 19ea69c..e3ee9f3 100644 --- a/os_dep/ioctl_linux.c +++ b/os_dep/ioctl_linux.c @@ -5530,7 +5530,7 @@ static int rtw_hostapd_ioctl(struct net_device *dev, struct iw_point *p) goto out; } - if (!p->pointer || p->length < sizeof(struct ieee_param)) { + if (!p->pointer || p->length > sizeof(struct ieee_param)) { ret = -EINVAL; goto out; }