Lines Matching refs:wps2
97 static int valid_config_methods(u16 val, int wps2) in valid_config_methods() argument
99 if (wps2) { in valid_config_methods()
128 static int wps_validate_config_methods(const u8 *config_methods, int wps2, in wps_validate_config_methods() argument
143 if (!valid_config_methods(val, wps2)) { in wps_validate_config_methods()
152 static int wps_validate_ap_config_methods(const u8 *config_methods, int wps2, in wps_validate_ap_config_methods() argument
157 if (wps_validate_config_methods(config_methods, wps2, mandatory) < 0) in wps_validate_ap_config_methods()
499 int wps2, int mandatory) in wps_validate_sel_reg_config_methods() argument
513 if (!valid_config_methods(val, wps2)) { in wps_validate_sel_reg_config_methods()
1084 int wps2, sel_reg; in wps_validate_beacon() local
1096 wps2 = attr.version2 != NULL; in wps_validate_beacon()
1105 wps2, sel_reg) || in wps_validate_beacon()
1108 wps_validate_version2(attr.version2, wps2) || in wps_validate_beacon()
1123 int wps2, sel_reg; in wps_validate_beacon_probe_resp() local
1136 wps2 = attr.version2 != NULL; in wps_validate_beacon_probe_resp()
1145 wps2, sel_reg) || in wps_validate_beacon_probe_resp()
1158 wps_validate_ap_config_methods(attr.config_methods, wps2, probe) || in wps_validate_beacon_probe_resp()
1160 wps_validate_version2(attr.version2, wps2) || in wps_validate_beacon_probe_resp()
1167 if (wps2) in wps_validate_beacon_probe_resp()
1181 int wps2; in wps_validate_probe_req() local
1194 wps2 = attr.version2 != NULL; in wps_validate_probe_req()
1197 wps_validate_config_methods(attr.config_methods, wps2, 1) || in wps_validate_probe_req()
1205 wps_validate_version2(attr.version2, wps2) || in wps_validate_probe_req()
1207 wps2) || in wps_validate_probe_req()
1209 wps2) || in wps_validate_probe_req()
1211 wps2) || in wps_validate_probe_req()
1212 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, wps2) || in wps_validate_probe_req()
1228 int wps2; in wps_validate_assoc_req() local
1241 wps2 = attr.version2 != NULL; in wps_validate_assoc_req()
1244 wps_validate_version2(attr.version2, wps2)) { in wps_validate_assoc_req()
1257 int wps2; in wps_validate_assoc_resp() local
1270 wps2 = attr.version2 != NULL; in wps_validate_assoc_resp()
1273 wps_validate_version2(attr.version2, wps2)) { in wps_validate_assoc_resp()
1286 int wps2; in wps_validate_m1() local
1298 wps2 = attr.version2 != NULL; in wps_validate_m1()
1308 wps_validate_config_methods(attr.config_methods, wps2, 1) || in wps_validate_m1()
1324 wps_validate_version2(attr.version2, wps2) || in wps_validate_m1()
1328 if (wps2) in wps_validate_m1()
1342 int wps2; in wps_validate_m2() local
1354 wps2 = attr.version2 != NULL; in wps_validate_m2()
1364 wps_validate_config_methods(attr.config_methods, wps2, 1) || in wps_validate_m2()
1379 wps_validate_version2(attr.version2, wps2) || in wps_validate_m2()
1383 if (wps2) in wps_validate_m2()
1397 int wps2; in wps_validate_m2d() local
1409 wps2 = attr.version2 != NULL; in wps_validate_m2d()
1418 wps_validate_config_methods(attr.config_methods, wps2, 1) || in wps_validate_m2d()
1432 wps_validate_version2(attr.version2, wps2)) { in wps_validate_m2d()
1435 if (wps2) in wps_validate_m2d()
1449 int wps2; in wps_validate_m3() local
1461 wps2 = attr.version2 != NULL; in wps_validate_m3()
1467 wps_validate_version2(attr.version2, wps2) || in wps_validate_m3()
1471 if (wps2) in wps_validate_m3()
1485 int wps2; in wps_validate_m4() local
1497 wps2 = attr.version2 != NULL; in wps_validate_m4()
1505 wps_validate_version2(attr.version2, wps2) || in wps_validate_m4()
1509 if (wps2) in wps_validate_m4()
1520 int wps_validate_m4_encr(const struct wpabuf *tlvs, int wps2) in wps_validate_m4_encr() argument
1540 if (wps2) in wps_validate_m4_encr()
1554 int wps2; in wps_validate_m5() local
1566 wps2 = attr.version2 != NULL; in wps_validate_m5()
1572 wps_validate_version2(attr.version2, wps2) || in wps_validate_m5()
1576 if (wps2) in wps_validate_m5()
1587 int wps_validate_m5_encr(const struct wpabuf *tlvs, int wps2) in wps_validate_m5_encr() argument
1607 if (wps2) in wps_validate_m5_encr()
1621 int wps2; in wps_validate_m6() local
1633 wps2 = attr.version2 != NULL; in wps_validate_m6()
1639 wps_validate_version2(attr.version2, wps2) || in wps_validate_m6()
1643 if (wps2) in wps_validate_m6()
1654 int wps_validate_m6_encr(const struct wpabuf *tlvs, int wps2) in wps_validate_m6_encr() argument
1674 if (wps2) in wps_validate_m6_encr()
1688 int wps2; in wps_validate_m7() local
1700 wps2 = attr.version2 != NULL; in wps_validate_m7()
1707 wps_validate_version2(attr.version2, wps2) || in wps_validate_m7()
1711 if (wps2) in wps_validate_m7()
1722 int wps_validate_m7_encr(const struct wpabuf *tlvs, int ap, int wps2) in wps_validate_m7_encr() argument
1749 if (wps2) in wps_validate_m7_encr()
1763 int wps2; in wps_validate_m8() local
1775 wps2 = attr.version2 != NULL; in wps_validate_m8()
1781 wps_validate_version2(attr.version2, wps2) || in wps_validate_m8()
1785 if (wps2) in wps_validate_m8()
1796 int wps_validate_m8_encr(const struct wpabuf *tlvs, int ap, int wps2) in wps_validate_m8_encr() argument
1822 if (wps2) in wps_validate_m8_encr()
1836 int wps2; in wps_validate_wsc_ack() local
1848 wps2 = attr.version2 != NULL; in wps_validate_wsc_ack()
1853 wps_validate_version2(attr.version2, wps2)) { in wps_validate_wsc_ack()
1856 if (wps2) in wps_validate_wsc_ack()
1870 int wps2; in wps_validate_wsc_nack() local
1882 wps2 = attr.version2 != NULL; in wps_validate_wsc_nack()
1888 wps_validate_version2(attr.version2, wps2)) { in wps_validate_wsc_nack()
1891 if (wps2) in wps_validate_wsc_nack()
1905 int wps2; in wps_validate_wsc_done() local
1917 wps2 = attr.version2 != NULL; in wps_validate_wsc_done()
1922 wps_validate_version2(attr.version2, wps2)) { in wps_validate_wsc_done()
1925 if (wps2) in wps_validate_wsc_done()
1939 int wps2; in wps_validate_upnp_set_selected_registrar() local
1953 wps2 = attr.version2 != NULL; in wps_validate_upnp_set_selected_registrar()
1959 wps2, sel_reg) || in wps_validate_upnp_set_selected_registrar()
1960 wps_validate_version2(attr.version2, wps2) || 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()
1967 if (wps2) in wps_validate_upnp_set_selected_registrar()