mirror of
https://github.com/bol-van/zapret.git
synced 2025-06-29 18:21:16 +00:00
nfqws: optimize wext
This commit is contained in:
parent
1303bf0fef
commit
32cfee705a
@ -1972,10 +1972,10 @@ static int wlan_info_cb(const struct nlmsghdr *nlh, void *data)
|
||||
if (wext_fd!=-1)
|
||||
{
|
||||
struct iwreq req;
|
||||
memset(&req.u,0,sizeof(req.u));
|
||||
snprintf(req.ifr_ifrn.ifrn_name,sizeof(req.ifr_ifrn.ifrn_name),"%s",wc->wlan[wc->count].ifname);
|
||||
req.u.essid.pointer = wc->wlan[wc->count].ssid;
|
||||
req.u.essid.length = sizeof(wc->wlan[wc->count].ssid);
|
||||
req.u.essid.flags = 0;
|
||||
if (ioctl(wext_fd, SIOCGIWESSID, &req) != -1)
|
||||
wc->count++;
|
||||
close(wext_fd);
|
||||
|
Loading…
Reference in New Issue
Block a user