map-controller: validate thresholds in sta_steering section of config

Signed-off-by: Filip Matusiak <filip.matusiak@iopsys.eu>
This commit is contained in:
Filip Matusiak 2022-12-20 14:43:07 +01:00 committed by Jakob Olsson
parent 834bab34ab
commit 87a71c7389

View file

@ -45,7 +45,13 @@ validate_sta_steering_section() {
'use_bcn_metrics:bool:false' \
'use_usta_metrics:bool:false' \
'bandsteer:bool:false' \
'diffsnr:range(0,100)'
'diffsnr:range(0,100)' \
'rcpi_threshold_2g:range(0,220)' \
'rcpi_threshold_5g:range(0,220)' \
'rcpi_threshold_6g:range(0,220)' \
'report_rcpi_threshold_2g:range(0,220)' \
'report_rcpi_threshold_5g:range(0,220)' \
'report_rcpi_threshold_6g:range(0,220)'
[ "$?" -ne 0 ] && {
logger -s -t "mapcontroller" "Validation of sta_steering section failed"