hostapd: use config option CONFIG_NO_LINUX_PACKET_SOCKET_WAR
Instead of patching the workaround away, just use the config option.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 9b4a27455c
)
v19.07.3_mercusys_ac12_duma
parent
5e8d1b52da
commit
90a0daf4fe
@ -1,12 +0,0 @@
|
||||
--- a/src/l2_packet/l2_packet_linux.c
|
||||
+++ b/src/l2_packet/l2_packet_linux.c
|
||||
@@ -360,8 +360,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
|
||||
/*
|
Loading…
Reference in New Issue