Lines Matching refs:l2
37 /* TODO: add support for multiple l2 connections */
38 struct l2_packet_data *l2;
54 if (iface->l2) {
57 l2_packet_deinit(iface->l2);
58 iface->l2 = NULL;
336 perror("sendmsg(l2 rx)");
363 if (iface->l2) {
366 l2_packet_deinit(iface->l2);
367 iface->l2 = NULL;
372 iface->l2 = l2_packet_init(iface->ifname, NULL, proto,
374 if (iface->l2 == NULL) {
380 if (l2_packet_get_own_addr(iface->l2, own_addr) < 0) {
383 l2_packet_deinit(iface->l2);
384 iface->l2 = NULL;
390 wpa_printf(MSG_DEBUG, "L2 registration: res=%d", res);
397 if (iface->l2) {
398 l2_packet_deinit(iface->l2);
399 iface->l2 = NULL;
407 if (iface->l2)
408 l2_packet_notify_auth_start(iface->l2);
420 if (iface->l2 == NULL)
424 wpa_printf(MSG_DEBUG, "Too short L2 send packet (len=%lu)",
438 res = l2_packet_send(iface->l2, dst_addr, proto, buf + ETH_ALEN + 2,
440 wpa_printf(MSG_DEBUG, "L2 send: res=%d", res);
545 if (iface->l2)
546 l2_packet_deinit(iface->l2);