diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-25 23:51:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-10-25 23:51:12 +0000 |
commit | a23760cc4bc6daabfa56cb4cab2844dcdf238614 (patch) | |
tree | 1007f3c014e4605917b0559b93e0f7cca7830b1e /package | |
parent | 168eb41fe85e5a229b77c504db8e7cb74bf720a1 (diff) | |
download | upstream-a23760cc4bc6daabfa56cb4cab2844dcdf238614.tar.gz upstream-a23760cc4bc6daabfa56cb4cab2844dcdf238614.tar.bz2 upstream-a23760cc4bc6daabfa56cb4cab2844dcdf238614.zip |
mac80211: add uci support for the ad-hoc multicast rate setting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23637 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/mac80211/files/lib/wifi/mac80211.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index 67884238fd..2f8fedf24c 100644 --- a/package/mac80211/files/lib/wifi/mac80211.sh +++ b/package/mac80211/files/lib/wifi/mac80211.sh @@ -362,7 +362,14 @@ enable_mac80211() { adhoc) config_get bssid "$vif" bssid 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) if eval "type wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then |