mirror of
https://github.com/bol-van/zapret.git
synced 2025-07-03 20:13:04 +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)
|
if (wext_fd!=-1)
|
||||||
{
|
{
|
||||||
struct iwreq req;
|
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);
|
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.pointer = wc->wlan[wc->count].ssid;
|
||||||
req.u.essid.length = sizeof(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)
|
if (ioctl(wext_fd, SIOCGIWESSID, &req) != -1)
|
||||||
wc->count++;
|
wc->count++;
|
||||||
close(wext_fd);
|
close(wext_fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user