iwinfo: sanity check for iwrange ioctl

This commit is contained in:
hanwckf 2024-01-01 14:42:29 +08:00
parent 4ff90cc755
commit 41822b9b83

View File

@ -620,6 +620,9 @@ static int mtk_get_freqlist(const char *dev, char *buf, int *len)
if (!ifname)
return -1;
if (!mtk_is_ifup(ifname))
return -1;
wrq.u.data.pointer = (caddr_t) ⦥
wrq.u.data.length = sizeof(struct iw_range);
wrq.u.data.flags = 0;