Skip to content

Commit

Permalink
wifi-scripts: allow per-IF mesh basic rate selection
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
blocktrron committed Jan 8, 2025
1 parent 5141e2d commit 3deeb78
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"

br_list="$basic_rate_list"
if [ -n "$iface_basic_rate_list" ]; then
br_list="$iface_basic_rate_list"
fi

brstr=
for br in $basic_rate_list; do
for br in $br_list; do
wpa_supplicant_add_rate brstr "$br"
done

Expand Down

0 comments on commit 3deeb78

Please sign in to comment.