Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/wpa/wpa_supplicant/Packet32.c
Context not available. | |||||
return(NULL); | return(NULL); | ||||
a->socket = s; | a->socket = s; | ||||
if (strncmp(iface, "\\Device\\NPF_", 12) == 0) | if (strncmp((const char*)iface, "\\Device\\NPF_", 12) == 0) | ||||
iface += 12; | iface += 12; | ||||
else if (strncmp(iface, "\\DEVICE\\", 8) == 0) | else if (strncmp((const char*)iface, "\\DEVICE\\", 8) == 0) | ||||
iface += 8; | iface += 8; | ||||
snprintf(a->name, IFNAMSIZ, "%s", iface); | snprintf(a->name, IFNAMSIZ, "%s", iface); | ||||
/* Turn off net80211 roaming */ | /* Turn off net80211 roaming */ | ||||
bzero((char *)&ireq, sizeof(ireq)); | bzero((char *)&ireq, sizeof(ireq)); | ||||
strncpy(ireq.i_name, iface, sizeof (ifr.ifr_name)); | strncpy(ireq.i_name, (const char*)iface, sizeof (ifr.ifr_name)); | ||||
ireq.i_type = IEEE80211_IOC_ROAMING; | ireq.i_type = IEEE80211_IOC_ROAMING; | ||||
if (ioctl(a->socket, SIOCG80211, &ireq) == 0) { | if (ioctl(a->socket, SIOCG80211, &ireq) == 0) { | ||||
a->prev_roaming = ireq.i_val; | a->prev_roaming = ireq.i_val; | ||||
Context not available. | |||||
} | } | ||||
bzero((char *)&ifr, sizeof(ifr)); | bzero((char *)&ifr, sizeof(ifr)); | ||||
strncpy(ifr.ifr_name, iface, sizeof (ifr.ifr_name)); | strncpy(ifr.ifr_name, (const char*)iface, sizeof (ifr.ifr_name)); | ||||
if (ioctl(a->socket, SIOCGIFFLAGS, (caddr_t)&ifr) < 0) { | if (ioctl(a->socket, SIOCGIFFLAGS, (caddr_t)&ifr) < 0) { | ||||
free(a); | free(a); | ||||
close(s); | close(s); | ||||
Context not available. | |||||
int spc; | int spc; | ||||
int i, ifcnt = 0; | int i, ifcnt = 0; | ||||
plist = namelist; | plist = (char*)namelist; | ||||
spc = 0; | spc = 0; | ||||
bzero(plist, *len); | bzero(plist, *len); | ||||
Context not available. |