Use json_get_vars in order to avoid getting bogus values when extra properties
are present
Signed-off-by: Felix Fietkau <nbd@nbd.name>
local ref_path="$3"
json_select "$key"
- json_get_values path
+ json_get_vars path
json_select ..
[ "${ref_path%+*}" = "$path" ] && fallback_phy=$key
json_load_file /etc/board.json
json_select wlan
json_select "${phy%.*}" || return 0
- json_get_values path
+ json_get_vars path
prev_phy="$(iwinfo nl80211 phyname "path=$path${suffix:++$suffix}")"
[ -n "$prev_phy" ] || return 0