summaryrefslogtreecommitdiffstats
path: root/usr.sbin/wpa/wpa_supplicant/Packet32.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/wpa/wpa_supplicant/Packet32.c')
-rw-r--r--usr.sbin/wpa/wpa_supplicant/Packet32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/wpa/wpa_supplicant/Packet32.c b/usr.sbin/wpa/wpa_supplicant/Packet32.c
index 7346395..f8a90b3 100644
--- a/usr.sbin/wpa/wpa_supplicant/Packet32.c
+++ b/usr.sbin/wpa/wpa_supplicant/Packet32.c
@@ -286,7 +286,7 @@ PacketGetAdapterNames(namelist, len)
ifm = (struct if_msghdr *)next;
if (ifm->ifm_type == RTM_IFINFO) {
sdl = (struct sockaddr_dl *)(ifm + 1);
- if (strnstr(sdl->sdl_data, "ndis", sdl->sdl_nlen)) {
+ if (strnstr(sdl->sdl_data, "wlan", sdl->sdl_nlen)) {
if ((spc + sdl->sdl_nlen) > *len) {
free(buf);
return(FALSE);
@@ -319,7 +319,7 @@ PacketGetAdapterNames(namelist, len)
ifm = (struct if_msghdr *)next;
if (ifm->ifm_type == RTM_IFINFO) {
sdl = (struct sockaddr_dl *)(ifm + 1);
- if (strnstr(sdl->sdl_data, "ndis", sdl->sdl_nlen)) {
+ if (strnstr(sdl->sdl_data, "wlan", sdl->sdl_nlen)) {
if ((spc + sdl->sdl_nlen) > *len) {
free(buf);
return(FALSE);
OpenPOWER on IntegriCloud