wlan-ap-Telecominfraproject/feeds/wifi-ax/batman-adv/files/lib/netifd/proto/batadv_vlan.sh
Sven Eckelmann 0cb7073abb ipq807x: Add batman-adv for wifi-ax's mac80211
The batman-adv source code in openwrt-routing for OpenWrt 19.07 is
expecting the backports' compat code from OpenWrt 19.07. But the mac80211
package in wifi-ax is providing the ABI (and API) from a much newer kernel.

To work around this problem, a fork of the batman-adv package from OpenWrt
19.07 without the patches 0001-0004 can be used to switch to the new
netlink policy structure from newer kernel versions.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-10-13 16:14:29 +02:00

26 lines
453 B
Bash
Executable File

#!/bin/sh
. /lib/functions.sh
. ../netifd-proto.sh
init_proto "$@"
proto_batadv_vlan_init_config() {
proto_config_add_boolean 'ap_isolation:bool'
}
proto_batadv_vlan_setup() {
local config="$1"
local iface="$2"
# batadv_vlan options
local ap_isolation
json_get_vars ap_isolation
[ -n "$ap_isolation" ] && batctl -m "$iface" ap_isolation "$ap_isolation"
proto_init_update "$iface" 1
proto_send_update "$config"
}
add_protocol batadv_vlan