Disable 802.11b rates using OpenWRT option

Instead of manually overwriting basic and supported rates,
this patch makes use of a new OpenWRT option "legacy_rates",
which disables 802.11b data rates.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Christian Dresel <fff@chrisi01.de>
This commit is contained in:
Fabian Bläse 2018-11-26 22:49:53 +01:00 committed by Adrian Schmutzler
parent ef00054916
commit b66f04012b
1 changed files with 1 additions and 2 deletions

View File

@ -57,8 +57,7 @@ wifiAddPhy() {
__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'
set wireless.${radio}.legacy_rates='0'
__EOF__
fi
uci commit wireless