Use the actual HW platform for generating QoS config.

We need to use 'brcm_fw_tool' instead of /proc/cpuinfo
to check the hardware platform. The /proc/cpuinfo API
is not stable. It only works as expected for BCM96846.
This commit is contained in:
Markus Gothe 2021-06-16 14:16:16 +02:00 committed by Sukru Senli
parent 2778420bcd
commit ecba6c9067

View file

@ -3,7 +3,7 @@
. /lib/functions.sh
ethwan="$(db -q get hw.board.ethernetWanPort)"
cpu_model="$(grep Hardware /proc/cpuinfo | awk '{print$NF}')"
cpu_model="$(brcm_fw_tool -k info)"
generate_queue(){
section="$1"
@ -19,7 +19,7 @@ generate_queue(){
if [ $is_lan -eq 1 ]; then
case $cpu_model in
BCM968*) no_of_q="0 1 2 3" ;;
68*) no_of_q="0 1 2 3" ;;
esac
fi