core: lax bssid check to allow format strings

This commit is contained in:
Maciej Krüger 2021-12-18 15:07:28 +01:00 committed by Alexander List
parent 5cd7ea70cd
commit 0867f38ca2

View File

@ -55,7 +55,7 @@ for _, config in ipairs({'wifi24', 'wifi5'}) do
if need_table({config, 'ibss'}, nil, false) then if need_table({config, 'ibss'}, nil, false) then
need_string_match(in_domain({config, 'ibss', 'ssid'}), '^' .. ('.?'):rep(32) .. '$') need_string_match(in_domain({config, 'ibss', 'ssid'}), '^' .. ('.?'):rep(32) .. '$')
need_string_match(in_domain({config, 'ibss', 'bssid'}), '^%x[02468aAcCeE]:%x%x:%x%x:%x%x:%x%x:%x%x$') -- need_string_match(in_domain({config, 'ibss', 'bssid'}), '^%x[02468aAcCeE]:%x%x:%x%x:%x%x:%x%x:%x%x$')
need_one_of({config, 'ibss', 'mcast_rate'}, supported_rates, false) need_one_of({config, 'ibss', 'mcast_rate'}, supported_rates, false)
need_number({config, 'ibss', 'vlan'}, false) need_number({config, 'ibss', 'vlan'}, false)
need_boolean({config, 'ibss', 'disabled'}, false) need_boolean({config, 'ibss', 'disabled'}, false)