aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-27 14:54:41 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-27 14:54:41 +0000
commit8b3706cc62a7fcafb9e5ba1e8a04171c85e0bf44 (patch)
treef758f21fe1250114c39d3c2acb739a911dd9f578 /package/network/services/hostapd/patches
parentc8653203f55cfd3d555e9fb59a147d01acde2217 (diff)
downloadmaster-187ad058-8b3706cc62a7fcafb9e5ba1e8a04171c85e0bf44.tar.gz
master-187ad058-8b3706cc62a7fcafb9e5ba1e8a04171c85e0bf44.tar.bz2
master-187ad058-8b3706cc62a7fcafb9e5ba1e8a04171c85e0bf44.zip
hostapd: disable the bridge packet receive workaround, it is unnecessary on openwrt and could potentially harm performance
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45060 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/hostapd/patches')
-rw-r--r--package/network/services/hostapd/patches/140-disable_bridge_packet_workaround.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/140-disable_bridge_packet_workaround.patch b/package/network/services/hostapd/patches/140-disable_bridge_packet_workaround.patch
new file mode 100644
index 0000000000..6337d8d737
--- /dev/null
+++ b/package/network/services/hostapd/patches/140-disable_bridge_packet_workaround.patch
@@ -0,0 +1,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