You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
730 B
Bash

#!/bin/sh
#
# Copyright (C) 2015-2016 devolo AG
#
if [ -f /lib/ar71xx.sh ]; then
PLATFORM=ar71xx
. /lib/ar71xx.sh
elif [ -f /lib/ipq806x.sh ]; then
PLATFORM=ipq806x
. /lib/ipq806x.sh
fi
. /lib/functions.sh
board=$(${PLATFORM}_board_name)
set_wifi_son_config() {
uci set wireless.son='son'
uci set wireless.son.enabled='1'
uci set wireless.son.airtimefairness='1'
case "$board" in
dlan-pro-1200-ac|\
dlan-1000-ac)
uci set wireless.son.bandsteering='1'
;;
dlan-pro-1200-n|\
dlan-550-wifi)
uci set wireless.son.bandsteering='0'
;;
esac
uci set wireless.son.ieee80211k='1'
uci set wireless.son.ieee80211v='1'
uci set wireless.son.ieee80211r='0'
uci commit wireless
}
set_wifi_son_config
exit 0