From 87a71c738951aebd063b7fee8e58df01d1778d44 Mon Sep 17 00:00:00 2001 From: Filip Matusiak Date: Tue, 20 Dec 2022 14:43:07 +0100 Subject: [PATCH] map-controller: validate thresholds in sta_steering section of config Signed-off-by: Filip Matusiak --- map-controller/files/etc/init.d/mapcontroller | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/map-controller/files/etc/init.d/mapcontroller b/map-controller/files/etc/init.d/mapcontroller index a212e84e3..e88795e77 100755 --- a/map-controller/files/etc/init.d/mapcontroller +++ b/map-controller/files/etc/init.d/mapcontroller @@ -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"