mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/wps_workaround_for_Telstra_AP_v3.2' into 'release/v3.2'
wps: Relax the check on older config methods in case of WPS2.0 (backport v3.2) See merge request espressif/esp-idf!5922
This commit is contained in:
commit
5adc487133
@ -96,23 +96,11 @@ static int wps_validate_response_type(const u8 *response_type, int mandatory)
|
||||
static int valid_config_methods(u16 val, int wps2)
|
||||
{
|
||||
if (wps2) {
|
||||
if ((val & 0x6000) && !(val & WPS_CONFIG_DISPLAY)) {
|
||||
wpa_printf(MSG_INFO, "WPS-STRICT: Physical/Virtual "
|
||||
"Display flag without old Display flag "
|
||||
"set");
|
||||
return 0;
|
||||
}
|
||||
if (!(val & 0x6000) && (val & WPS_CONFIG_DISPLAY)) {
|
||||
wpa_printf(MSG_INFO, "WPS-STRICT: Display flag "
|
||||
"without Physical/Virtual Display flag");
|
||||
return 0;
|
||||
}
|
||||
if ((val & 0x0600) && !(val & WPS_CONFIG_PUSHBUTTON)) {
|
||||
wpa_printf(MSG_INFO, "WPS-STRICT: Physical/Virtual "
|
||||
"PushButton flag without old PushButton "
|
||||
"flag set");
|
||||
return 0;
|
||||
}
|
||||
if (!(val & 0x0600) && (val & WPS_CONFIG_PUSHBUTTON)) {
|
||||
wpa_printf(MSG_INFO, "WPS-STRICT: PushButton flag "
|
||||
"without Physical/Virtual PushButton flag");
|
||||
|
Loading…
Reference in New Issue
Block a user