Lines Matching refs:l2
51 /* TODO: add support for multiple l2 connections */
52 struct l2_packet_data *l2;
70 if (iface->l2) {
73 l2_packet_deinit(iface->l2);
74 iface->l2 = NULL;
459 perror("sendmsg(l2 rx)");
486 if (iface->l2) {
489 l2_packet_deinit(iface->l2);
490 iface->l2 = NULL;
495 iface->l2 = l2_packet_init(iface->ifname, NULL, proto,
497 if (iface->l2 == NULL) {
503 if (l2_packet_get_own_addr(iface->l2, own_addr) < 0) {
506 l2_packet_deinit(iface->l2);
507 iface->l2 = NULL;
513 wpa_printf(MSG_DEBUG, "L2 registration: res=%d", res);
520 if (iface->l2) {
521 l2_packet_deinit(iface->l2);
522 iface->l2 = NULL;
530 if (iface->l2)
531 l2_packet_notify_auth_start(iface->l2);
543 if (iface->l2 == NULL)
547 wpa_printf(MSG_DEBUG, "Too short L2 send packet (len=%lu)",
561 res = l2_packet_send(iface->l2, dst_addr, proto, buf + ETH_ALEN + 2,
563 wpa_printf(MSG_DEBUG, "L2 send: res=%d", res);
685 if (iface->l2)
686 l2_packet_deinit(iface->l2);