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");