Lines Matching refs:attr
1028 struct wps_parse_attr attr; in wps_validate_cred() local
1034 if (wps_parse_msg(&buf, &attr) < 0) { in wps_validate_cred()
1039 if (wps_validate_network_idx(attr.network_idx, 1) || in wps_validate_cred()
1040 wps_validate_ssid(attr.ssid, attr.ssid_len, 1) || in wps_validate_cred()
1041 wps_validate_auth_type(attr.auth_type, 1) || in wps_validate_cred()
1042 wps_validate_encr_type(attr.encr_type, 1) || in wps_validate_cred()
1043 wps_validate_network_key_index(attr.network_key_idx, 0) || in wps_validate_cred()
1044 wps_validate_network_key(attr.network_key, attr.network_key_len, in wps_validate_cred()
1045 attr.encr_type, 1) || in wps_validate_cred()
1046 wps_validate_mac_addr(attr.mac_addr, 1) || in wps_validate_cred()
1047 wps_validate_network_key_shareable(attr.network_key_shareable, 0)) in wps_validate_cred()
1083 struct wps_parse_attr attr; in wps_validate_beacon() local
1090 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_beacon()
1096 wps2 = attr.version2 != NULL; in wps_validate_beacon()
1097 sel_reg = attr.selected_registrar != NULL && in wps_validate_beacon()
1098 *attr.selected_registrar != 0; in wps_validate_beacon()
1099 if (wps_validate_version(attr.version, 1) || in wps_validate_beacon()
1100 wps_validate_wps_state(attr.wps_state, 1) || in wps_validate_beacon()
1101 wps_validate_ap_setup_locked(attr.ap_setup_locked, 0) || in wps_validate_beacon()
1102 wps_validate_selected_registrar(attr.selected_registrar, 0) || in wps_validate_beacon()
1103 wps_validate_dev_password_id(attr.dev_password_id, sel_reg) || in wps_validate_beacon()
1104 wps_validate_sel_reg_config_methods(attr.sel_reg_config_methods, in wps_validate_beacon()
1106 wps_validate_uuid_e(attr.uuid_e, 0) || in wps_validate_beacon()
1107 wps_validate_rf_bands(attr.rf_bands, 0) || in wps_validate_beacon()
1108 wps_validate_version2(attr.version2, wps2) || in wps_validate_beacon()
1109 wps_validate_authorized_macs(attr.authorized_macs, in wps_validate_beacon()
1110 attr.authorized_macs_len, 0)) { in wps_validate_beacon()
1122 struct wps_parse_attr attr; in wps_validate_beacon_probe_resp() local
1130 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_beacon_probe_resp()
1136 wps2 = attr.version2 != NULL; in wps_validate_beacon_probe_resp()
1137 sel_reg = attr.selected_registrar != NULL && in wps_validate_beacon_probe_resp()
1138 *attr.selected_registrar != 0; in wps_validate_beacon_probe_resp()
1139 if (wps_validate_version(attr.version, 1) || in wps_validate_beacon_probe_resp()
1140 wps_validate_wps_state(attr.wps_state, 1) || in wps_validate_beacon_probe_resp()
1141 wps_validate_ap_setup_locked(attr.ap_setup_locked, 0) || in wps_validate_beacon_probe_resp()
1142 wps_validate_selected_registrar(attr.selected_registrar, 0) || in wps_validate_beacon_probe_resp()
1143 wps_validate_dev_password_id(attr.dev_password_id, sel_reg) || in wps_validate_beacon_probe_resp()
1144 wps_validate_sel_reg_config_methods(attr.sel_reg_config_methods, in wps_validate_beacon_probe_resp()
1146 wps_validate_response_type(attr.response_type, probe) || in wps_validate_beacon_probe_resp()
1147 wps_validate_uuid_e(attr.uuid_e, probe) || in wps_validate_beacon_probe_resp()
1148 wps_validate_manufacturer(attr.manufacturer, attr.manufacturer_len, in wps_validate_beacon_probe_resp()
1150 wps_validate_model_name(attr.model_name, attr.model_name_len, in wps_validate_beacon_probe_resp()
1152 wps_validate_model_number(attr.model_number, attr.model_number_len, in wps_validate_beacon_probe_resp()
1154 wps_validate_serial_number(attr.serial_number, in wps_validate_beacon_probe_resp()
1155 attr.serial_number_len, probe) || in wps_validate_beacon_probe_resp()
1156 wps_validate_primary_dev_type(attr.primary_dev_type, probe) || in wps_validate_beacon_probe_resp()
1157 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, probe) || in wps_validate_beacon_probe_resp()
1158 wps_validate_ap_config_methods(attr.config_methods, wps2, probe) || in wps_validate_beacon_probe_resp()
1159 wps_validate_rf_bands(attr.rf_bands, 0) || in wps_validate_beacon_probe_resp()
1160 wps_validate_version2(attr.version2, wps2) || in wps_validate_beacon_probe_resp()
1161 wps_validate_authorized_macs(attr.authorized_macs, in wps_validate_beacon_probe_resp()
1162 attr.authorized_macs_len, 0)) { in wps_validate_beacon_probe_resp()
1180 struct wps_parse_attr attr; in wps_validate_probe_req() local
1188 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_probe_req()
1194 wps2 = attr.version2 != NULL; in wps_validate_probe_req()
1195 if (wps_validate_version(attr.version, 1) || in wps_validate_probe_req()
1196 wps_validate_request_type(attr.request_type, 1) || in wps_validate_probe_req()
1197 wps_validate_config_methods(attr.config_methods, wps2, 1) || in wps_validate_probe_req()
1198 wps_validate_uuid_e(attr.uuid_e, attr.uuid_r == NULL) || in wps_validate_probe_req()
1199 wps_validate_uuid_r(attr.uuid_r, attr.uuid_e == NULL) || in wps_validate_probe_req()
1200 wps_validate_primary_dev_type(attr.primary_dev_type, 1) || in wps_validate_probe_req()
1201 wps_validate_rf_bands(attr.rf_bands, 1) || in wps_validate_probe_req()
1202 wps_validate_assoc_state(attr.assoc_state, 1) || in wps_validate_probe_req()
1203 wps_validate_config_error(attr.config_error, 1) || in wps_validate_probe_req()
1204 wps_validate_dev_password_id(attr.dev_password_id, 1) || in wps_validate_probe_req()
1205 wps_validate_version2(attr.version2, wps2) || in wps_validate_probe_req()
1206 wps_validate_manufacturer(attr.manufacturer, attr.manufacturer_len, in wps_validate_probe_req()
1208 wps_validate_model_name(attr.model_name, attr.model_name_len, in wps_validate_probe_req()
1210 wps_validate_model_number(attr.model_number, attr.model_number_len, in wps_validate_probe_req()
1212 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, wps2) || in wps_validate_probe_req()
1213 wps_validate_request_to_enroll(attr.request_to_enroll, 0) || in wps_validate_probe_req()
1214 wps_validate_req_dev_type(attr.req_dev_type, attr.num_req_dev_type, in wps_validate_probe_req()
1227 struct wps_parse_attr attr; in wps_validate_assoc_req() local
1235 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_assoc_req()
1241 wps2 = attr.version2 != NULL; in wps_validate_assoc_req()
1242 if (wps_validate_version(attr.version, 1) || in wps_validate_assoc_req()
1243 wps_validate_request_type(attr.request_type, 1) || in wps_validate_assoc_req()
1244 wps_validate_version2(attr.version2, wps2)) { in wps_validate_assoc_req()
1256 struct wps_parse_attr attr; in wps_validate_assoc_resp() local
1264 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_assoc_resp()
1270 wps2 = attr.version2 != NULL; in wps_validate_assoc_resp()
1271 if (wps_validate_version(attr.version, 1) || in wps_validate_assoc_resp()
1272 wps_validate_response_type(attr.response_type, 1) || in wps_validate_assoc_resp()
1273 wps_validate_version2(attr.version2, wps2)) { in wps_validate_assoc_resp()
1285 struct wps_parse_attr attr; in wps_validate_m1() local
1292 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m1()
1298 wps2 = attr.version2 != NULL; in wps_validate_m1()
1299 if (wps_validate_version(attr.version, 1) || in wps_validate_m1()
1300 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m1()
1301 wps_validate_uuid_e(attr.uuid_e, 1) || in wps_validate_m1()
1302 wps_validate_mac_addr(attr.mac_addr, 1) || in wps_validate_m1()
1303 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_m1()
1304 wps_validate_public_key(attr.public_key, attr.public_key_len, 1) || in wps_validate_m1()
1305 wps_validate_auth_type_flags(attr.auth_type_flags, 1) || in wps_validate_m1()
1306 wps_validate_encr_type_flags(attr.encr_type_flags, 1) || in wps_validate_m1()
1307 wps_validate_conn_type_flags(attr.conn_type_flags, 1) || in wps_validate_m1()
1308 wps_validate_config_methods(attr.config_methods, wps2, 1) || in wps_validate_m1()
1309 wps_validate_wps_state(attr.wps_state, 1) || in wps_validate_m1()
1310 wps_validate_manufacturer(attr.manufacturer, attr.manufacturer_len, in wps_validate_m1()
1312 wps_validate_model_name(attr.model_name, attr.model_name_len, 1) || in wps_validate_m1()
1313 wps_validate_model_number(attr.model_number, attr.model_number_len, in wps_validate_m1()
1315 wps_validate_serial_number(attr.serial_number, in wps_validate_m1()
1316 attr.serial_number_len, 1) || in wps_validate_m1()
1317 wps_validate_primary_dev_type(attr.primary_dev_type, 1) || in wps_validate_m1()
1318 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, 1) || in wps_validate_m1()
1319 wps_validate_rf_bands(attr.rf_bands, 1) || in wps_validate_m1()
1320 wps_validate_assoc_state(attr.assoc_state, 1) || in wps_validate_m1()
1321 wps_validate_dev_password_id(attr.dev_password_id, 1) || in wps_validate_m1()
1322 wps_validate_config_error(attr.config_error, 1) || in wps_validate_m1()
1323 wps_validate_os_version(attr.os_version, 1) || in wps_validate_m1()
1324 wps_validate_version2(attr.version2, wps2) || in wps_validate_m1()
1325 wps_validate_request_to_enroll(attr.request_to_enroll, 0)) { in wps_validate_m1()
1341 struct wps_parse_attr attr; in wps_validate_m2() local
1348 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m2()
1354 wps2 = attr.version2 != NULL; in wps_validate_m2()
1355 if (wps_validate_version(attr.version, 1) || in wps_validate_m2()
1356 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m2()
1357 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_m2()
1358 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_m2()
1359 wps_validate_uuid_r(attr.uuid_r, 1) || in wps_validate_m2()
1360 wps_validate_public_key(attr.public_key, attr.public_key_len, 1) || in wps_validate_m2()
1361 wps_validate_auth_type_flags(attr.auth_type_flags, 1) || in wps_validate_m2()
1362 wps_validate_encr_type_flags(attr.encr_type_flags, 1) || in wps_validate_m2()
1363 wps_validate_conn_type_flags(attr.conn_type_flags, 1) || in wps_validate_m2()
1364 wps_validate_config_methods(attr.config_methods, wps2, 1) || in wps_validate_m2()
1365 wps_validate_manufacturer(attr.manufacturer, attr.manufacturer_len, in wps_validate_m2()
1367 wps_validate_model_name(attr.model_name, attr.model_name_len, 1) || in wps_validate_m2()
1368 wps_validate_model_number(attr.model_number, attr.model_number_len, in wps_validate_m2()
1370 wps_validate_serial_number(attr.serial_number, in wps_validate_m2()
1371 attr.serial_number_len, 1) || in wps_validate_m2()
1372 wps_validate_primary_dev_type(attr.primary_dev_type, 1) || in wps_validate_m2()
1373 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, 1) || in wps_validate_m2()
1374 wps_validate_rf_bands(attr.rf_bands, 1) || in wps_validate_m2()
1375 wps_validate_assoc_state(attr.assoc_state, 1) || in wps_validate_m2()
1376 wps_validate_config_error(attr.config_error, 1) || in wps_validate_m2()
1377 wps_validate_dev_password_id(attr.dev_password_id, 1) || in wps_validate_m2()
1378 wps_validate_os_version(attr.os_version, 1) || in wps_validate_m2()
1379 wps_validate_version2(attr.version2, wps2) || in wps_validate_m2()
1380 wps_validate_authenticator(attr.authenticator, 1)) { in wps_validate_m2()
1396 struct wps_parse_attr attr; in wps_validate_m2d() local
1403 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m2d()
1409 wps2 = attr.version2 != NULL; in wps_validate_m2d()
1410 if (wps_validate_version(attr.version, 1) || in wps_validate_m2d()
1411 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m2d()
1412 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_m2d()
1413 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_m2d()
1414 wps_validate_uuid_r(attr.uuid_r, 1) || in wps_validate_m2d()
1415 wps_validate_auth_type_flags(attr.auth_type_flags, 1) || in wps_validate_m2d()
1416 wps_validate_encr_type_flags(attr.encr_type_flags, 1) || in wps_validate_m2d()
1417 wps_validate_conn_type_flags(attr.conn_type_flags, 1) || in wps_validate_m2d()
1418 wps_validate_config_methods(attr.config_methods, wps2, 1) || in wps_validate_m2d()
1419 wps_validate_manufacturer(attr.manufacturer, attr.manufacturer_len, in wps_validate_m2d()
1421 wps_validate_model_name(attr.model_name, attr.model_name_len, 1) || in wps_validate_m2d()
1422 wps_validate_model_number(attr.model_number, attr.model_number_len, in wps_validate_m2d()
1424 wps_validate_serial_number(attr.serial_number, in wps_validate_m2d()
1425 attr.serial_number_len, 1) || in wps_validate_m2d()
1426 wps_validate_primary_dev_type(attr.primary_dev_type, 1) || in wps_validate_m2d()
1427 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, 1) || in wps_validate_m2d()
1428 wps_validate_rf_bands(attr.rf_bands, 1) || in wps_validate_m2d()
1429 wps_validate_assoc_state(attr.assoc_state, 1) || in wps_validate_m2d()
1430 wps_validate_config_error(attr.config_error, 1) || in wps_validate_m2d()
1431 wps_validate_os_version(attr.os_version, 1) || in wps_validate_m2d()
1432 wps_validate_version2(attr.version2, wps2)) { in wps_validate_m2d()
1448 struct wps_parse_attr attr; in wps_validate_m3() local
1455 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m3()
1461 wps2 = attr.version2 != NULL; in wps_validate_m3()
1462 if (wps_validate_version(attr.version, 1) || in wps_validate_m3()
1463 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m3()
1464 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_m3()
1465 wps_validate_e_hash1(attr.e_hash1, 1) || in wps_validate_m3()
1466 wps_validate_e_hash2(attr.e_hash2, 1) || in wps_validate_m3()
1467 wps_validate_version2(attr.version2, wps2) || in wps_validate_m3()
1468 wps_validate_authenticator(attr.authenticator, 1)) { in wps_validate_m3()
1484 struct wps_parse_attr attr; in wps_validate_m4() local
1491 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m4()
1497 wps2 = attr.version2 != NULL; in wps_validate_m4()
1498 if (wps_validate_version(attr.version, 1) || in wps_validate_m4()
1499 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m4()
1500 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_m4()
1501 wps_validate_r_hash1(attr.r_hash1, 1) || in wps_validate_m4()
1502 wps_validate_r_hash2(attr.r_hash2, 1) || in wps_validate_m4()
1503 wps_validate_encr_settings(attr.encr_settings, in wps_validate_m4()
1504 attr.encr_settings_len, 1) || in wps_validate_m4()
1505 wps_validate_version2(attr.version2, wps2) || in wps_validate_m4()
1506 wps_validate_authenticator(attr.authenticator, 1)) { in wps_validate_m4()
1522 struct wps_parse_attr attr; in wps_validate_m4_encr() local
1529 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m4_encr()
1535 if (wps_validate_r_snonce1(attr.r_snonce1, 1) || in wps_validate_m4_encr()
1536 wps_validate_key_wrap_auth(attr.key_wrap_auth, 1)) { in wps_validate_m4_encr()
1553 struct wps_parse_attr attr; in wps_validate_m5() local
1560 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m5()
1566 wps2 = attr.version2 != NULL; in wps_validate_m5()
1567 if (wps_validate_version(attr.version, 1) || in wps_validate_m5()
1568 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m5()
1569 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_m5()
1570 wps_validate_encr_settings(attr.encr_settings, in wps_validate_m5()
1571 attr.encr_settings_len, 1) || in wps_validate_m5()
1572 wps_validate_version2(attr.version2, wps2) || in wps_validate_m5()
1573 wps_validate_authenticator(attr.authenticator, 1)) { in wps_validate_m5()
1589 struct wps_parse_attr attr; in wps_validate_m5_encr() local
1596 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m5_encr()
1602 if (wps_validate_e_snonce1(attr.e_snonce1, 1) || in wps_validate_m5_encr()
1603 wps_validate_key_wrap_auth(attr.key_wrap_auth, 1)) { in wps_validate_m5_encr()
1620 struct wps_parse_attr attr; in wps_validate_m6() local
1627 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m6()
1633 wps2 = attr.version2 != NULL; in wps_validate_m6()
1634 if (wps_validate_version(attr.version, 1) || in wps_validate_m6()
1635 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m6()
1636 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_m6()
1637 wps_validate_encr_settings(attr.encr_settings, in wps_validate_m6()
1638 attr.encr_settings_len, 1) || in wps_validate_m6()
1639 wps_validate_version2(attr.version2, wps2) || in wps_validate_m6()
1640 wps_validate_authenticator(attr.authenticator, 1)) { in wps_validate_m6()
1656 struct wps_parse_attr attr; in wps_validate_m6_encr() local
1663 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m6_encr()
1669 if (wps_validate_r_snonce2(attr.r_snonce2, 1) || in wps_validate_m6_encr()
1670 wps_validate_key_wrap_auth(attr.key_wrap_auth, 1)) { in wps_validate_m6_encr()
1687 struct wps_parse_attr attr; in wps_validate_m7() local
1694 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m7()
1700 wps2 = attr.version2 != NULL; in wps_validate_m7()
1701 if (wps_validate_version(attr.version, 1) || in wps_validate_m7()
1702 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m7()
1703 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_m7()
1704 wps_validate_encr_settings(attr.encr_settings, in wps_validate_m7()
1705 attr.encr_settings_len, 1) || in wps_validate_m7()
1706 wps_validate_settings_delay_time(attr.settings_delay_time, 0) || in wps_validate_m7()
1707 wps_validate_version2(attr.version2, wps2) || in wps_validate_m7()
1708 wps_validate_authenticator(attr.authenticator, 1)) { in wps_validate_m7()
1724 struct wps_parse_attr attr; in wps_validate_m7_encr() local
1731 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m7_encr()
1737 if (wps_validate_e_snonce2(attr.e_snonce2, 1) || in wps_validate_m7_encr()
1738 wps_validate_ssid(attr.ssid, attr.ssid_len, !ap) || in wps_validate_m7_encr()
1739 wps_validate_mac_addr(attr.mac_addr, !ap) || in wps_validate_m7_encr()
1740 wps_validate_auth_type(attr.auth_type, !ap) || in wps_validate_m7_encr()
1741 wps_validate_encr_type(attr.encr_type, !ap) || in wps_validate_m7_encr()
1742 wps_validate_network_key_index(attr.network_key_idx, 0) || in wps_validate_m7_encr()
1743 wps_validate_network_key(attr.network_key, attr.network_key_len, in wps_validate_m7_encr()
1744 attr.encr_type, !ap) || in wps_validate_m7_encr()
1745 wps_validate_key_wrap_auth(attr.key_wrap_auth, 1)) { in wps_validate_m7_encr()
1762 struct wps_parse_attr attr; in wps_validate_m8() local
1769 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m8()
1775 wps2 = attr.version2 != NULL; in wps_validate_m8()
1776 if (wps_validate_version(attr.version, 1) || in wps_validate_m8()
1777 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m8()
1778 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_m8()
1779 wps_validate_encr_settings(attr.encr_settings, in wps_validate_m8()
1780 attr.encr_settings_len, 1) || in wps_validate_m8()
1781 wps_validate_version2(attr.version2, wps2) || in wps_validate_m8()
1782 wps_validate_authenticator(attr.authenticator, 1)) { in wps_validate_m8()
1798 struct wps_parse_attr attr; in wps_validate_m8_encr() local
1805 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_m8_encr()
1811 if (wps_validate_ssid(attr.ssid, attr.ssid_len, ap) || in wps_validate_m8_encr()
1812 wps_validate_auth_type(attr.auth_type, ap) || in wps_validate_m8_encr()
1813 wps_validate_encr_type(attr.encr_type, ap) || in wps_validate_m8_encr()
1814 wps_validate_network_key_index(attr.network_key_idx, 0) || in wps_validate_m8_encr()
1815 wps_validate_mac_addr(attr.mac_addr, ap) || in wps_validate_m8_encr()
1816 wps_validate_credential(attr.cred, attr.cred_len, attr.num_cred, in wps_validate_m8_encr()
1818 wps_validate_key_wrap_auth(attr.key_wrap_auth, 1)) { in wps_validate_m8_encr()
1835 struct wps_parse_attr attr; in wps_validate_wsc_ack() local
1842 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_wsc_ack()
1848 wps2 = attr.version2 != NULL; in wps_validate_wsc_ack()
1849 if (wps_validate_version(attr.version, 1) || in wps_validate_wsc_ack()
1850 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_wsc_ack()
1851 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_wsc_ack()
1852 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_wsc_ack()
1853 wps_validate_version2(attr.version2, wps2)) { in wps_validate_wsc_ack()
1869 struct wps_parse_attr attr; in wps_validate_wsc_nack() local
1876 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_wsc_nack()
1882 wps2 = attr.version2 != NULL; in wps_validate_wsc_nack()
1883 if (wps_validate_version(attr.version, 1) || in wps_validate_wsc_nack()
1884 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_wsc_nack()
1885 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_wsc_nack()
1886 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_wsc_nack()
1887 wps_validate_config_error(attr.config_error, 1) || in wps_validate_wsc_nack()
1888 wps_validate_version2(attr.version2, wps2)) { in wps_validate_wsc_nack()
1904 struct wps_parse_attr attr; in wps_validate_wsc_done() local
1911 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_wsc_done()
1917 wps2 = attr.version2 != NULL; in wps_validate_wsc_done()
1918 if (wps_validate_version(attr.version, 1) || in wps_validate_wsc_done()
1919 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_wsc_done()
1920 wps_validate_enrollee_nonce(attr.enrollee_nonce, 1) || in wps_validate_wsc_done()
1921 wps_validate_registrar_nonce(attr.registrar_nonce, 1) || in wps_validate_wsc_done()
1922 wps_validate_version2(attr.version2, wps2)) { in wps_validate_wsc_done()
1938 struct wps_parse_attr attr; in wps_validate_upnp_set_selected_registrar() local
1947 if (wps_parse_msg(tlvs, &attr) < 0) { in wps_validate_upnp_set_selected_registrar()
1953 wps2 = attr.version2 != NULL; in wps_validate_upnp_set_selected_registrar()
1954 sel_reg = attr.selected_registrar != NULL && in wps_validate_upnp_set_selected_registrar()
1955 *attr.selected_registrar != 0; in wps_validate_upnp_set_selected_registrar()
1956 if (wps_validate_version(attr.version, 1) || in wps_validate_upnp_set_selected_registrar()
1957 wps_validate_dev_password_id(attr.dev_password_id, sel_reg) || in wps_validate_upnp_set_selected_registrar()
1958 wps_validate_sel_reg_config_methods(attr.sel_reg_config_methods, in wps_validate_upnp_set_selected_registrar()
1960 wps_validate_version2(attr.version2, wps2) || in wps_validate_upnp_set_selected_registrar()
1961 wps_validate_authorized_macs(attr.authorized_macs, in wps_validate_upnp_set_selected_registrar()
1962 attr.authorized_macs_len, wps2) || in wps_validate_upnp_set_selected_registrar()
1963 wps_validate_uuid_r(attr.uuid_r, wps2)) { in wps_validate_upnp_set_selected_registrar()