aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/patches/140-disable_bridge_packet_workaround.patch
blob: 6337d8d737bfa3c327d46b8843cbbe72efe4c14d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/src/l2_packet/l2_packet_linux.c
+++ b/src/l2_packet/l2_packet_linux.c
@@ -307,8 +307,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;
 
 	/*
 	 * The Linux packet socket behavior has changed over the years and there