mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-21 11:22:50 +00:00
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>
26 lines
453 B
Bash
Executable File
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
|