freebsd build: fix second struct iwreq member too

This commit is contained in:
rofl0r 2017-11-26 16:24:18 +00:00
parent 7e1e187ac6
commit 01054aefca
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ iw_get_ext(int skfd, /* Socket to the kernel */
struct iwreq * pwrq) /* Fixed part of the request */
{
/* Set device name */
strncpy(pwrq->ifr_name, ifname, IFNAMSIZ);
strncpy(pwrq->ifr_ifrn.ifrn_name, ifname, IFNAMSIZ);
/* Do the request */
return(ioctl(skfd, request, pwrq));
}