aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-25 23:51:12 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-10-25 23:51:12 +0000
commitc173d41012731946e65870194fa46fa83c3554ba (patch)
tree78292fc2deec1ff99afc05f872b8ed395e8156c6 /package/mac80211
parentf65c625fda728788b16b1b6422a56258c702d8e0 (diff)
downloadupstream-c173d41012731946e65870194fa46fa83c3554ba.tar.gz
upstream-c173d41012731946e65870194fa46fa83c3554ba.tar.bz2
upstream-c173d41012731946e65870194fa46fa83c3554ba.zip
mac80211: add uci support for the ad-hoc multicast rate setting
SVN-Revision: 23637
Diffstat (limited to 'package/mac80211')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh9
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