wifi-scripts: pass multicast_to_unicast as an integer
handle_link() passed the option as a ucode boolean, but the netifd device_set binding reads it with prop_get_int (UC_INTEGER only) and ignored a boolean, so the option was a no-op. Convert it to 0/1. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -61,7 +61,7 @@ function handle_link(dev, data, up)
|
||||
};
|
||||
|
||||
if (ap && config.multicast_to_unicast != null)
|
||||
dev_data.multicast_to_unicast = config.multicast_to_unicast;
|
||||
dev_data.multicast_to_unicast = config.multicast_to_unicast ? 1 : 0;
|
||||
|
||||
if (data.type == "vif" && config.mode == "ap") {
|
||||
dev_data.wireless_proxyarp = !!config.proxy_arp;
|
||||
|
||||
Reference in New Issue
Block a user