diff options
author | Daniel Golle <daniel@makrotopia.org> | 2018-04-18 22:08:21 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2018-04-18 22:12:18 +0200 |
commit | ff8df2b3f9c161edc3ab543bdbeb04a9fb45c959 (patch) | |
tree | 9071e50b96a70185f175aaad41764d9b8f96f05a /package/network/services/hostapd/files | |
parent | e633b21c14f8892657bade85681fc40bcf9cbffd (diff) | |
download | upstream-ff8df2b3f9c161edc3ab543bdbeb04a9fb45c959.tar.gz upstream-ff8df2b3f9c161edc3ab543bdbeb04a9fb45c959.tar.bz2 upstream-ff8df2b3f9c161edc3ab543bdbeb04a9fb45c959.zip |
hostapd: mesh: make forwarding configurable
For unencrypted mesh networks our scripts take care of setting
the various mesh_param values. wpa_supplicant changes somes of them
when being used for SAE encrypted mesh and previously didn't allow
configuring any of them. Add support for setting mesh_fwding (which
has to be set to 0 when using other routing protocols on top of
802.11s) and update our script to pass the value to wpa_supplicant.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/network/services/hostapd/files')
-rw-r--r-- | package/network/services/hostapd/files/hostapd.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh index 2d2c6a7c79..c3640689da 100644 --- a/package/network/services/hostapd/files/hostapd.sh +++ b/package/network/services/hostapd/files/hostapd.sh @@ -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="" |