forked from freifunk-franken/firmware
Bump core, packages and routing. Remove upstreamed build patches. Remove ath10k memory hack and use the newly added ath10k-smallbuffers variant instead, but only for devices which actually require it (and therefore use ath10k-ct-smallbuffers by default). Adjust for the newly introduced band option for wireless devices, which is now emitted by OpenWrt by default. Signed-off-by: Fabian Bläse <fabian@blaese.de> Reviewed-by: Johannes Kimmel <fff@bareminimum.eu>
31 lines
629 B
Plaintext
31 lines
629 B
Plaintext
# SPDX-License-Identifier: GPL-3.0-only
|
|
#
|
|
# Copyright 2016 Tim Niemeyer
|
|
|
|
wifiListRadio() {
|
|
if [ $# -ne "0" ]
|
|
then
|
|
echo "Usage: wifiListRadio"
|
|
return 1
|
|
fi
|
|
|
|
uci -q show wireless | sed -n 's,.*\.\([a-z0-9]*\)=wifi-device,\1,p'
|
|
return 0
|
|
}
|
|
|
|
wifiGetFreq() {
|
|
if [ $# -ne "1" ]
|
|
then
|
|
echo "Usage: wifiGetFreq <radio>"
|
|
return 1
|
|
fi
|
|
|
|
local radio=$1
|
|
|
|
# Use uci radio band for switching, since this is always set by firmware (effectively hard-coded)
|
|
# Do not use channel, as this might be "auto" for both
|
|
[ "$(uci get "wireless.${radio}.band")" = "5g" ] && echo "5" || echo "2"
|
|
return 0
|
|
}
|
|
# vim: set noexpandtab:tabstop=4
|