mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
iwinfo: sanity check for iwrange ioctl
This commit is contained in:
parent
4ff90cc755
commit
41822b9b83
@ -620,6 +620,9 @@ static int mtk_get_freqlist(const char *dev, char *buf, int *len)
|
|||||||
if (!ifname)
|
if (!ifname)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
if (!mtk_is_ifup(ifname))
|
||||||
|
return -1;
|
||||||
|
|
||||||
wrq.u.data.pointer = (caddr_t) ⦥
|
wrq.u.data.pointer = (caddr_t) ⦥
|
||||||
wrq.u.data.length = sizeof(struct iw_range);
|
wrq.u.data.length = sizeof(struct iw_range);
|
||||||
wrq.u.data.flags = 0;
|
wrq.u.data.flags = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user