Lines Matching refs:niface
2973 struct wpa_interface_info *iface = NULL, *niface; in wpa_driver_ndis_get_interfaces() local
3044 niface = os_zalloc(sizeof(*niface)); in wpa_driver_ndis_get_interfaces()
3045 if (niface == NULL) in wpa_driver_ndis_get_interfaces()
3047 niface->drv_name = "ndis"; in wpa_driver_ndis_get_interfaces()
3049 niface->ifname = os_strdup(name + 8); in wpa_driver_ndis_get_interfaces()
3051 niface->ifname = os_strdup(name); in wpa_driver_ndis_get_interfaces()
3052 if (niface->ifname == NULL) { in wpa_driver_ndis_get_interfaces()
3053 os_free(niface); in wpa_driver_ndis_get_interfaces()
3056 niface->desc = os_strdup(desc); in wpa_driver_ndis_get_interfaces()
3057 niface->next = iface; in wpa_driver_ndis_get_interfaces()
3058 iface = niface; in wpa_driver_ndis_get_interfaces()
3181 niface = os_zalloc(sizeof(*niface)); in wpa_driver_ndis_get_interfaces()
3182 if (niface == NULL) in wpa_driver_ndis_get_interfaces()
3184 niface->drv_name = "ndis"; in wpa_driver_ndis_get_interfaces()
3186 niface->ifname = os_strdup(name[i] + 12); in wpa_driver_ndis_get_interfaces()
3188 niface->ifname = os_strdup(name[i]); in wpa_driver_ndis_get_interfaces()
3189 if (niface->ifname == NULL) { in wpa_driver_ndis_get_interfaces()
3190 os_free(niface); in wpa_driver_ndis_get_interfaces()
3193 niface->desc = os_strdup(desc[i]); in wpa_driver_ndis_get_interfaces()
3194 niface->next = iface; in wpa_driver_ndis_get_interfaces()
3195 iface = niface; in wpa_driver_ndis_get_interfaces()