Skip to content

Commit

Permalink
Merge branch 'bugfix/wps_workaround_for_Telstra_AP' into 'master'
Browse files Browse the repository at this point in the history
wps: Relax the check on older config methods in case of WPS2.0

See merge request espressif/esp-idf!5781
  • Loading branch information
jack0c committed Aug 23, 2019
2 parents 99a58e5 + 19a1af8 commit 8db44f6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions components/wpa_supplicant/src/wps/wps_validate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 8db44f6

Please sign in to comment.