deactivate 802.11b

Hiermit wird 802.11b auf den Knoten deaktiviert

Signed-off-by: Christian Dresel <fff@chrisi01.de>
Signed-off-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
Christian Dresel 2017-08-19 14:34:41 +02:00 committed by Tim Niemeyer
parent 2567b53334
commit 15d514bbd1
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-wireless
PKG_VERSION:=0.0.1
PKG_VERSION:=0.0.2
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/fff-wireless

View File

@ -37,8 +37,14 @@ wifiAddPhy() {
set wireless.${radio}.hwmode='${hwmode}'
set wireless.${radio}.htmode='HT20'
set wireless.${radio}.country='DE'
commit wireless
__EOF__
if [ "$hwmode" = "11g" ]; then
uci batch <<-__EOF__
set wireless.${radio}.supported_rates='6000 9000 12000 18000 24000 36000 48000 54000'
set wireless.${radio}.basic_rate='6000 9000 18000 36000 54000'
__EOF__
fi
uci commit wireless
echo "${radio}"
return 0