mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
hostapd: add missing chunk for the snoop interface fix (#7551)
Fixes: 7b46377a0cd9 ("hostapd: make the snooping interface (for proxyarp) configurable") Signed-off-by: Felix Fietkau <nbd@nbd.name> Co-authored-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
3c6aadc40e
commit
b72f6d6fa1
@ -10,17 +10,20 @@
|
|||||||
|
|
||||||
--- a/src/ap/x_snoop.c
|
--- a/src/ap/x_snoop.c
|
||||||
+++ b/src/ap/x_snoop.c
|
+++ b/src/ap/x_snoop.c
|
||||||
@@ -71,6 +71,10 @@ x_snoop_get_l2_packet(struct hostapd_dat
|
@@ -71,8 +71,12 @@ x_snoop_get_l2_packet(struct hostapd_dat
|
||||||
{
|
{
|
||||||
struct hostapd_bss_config *conf = hapd->conf;
|
struct hostapd_bss_config *conf = hapd->conf;
|
||||||
struct l2_packet_data *l2;
|
struct l2_packet_data *l2;
|
||||||
+ const char *ifname = conf->bridge;
|
+ const char *ifname = conf->bridge;
|
||||||
+
|
|
||||||
|
- l2 = l2_packet_init(conf->bridge, NULL, ETH_P_ALL, handler, hapd, 1);
|
||||||
+ if (conf->snoop_iface[0])
|
+ if (conf->snoop_iface[0])
|
||||||
+ ifname = conf->snoop_iface;
|
+ ifname = conf->snoop_iface;
|
||||||
|
+
|
||||||
l2 = l2_packet_init(conf->bridge, NULL, ETH_P_ALL, handler, hapd, 1);
|
+ l2 = l2_packet_init(ifname, NULL, ETH_P_ALL, handler, hapd, 1);
|
||||||
if (l2 == NULL) {
|
if (l2 == NULL) {
|
||||||
|
wpa_printf(MSG_DEBUG,
|
||||||
|
"x_snoop: Failed to initialize L2 packet processing %s",
|
||||||
--- a/hostapd/config_file.c
|
--- a/hostapd/config_file.c
|
||||||
+++ b/hostapd/config_file.c
|
+++ b/hostapd/config_file.c
|
||||||
@@ -2357,6 +2357,8 @@ static int hostapd_config_fill(struct ho
|
@@ -2357,6 +2357,8 @@ static int hostapd_config_fill(struct ho
|
||||||
|
Loading…
Reference in New Issue
Block a user