Skip to content
Snippets Groups Projects
Commit c173d410 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

mac80211: add uci support for the ad-hoc multicast rate setting

SVN-Revision: 23637
parent f65c625f
No related merge requests found
...@@ -362,7 +362,14 @@ enable_mac80211() { ...@@ -362,7 +362,14 @@ enable_mac80211() {
adhoc) adhoc)
config_get bssid "$vif" bssid config_get bssid "$vif" bssid
config_get ssid "$vif" ssid config_get ssid "$vif" ssid
iw dev "$ifname" ibss join "$ssid" $freq ${fixed:+fixed-freq} $bssid config_get mcast_rate "$vif" mcast_rate
local mcval=""
[ -n "$mcast_rate" ] && {
mcval="$(($mcast_rate / 1000))"
mcsub="$(( ($mcast_rate / 100) % 10 ))"
[ "$mcsub" -gt 0 ] && mcval="$mcval.$mcsub"
}
iw dev "$ifname" ibss join "$ssid" $freq ${fixed:+fixed-freq} $bssid ${mcval:+mcast-rate $mcval}
;; ;;
sta) sta)
if eval "type wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then if eval "type wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment