Lines Matching refs:attr
1030 struct wps_parse_attr attr; in wps_validate_cred() local
1036 if (wps_parse_msg(&buf, &attr) < 0) { in wps_validate_cred()
1041 if (wps_validate_network_idx(attr.network_idx, 1) || in wps_validate_cred()
1042 wps_validate_ssid(attr.ssid, attr.ssid_len, 1) || in wps_validate_cred()
1043 wps_validate_auth_type(attr.auth_type, 1) || in wps_validate_cred()
1044 wps_validate_encr_type(attr.encr_type, 1) || in wps_validate_cred()
1045 wps_validate_network_key_index(attr.network_key_idx, 0) || in wps_validate_cred()
1046 wps_validate_network_key(attr.network_key, attr.network_key_len, in wps_validate_cred()
1047 attr.encr_type, 1) || in wps_validate_cred()
1048 wps_validate_mac_addr(attr.mac_addr, 1) || in wps_validate_cred()
1049 wps_validate_network_key_shareable(attr.network_key_shareable, 0)) in wps_validate_cred()
1085 struct wps_parse_attr attr; in wps_validate_beacon() local
1092 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_beacon()
1098 wps2 = attr.version2 != NULL; in wps_validate_beacon()
1099 sel_reg = attr.selected_registrar != NULL && in wps_validate_beacon()
1100 *attr.selected_registrar != 0; in wps_validate_beacon()
1101 if (wps_validate_version(attr.version, 1) || in wps_validate_beacon()
1102 wps_validate_wps_state(attr.wps_state, 1) || in wps_validate_beacon()
1103 wps_validate_ap_setup_locked(attr.ap_setup_locked, 0) || in wps_validate_beacon()
1104 wps_validate_selected_registrar(attr.selected_registrar, 0) || in wps_validate_beacon()
1105 wps_validate_dev_password_id(attr.dev_password_id, sel_reg) || in wps_validate_beacon()
1106 wps_validate_sel_reg_config_methods(attr.sel_reg_config_methods, in wps_validate_beacon()
1108 wps_validate_uuid_e(attr.uuid_e, 0) || in wps_validate_beacon()
1109 wps_validate_rf_bands(attr.rf_bands, 0) || in wps_validate_beacon()
1110 wps_validate_version2(attr.version2, wps2) || in wps_validate_beacon()
1111 wps_validate_authorized_macs(attr.authorized_macs, in wps_validate_beacon()
1112 attr.authorized_macs_len, 0)) { in wps_validate_beacon()
1124 struct wps_parse_attr attr; in wps_validate_beacon_probe_resp() local
1132 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_beacon_probe_resp()
1138 wps2 = attr.version2 != NULL; in wps_validate_beacon_probe_resp()
1139 sel_reg = attr.selected_registrar != NULL && in wps_validate_beacon_probe_resp()
1140 *attr.selected_registrar != 0; in wps_validate_beacon_probe_resp()
1141 if (wps_validate_version(attr.version, 1) || in wps_validate_beacon_probe_resp()
1142 wps_validate_wps_state(attr.wps_state, 1) || in wps_validate_beacon_probe_resp()
1143 wps_validate_ap_setup_locked(attr.ap_setup_locked, 0) || in wps_validate_beacon_probe_resp()
1144 wps_validate_selected_registrar(attr.selected_registrar, 0) || in wps_validate_beacon_probe_resp()
1145 wps_validate_dev_password_id(attr.dev_password_id, sel_reg) || in wps_validate_beacon_probe_resp()
1146 wps_validate_sel_reg_config_methods(attr.sel_reg_config_methods, in wps_validate_beacon_probe_resp()
1148 wps_validate_response_type(attr.response_type, probe) || in wps_validate_beacon_probe_resp()
1149 wps_validate_uuid_e(attr.uuid_e, probe) || in wps_validate_beacon_probe_resp()
1150 wps_validate_manufacturer(attr.manufacturer, attr.manufacturer_len, in wps_validate_beacon_probe_resp()
1152 wps_validate_model_name(attr.model_name, attr.model_name_len, in wps_validate_beacon_probe_resp()
1154 wps_validate_model_number(attr.model_number, attr.model_number_len, in wps_validate_beacon_probe_resp()
1156 wps_validate_serial_number(attr.serial_number, in wps_validate_beacon_probe_resp()
1157 attr.serial_number_len, probe) || in wps_validate_beacon_probe_resp()
1158 wps_validate_primary_dev_type(attr.primary_dev_type, probe) || in wps_validate_beacon_probe_resp()
1159 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, probe) || in wps_validate_beacon_probe_resp()
1160 wps_validate_ap_config_methods(attr.config_methods, wps2, probe) || in wps_validate_beacon_probe_resp()
1161 wps_validate_rf_bands(attr.rf_bands, 0) || in wps_validate_beacon_probe_resp()
1162 wps_validate_version2(attr.version2, wps2) || in wps_validate_beacon_probe_resp()
1163 wps_validate_authorized_macs(attr.authorized_macs, in wps_validate_beacon_probe_resp()
1164 attr.authorized_macs_len, 0)) { in wps_validate_beacon_probe_resp()
1182 struct wps_parse_attr attr; in wps_validate_probe_req() local
1190 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_probe_req()
1196 wps2 = attr.version2 != NULL; in wps_validate_probe_req()
1197 if (wps_validate_version(attr.version, 1) || in wps_validate_probe_req()
1198 wps_validate_request_type(attr.request_type, 1) || in wps_validate_probe_req()
1199 wps_validate_config_methods(attr.config_methods, wps2, 1) || in wps_validate_probe_req()
1200 wps_validate_uuid_e(attr.uuid_e, attr.uuid_r == NULL) || in wps_validate_probe_req()
1201 wps_validate_uuid_r(attr.uuid_r, attr.uuid_e == NULL) || in wps_validate_probe_req()
1202 wps_validate_primary_dev_type(attr.primary_dev_type, 1) || in wps_validate_probe_req()
1203 wps_validate_rf_bands(attr.rf_bands, 1) || in wps_validate_probe_req()
1204 wps_validate_assoc_state(attr.assoc_state, 1) || in wps_validate_probe_req()
1205 wps_validate_config_error(attr.config_error, 1) || in wps_validate_probe_req()
1206 wps_validate_dev_password_id(attr.dev_password_id, 1) || in wps_validate_probe_req()
1207 wps_validate_version2(attr.version2, wps2) || in wps_validate_probe_req()
1208 wps_validate_manufacturer(attr.manufacturer, attr.manufacturer_len, in wps_validate_probe_req()
1210 wps_validate_model_name(attr.model_name, attr.model_name_len, in wps_validate_probe_req()
1212 wps_validate_model_number(attr.model_number, attr.model_number_len, in wps_validate_probe_req()
1214 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, wps2) || in wps_validate_probe_req()
1215 wps_validate_request_to_enroll(attr.request_to_enroll, 0) || in wps_validate_probe_req()
1216 wps_validate_req_dev_type(attr.req_dev_type, attr.num_req_dev_type, in wps_validate_probe_req()
1229 struct wps_parse_attr attr; in wps_validate_assoc_req() local
1237 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_assoc_req()
1243 wps2 = attr.version2 != NULL; in wps_validate_assoc_req()
1244 if (wps_validate_version(attr.version, 1) || in wps_validate_assoc_req()
1245 wps_validate_request_type(attr.request_type, 1) || in wps_validate_assoc_req()
1246 wps_validate_version2(attr.version2, wps2)) { in wps_validate_assoc_req()
1258 struct wps_parse_attr attr; in wps_validate_assoc_resp() local
1266 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_assoc_resp()
1272 wps2 = attr.version2 != NULL; in wps_validate_assoc_resp()
1273 if (wps_validate_version(attr.version, 1) || in wps_validate_assoc_resp()
1274 wps_validate_response_type(attr.response_type, 1) || in wps_validate_assoc_resp()
1275 wps_validate_version2(attr.version2, wps2)) { in wps_validate_assoc_resp()
1287 struct wps_parse_attr attr; in wps_validate_m1() local
1294 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m1()
1300 wps2 = attr.version2 != NULL; in wps_validate_m1()
1301 if (wps_validate_version(attr.version, 1) || in wps_validate_m1()
1302 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m1()
1303 wps_validate_uuid_e(attr.uuid_e, 1) || in wps_validate_m1()
1304 wps_validate_mac_addr(attr.mac_addr, 1) || in wps_validate_m1()
1305 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_m1()
1306 wps_validate_public_key(attr.public_key, attr.public_key_len, 1) || in wps_validate_m1()
1307 wps_validate_auth_type_flags(attr.auth_type_flags, 1) || in wps_validate_m1()
1308 wps_validate_encr_type_flags(attr.encr_type_flags, 1) || in wps_validate_m1()
1309 wps_validate_conn_type_flags(attr.conn_type_flags, 1) || in wps_validate_m1()
1310 wps_validate_config_methods(attr.config_methods, wps2, 1) || in wps_validate_m1()
1311 wps_validate_wps_state(attr.wps_state, 1) || in wps_validate_m1()
1312 wps_validate_manufacturer(attr.manufacturer, attr.manufacturer_len, in wps_validate_m1()
1314 wps_validate_model_name(attr.model_name, attr.model_name_len, 1) || in wps_validate_m1()
1315 wps_validate_model_number(attr.model_number, attr.model_number_len, in wps_validate_m1()
1317 wps_validate_serial_number(attr.serial_number, in wps_validate_m1()
1318 attr.serial_number_len, 1) || in wps_validate_m1()
1319 wps_validate_primary_dev_type(attr.primary_dev_type, 1) || in wps_validate_m1()
1320 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, 1) || in wps_validate_m1()
1321 wps_validate_rf_bands(attr.rf_bands, 1) || in wps_validate_m1()
1322 wps_validate_assoc_state(attr.assoc_state, 1) || in wps_validate_m1()
1323 wps_validate_dev_password_id(attr.dev_password_id, 1) || in wps_validate_m1()
1324 wps_validate_config_error(attr.config_error, 1) || in wps_validate_m1()
1325 wps_validate_os_version(attr.os_version, 1) || in wps_validate_m1()
1326 wps_validate_version2(attr.version2, wps2) || in wps_validate_m1()
1327 wps_validate_request_to_enroll(attr.request_to_enroll, 0)) { in wps_validate_m1()
1343 struct wps_parse_attr attr; in wps_validate_m2() local
1350 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m2()
1356 wps2 = attr.version2 != NULL; in wps_validate_m2()
1357 if (wps_validate_version(attr.version, 1) || in wps_validate_m2()
1358 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m2()
1359 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_m2()
1360 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_m2()
1361 wps_validate_uuid_r(attr.uuid_r, 1) || in wps_validate_m2()
1362 wps_validate_public_key(attr.public_key, attr.public_key_len, 1) || in wps_validate_m2()
1363 wps_validate_auth_type_flags(attr.auth_type_flags, 1) || in wps_validate_m2()
1364 wps_validate_encr_type_flags(attr.encr_type_flags, 1) || in wps_validate_m2()
1365 wps_validate_conn_type_flags(attr.conn_type_flags, 1) || in wps_validate_m2()
1366 wps_validate_config_methods(attr.config_methods, wps2, 1) || in wps_validate_m2()
1367 wps_validate_manufacturer(attr.manufacturer, attr.manufacturer_len, in wps_validate_m2()
1369 wps_validate_model_name(attr.model_name, attr.model_name_len, 1) || in wps_validate_m2()
1370 wps_validate_model_number(attr.model_number, attr.model_number_len, in wps_validate_m2()
1372 wps_validate_serial_number(attr.serial_number, in wps_validate_m2()
1373 attr.serial_number_len, 1) || in wps_validate_m2()
1374 wps_validate_primary_dev_type(attr.primary_dev_type, 1) || in wps_validate_m2()
1375 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, 1) || in wps_validate_m2()
1376 wps_validate_rf_bands(attr.rf_bands, 1) || in wps_validate_m2()
1377 wps_validate_assoc_state(attr.assoc_state, 1) || in wps_validate_m2()
1378 wps_validate_config_error(attr.config_error, 1) || in wps_validate_m2()
1379 wps_validate_dev_password_id(attr.dev_password_id, 1) || in wps_validate_m2()
1380 wps_validate_os_version(attr.os_version, 1) || in wps_validate_m2()
1381 wps_validate_version2(attr.version2, wps2) || in wps_validate_m2()
1382 wps_validate_authenticator(attr.authenticator, 1)) { in wps_validate_m2()
1398 struct wps_parse_attr attr; in wps_validate_m2d() local
1405 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m2d()
1411 wps2 = attr.version2 != NULL; in wps_validate_m2d()
1412 if (wps_validate_version(attr.version, 1) || in wps_validate_m2d()
1413 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m2d()
1414 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_m2d()
1415 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_m2d()
1416 wps_validate_uuid_r(attr.uuid_r, 1) || in wps_validate_m2d()
1417 wps_validate_auth_type_flags(attr.auth_type_flags, 1) || in wps_validate_m2d()
1418 wps_validate_encr_type_flags(attr.encr_type_flags, 1) || in wps_validate_m2d()
1419 wps_validate_conn_type_flags(attr.conn_type_flags, 1) || in wps_validate_m2d()
1420 wps_validate_config_methods(attr.config_methods, wps2, 1) || in wps_validate_m2d()
1421 wps_validate_manufacturer(attr.manufacturer, attr.manufacturer_len, in wps_validate_m2d()
1423 wps_validate_model_name(attr.model_name, attr.model_name_len, 1) || in wps_validate_m2d()
1424 wps_validate_model_number(attr.model_number, attr.model_number_len, in wps_validate_m2d()
1426 wps_validate_serial_number(attr.serial_number, in wps_validate_m2d()
1427 attr.serial_number_len, 1) || in wps_validate_m2d()
1428 wps_validate_primary_dev_type(attr.primary_dev_type, 1) || in wps_validate_m2d()
1429 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, 1) || in wps_validate_m2d()
1430 wps_validate_rf_bands(attr.rf_bands, 1) || in wps_validate_m2d()
1431 wps_validate_assoc_state(attr.assoc_state, 1) || in wps_validate_m2d()
1432 wps_validate_config_error(attr.config_error, 1) || in wps_validate_m2d()
1433 wps_validate_os_version(attr.os_version, 1) || in wps_validate_m2d()
1434 wps_validate_version2(attr.version2, wps2)) { in wps_validate_m2d()
1450 struct wps_parse_attr attr; in wps_validate_m3() local
1457 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m3()
1463 wps2 = attr.version2 != NULL; in wps_validate_m3()
1464 if (wps_validate_version(attr.version, 1) || in wps_validate_m3()
1465 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m3()
1466 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_m3()
1467 wps_validate_e_hash1(attr.e_hash1, 1) || in wps_validate_m3()
1468 wps_validate_e_hash2(attr.e_hash2, 1) || in wps_validate_m3()
1469 wps_validate_version2(attr.version2, wps2) || in wps_validate_m3()
1470 wps_validate_authenticator(attr.authenticator, 1)) { in wps_validate_m3()
1486 struct wps_parse_attr attr; in wps_validate_m4() local
1493 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m4()
1499 wps2 = attr.version2 != NULL; in wps_validate_m4()
1500 if (wps_validate_version(attr.version, 1) || in wps_validate_m4()
1501 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m4()
1502 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_m4()
1503 wps_validate_r_hash1(attr.r_hash1, 1) || in wps_validate_m4()
1504 wps_validate_r_hash2(attr.r_hash2, 1) || in wps_validate_m4()
1505 wps_validate_encr_settings(attr.encr_settings, in wps_validate_m4()
1506 attr.encr_settings_len, 1) || in wps_validate_m4()
1507 wps_validate_version2(attr.version2, wps2) || in wps_validate_m4()
1508 wps_validate_authenticator(attr.authenticator, 1)) { in wps_validate_m4()
1524 struct wps_parse_attr attr; in wps_validate_m4_encr() local
1531 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m4_encr()
1537 if (wps_validate_r_snonce1(attr.r_snonce1, 1) || in wps_validate_m4_encr()
1538 wps_validate_key_wrap_auth(attr.key_wrap_auth, 1)) { in wps_validate_m4_encr()
1555 struct wps_parse_attr attr; in wps_validate_m5() local
1562 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m5()
1568 wps2 = attr.version2 != NULL; in wps_validate_m5()
1569 if (wps_validate_version(attr.version, 1) || in wps_validate_m5()
1570 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m5()
1571 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_m5()
1572 wps_validate_encr_settings(attr.encr_settings, in wps_validate_m5()
1573 attr.encr_settings_len, 1) || in wps_validate_m5()
1574 wps_validate_version2(attr.version2, wps2) || in wps_validate_m5()
1575 wps_validate_authenticator(attr.authenticator, 1)) { in wps_validate_m5()
1591 struct wps_parse_attr attr; in wps_validate_m5_encr() local
1598 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m5_encr()
1604 if (wps_validate_e_snonce1(attr.e_snonce1, 1) || in wps_validate_m5_encr()
1605 wps_validate_key_wrap_auth(attr.key_wrap_auth, 1)) { in wps_validate_m5_encr()
1622 struct wps_parse_attr attr; in wps_validate_m6() local
1629 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m6()
1635 wps2 = attr.version2 != NULL; in wps_validate_m6()
1636 if (wps_validate_version(attr.version, 1) || in wps_validate_m6()
1637 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m6()
1638 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_m6()
1639 wps_validate_encr_settings(attr.encr_settings, in wps_validate_m6()
1640 attr.encr_settings_len, 1) || in wps_validate_m6()
1641 wps_validate_version2(attr.version2, wps2) || in wps_validate_m6()
1642 wps_validate_authenticator(attr.authenticator, 1)) { in wps_validate_m6()
1658 struct wps_parse_attr attr; in wps_validate_m6_encr() local
1665 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m6_encr()
1671 if (wps_validate_r_snonce2(attr.r_snonce2, 1) || in wps_validate_m6_encr()
1672 wps_validate_key_wrap_auth(attr.key_wrap_auth, 1)) { in wps_validate_m6_encr()
1689 struct wps_parse_attr attr; in wps_validate_m7() local
1696 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m7()
1702 wps2 = attr.version2 != NULL; in wps_validate_m7()
1703 if (wps_validate_version(attr.version, 1) || in wps_validate_m7()
1704 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m7()
1705 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_m7()
1706 wps_validate_encr_settings(attr.encr_settings, in wps_validate_m7()
1707 attr.encr_settings_len, 1) || in wps_validate_m7()
1708 wps_validate_settings_delay_time(attr.settings_delay_time, 0) || in wps_validate_m7()
1709 wps_validate_version2(attr.version2, wps2) || in wps_validate_m7()
1710 wps_validate_authenticator(attr.authenticator, 1)) { in wps_validate_m7()
1726 struct wps_parse_attr attr; in wps_validate_m7_encr() local
1733 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m7_encr()
1739 if (wps_validate_e_snonce2(attr.e_snonce2, 1) || in wps_validate_m7_encr()
1740 wps_validate_ssid(attr.ssid, attr.ssid_len, !ap) || in wps_validate_m7_encr()
1741 wps_validate_mac_addr(attr.mac_addr, !ap) || in wps_validate_m7_encr()
1742 wps_validate_auth_type(attr.auth_type, !ap) || in wps_validate_m7_encr()
1743 wps_validate_encr_type(attr.encr_type, !ap) || in wps_validate_m7_encr()
1744 wps_validate_network_key_index(attr.network_key_idx, 0) || in wps_validate_m7_encr()
1745 wps_validate_network_key(attr.network_key, attr.network_key_len, in wps_validate_m7_encr()
1746 attr.encr_type, !ap) || in wps_validate_m7_encr()
1747 wps_validate_key_wrap_auth(attr.key_wrap_auth, 1)) { in wps_validate_m7_encr()
1764 struct wps_parse_attr attr; in wps_validate_m8() local
1771 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m8()
1777 wps2 = attr.version2 != NULL; in wps_validate_m8()
1778 if (wps_validate_version(attr.version, 1) || in wps_validate_m8()
1779 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m8()
1780 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_m8()
1781 wps_validate_encr_settings(attr.encr_settings, in wps_validate_m8()
1782 attr.encr_settings_len, 1) || in wps_validate_m8()
1783 wps_validate_version2(attr.version2, wps2) || in wps_validate_m8()
1784 wps_validate_authenticator(attr.authenticator, 1)) { in wps_validate_m8()
1800 struct wps_parse_attr attr; in wps_validate_m8_encr() local
1807 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m8_encr()
1813 if (wps_validate_ssid(attr.ssid, attr.ssid_len, ap) || in wps_validate_m8_encr()
1814 wps_validate_auth_type(attr.auth_type, ap) || in wps_validate_m8_encr()
1815 wps_validate_encr_type(attr.encr_type, ap) || in wps_validate_m8_encr()
1816 wps_validate_network_key_index(attr.network_key_idx, 0) || in wps_validate_m8_encr()
1817 wps_validate_mac_addr(attr.mac_addr, ap) || in wps_validate_m8_encr()
1818 wps_validate_credential(attr.cred, attr.cred_len, attr.num_cred, in wps_validate_m8_encr()
1820 wps_validate_key_wrap_auth(attr.key_wrap_auth, 1)) { in wps_validate_m8_encr()
1837 struct wps_parse_attr attr; in wps_validate_wsc_ack() local
1844 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_wsc_ack()
1850 wps2 = attr.version2 != NULL; in wps_validate_wsc_ack()
1851 if (wps_validate_version(attr.version, 1) || in wps_validate_wsc_ack()
1852 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_wsc_ack()
1853 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_wsc_ack()
1854 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_wsc_ack()
1855 wps_validate_version2(attr.version2, wps2)) { in wps_validate_wsc_ack()
1871 struct wps_parse_attr attr; in wps_validate_wsc_nack() local
1878 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_wsc_nack()
1884 wps2 = attr.version2 != NULL; in wps_validate_wsc_nack()
1885 if (wps_validate_version(attr.version, 1) || in wps_validate_wsc_nack()
1886 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_wsc_nack()
1887 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_wsc_nack()
1888 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_wsc_nack()
1889 wps_validate_config_error(attr.config_error, 1) || in wps_validate_wsc_nack()
1890 wps_validate_version2(attr.version2, wps2)) { in wps_validate_wsc_nack()
1906 struct wps_parse_attr attr; in wps_validate_wsc_done() local
1913 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_wsc_done()
1919 wps2 = attr.version2 != NULL; in wps_validate_wsc_done()
1920 if (wps_validate_version(attr.version, 1) || in wps_validate_wsc_done()
1921 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_wsc_done()
1922 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_wsc_done()
1923 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_wsc_done()
1924 wps_validate_version2(attr.version2, wps2)) { in wps_validate_wsc_done()
1940 struct wps_parse_attr attr; in wps_validate_upnp_set_selected_registrar() local
1949 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_upnp_set_selected_registrar()
1955 wps2 = attr.version2 != NULL; in wps_validate_upnp_set_selected_registrar()
1956 sel_reg = attr.selected_registrar != NULL && in wps_validate_upnp_set_selected_registrar()
1957 *attr.selected_registrar != 0; in wps_validate_upnp_set_selected_registrar()
1958 if (wps_validate_version(attr.version, 1) || in wps_validate_upnp_set_selected_registrar()
1959 wps_validate_dev_password_id(attr.dev_password_id, sel_reg) || in wps_validate_upnp_set_selected_registrar()
1960 wps_validate_sel_reg_config_methods(attr.sel_reg_config_methods, in wps_validate_upnp_set_selected_registrar()
1962 wps_validate_version2(attr.version2, wps2) || in wps_validate_upnp_set_selected_registrar()
1963 wps_validate_authorized_macs(attr.authorized_macs, in wps_validate_upnp_set_selected_registrar()
1964 attr.authorized_macs_len, wps2) || in wps_validate_upnp_set_selected_registrar()
1965 wps_validate_uuid_r(attr.uuid_r, wps2)) { in wps_validate_upnp_set_selected_registrar()