map-agent: add missing option validation

This commit is contained in:
Jakob Olsson 2022-05-16 12:59:50 +02:00
parent de51136608
commit b1750ac6ba

View file

@ -80,7 +80,8 @@ validate_agent_section() {
'vlan_segregation:bool:false' \
'resend_num:uinteger:0' \
'dyn_cntlr_sync:bool:true' \
'island_prevention:bool:true'
'island_prevention:bool:false' \
'eth_onboards_wifi_bhs:bool:false'
[ "$?" -ne 0 ] && {
@ -148,7 +149,8 @@ validate_radio_section() {
'include_sta_stats:bool:false' \
'include_sta_metric:bool:false' \
'rcpi_hysteresis_margin:range(0,255)' \
'report_util_threshold:range(0,255)'
'report_util_threshold:range(0,255)' \
'encryption:or("sae", "psk2", "sae-mixed")'
[ "$?" -ne 0 ] && {
logger -s -t "mapagent" "Validation of radio section failed"