diff --git a/src/config.c b/src/config.c index 15c1637b4547dde78d2be13e36f3717e06055e80..e31b36f0dcba36ef364794abd6cc78cd9a81a347 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);