luci-mod-network: (wireless) Expose multicast_to_unicast setting.
authorPaul Dee <itsascambutmailmeanyway@gmail.com>
Tue, 7 Dec 2021 23:10:07 +0000 (00:10 +0100)
committerPaul Dee <itsascambutmailmeanyway@gmail.com>
Tue, 22 Feb 2022 15:12:00 +0000 (16:12 +0100)
From https://w1.fi/cgit/hostap/commit/?id=34f7c699a6bcb5c45f82ceb6743354ad79296078
add support for multicast_to_unicast conversion in the wireless settings

Tested on: 21.02.1

Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index 77f53e2b7dd4e2eb5ddaf093c3a67716616db3d3..65d19fd366c7a7a76b3438dd600d62fd9d3f0b99 100644 (file)
@@ -1145,6 +1145,11 @@ return view.extend({
                                        o.depends('mode', 'ap-wds');
                                        o.default = o.enabled;
 
+                                       /* https://w1.fi/cgit/hostap/commit/?id=34f7c699a6bcb5c45f82ceb6743354ad79296078  */
+                                       /* multicast_to_unicast https://github.com/openwrt/openwrt/commit/7babb978ad9d7fc29acb1ff86afb1eb343af303a */
+                                       o = ss.taboption('advanced', form.Flag, 'multicast_to_unicast', _('Multi To Unicast'), _('ARP, IPv4 and IPv6 (even 802.1Q) with multicast destination MACs are unicast to the STA MAC address. Note: This is not Directed Multicast Service (DMS) in 802.11v. Note: might break receiver STA multicast expectations.'));
+                                       o.rmempty = true;
+
                                        o = ss.taboption('advanced', form.Flag, 'isolate', _('Isolate Clients'), _('Prevents client-to-client communication'));
                                        o.depends('mode', 'ap');
                                        o.depends('mode', 'ap-wds');