From 691fb1a4a2bcaa1df44d687cb7a9d57b7ff65061 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Tue, 7 Jan 2025 11:43:36 +0100 Subject: [PATCH] wifi-scripts: allow per-IF mesh basic rate selection Bringing up a mesh interface using wpa_supplicant already supports a per-VIF basic rate selection. Add the same ability when creating a mesh VIF without wpa_supplicant. Signed-off-by: David Bauer --- .../wifi-scripts/files/lib/netifd/wireless/mac80211.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh b/package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh index 52c36a8c92..7d6dbdd840 100755 --- a/package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh +++ b/package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh @@ -844,13 +844,19 @@ mac80211_setup_adhoc() { mac80211_setup_mesh() { json_get_vars ssid mesh_id mcast_rate + json_get_values iface_basic_rate_list basic_rate mcval= [ -n "$mcast_rate" ] && wpa_supplicant_add_rate mcval "$mcast_rate" [ -n "$mesh_id" ] && ssid="$mesh_id" + brlist="$basic_rate_list" + if [ -n "$iface_basic_rate_list" ]; then + brlist="$iface_basic_rate_list" + fi + brstr= - for br in $basic_rate_list; do + for br in $brlist; do wpa_supplicant_add_rate brstr "$br" done -- 2.30.2