mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-20 10:51:27 +00:00
13 lines
329 B
Diff
13 lines
329 B
Diff
--- a/src/l2_packet/l2_packet_linux.c
|
|
+++ b/src/l2_packet/l2_packet_linux.c
|
|
@@ -365,8 +365,7 @@ struct l2_packet_data * l2_packet_init_b
|
|
|
|
l2 = l2_packet_init(br_ifname, own_addr, protocol, rx_callback,
|
|
rx_callback_ctx, l2_hdr);
|
|
- if (!l2)
|
|
- return NULL;
|
|
+ return l2;
|
|
|
|
#ifndef CONFIG_NO_LINUX_PACKET_SOCKET_WAR
|
|
/*
|