luci-mod-network: (wireless) Expose multicast_to_unicast setting.
authorPaul Dee <itsascambutmailmeanyway@gmail.com>
Sun, 11 Dec 2022 13:29:24 +0000 (15:29 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Sun, 11 Dec 2022 13:29:24 +0000 (15:29 +0200)
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>
(cherry picked from commit b2101a23a9116c65c903df6c1d02db16d6da579f)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index 9fbc66039090305078aea2212ec4198f8fab89f7..987d611e85a45de6b7b249f89c428b84b3a4f05a 100644 (file)
@@ -1146,6 +1146,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');