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 <mail@david-bauer.net>
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