From c3cf2f442ce79ffafe2e4e66e4120587f98b4da8 Mon Sep 17 00:00:00 2001
From: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: Mon, 14 Mar 2022 16:36:36 +0100
Subject: [PATCH] multicast_to_unicast - disable for bh

If not set by default enable this
only for fronthaul ap.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
---
 src/config.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/config.c b/src/config.c
index 15c1637b4..e31b36f0d 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1299,13 +1299,13 @@ int uci_apply_m2(struct agent_config *cfg, char *interface_name, char *device,
 					    "ifname", interface_name,
 					    "multicast_to_unicast", buf,
 					    sizeof(buf))) {
-			/* if option was not found */
+			/* if option was not found - fh = enabled, bh = disabled */
 			uci_set_wireless_interface_option(UCI_WIRELESS,
 							  UCI_WLAN_IFACE,
 							  "ifname",
 							  interface_name,
 							  "multicast_to_unicast",
-							  "1");
+							  multi_ap == 1 ? "0" : "1");
 		}
 	} while(0);
 
-- 
GitLab