hostapd: mesh: make forwarding configurable
[openwrt/staging/dedeckeh.git] / package / network / services / hostapd / files / hostapd.sh
index 2d2c6a7c791082c3a31d8bef553a997b38a5b890..c3640689da60fb3bcaa4e7ce67b99b5f117b6690 100644 (file)
@@ -676,10 +676,11 @@ wpa_supplicant_add_network() {
        }
 
        [[ "$_w_mode" = "mesh" ]] && {
-               json_get_vars mesh_id
+               json_get_vars mesh_id mesh_fwding
                ssid="${mesh_id}"
 
                append network_data "mode=5" "$N$T"
+               [ -n "$mesh_fwding" ] && append network_data "mesh_fwding=${mesh_fwding}" "$N$T"
                [ -n "$channel" ] && wpa_supplicant_set_fixed_freq "$freq" "$htmode"
                append wpa_key_mgmt "SAE"
                scan_ssid=""