Lines Matching refs:wps2
98 static int valid_config_methods(u16 val, int wps2) in valid_config_methods() argument
100 if (wps2) { in valid_config_methods()
117 static int wps_validate_config_methods(const u8 *config_methods, int wps2, in wps_validate_config_methods() argument
132 if (!valid_config_methods(val, wps2)) { in wps_validate_config_methods()
141 static int wps_validate_ap_config_methods(const u8 *config_methods, int wps2, in wps_validate_ap_config_methods() argument
146 if (wps_validate_config_methods(config_methods, wps2, mandatory) < 0) in wps_validate_ap_config_methods()
488 int wps2, int mandatory) in wps_validate_sel_reg_config_methods() argument
502 if (!valid_config_methods(val, wps2)) { in wps_validate_sel_reg_config_methods()
1088 int wps2, sel_reg; in wps_validate_beacon() local
1109 wps2 = attr->version2 != NULL; in wps_validate_beacon()
1118 wps2, sel_reg) || in wps_validate_beacon()
1121 wps_validate_version2(attr->version2, wps2) || in wps_validate_beacon()
1142 int wps2, sel_reg; in wps_validate_beacon_probe_resp() local
1164 wps2 = attr->version2 != NULL; in wps_validate_beacon_probe_resp()
1173 wps2, sel_reg) || in wps_validate_beacon_probe_resp()
1186 wps_validate_ap_config_methods(attr->config_methods, wps2, probe) || in wps_validate_beacon_probe_resp()
1188 wps_validate_version2(attr->version2, wps2) || in wps_validate_beacon_probe_resp()
1195 if (wps2) { in wps_validate_beacon_probe_resp()
1217 int wps2; in wps_validate_probe_req() local
1239 wps2 = attr->version2 != NULL; in wps_validate_probe_req()
1242 wps_validate_config_methods(attr->config_methods, wps2, 1) || in wps_validate_probe_req()
1250 wps_validate_version2(attr->version2, wps2) || in wps_validate_probe_req()
1252 wps2) || in wps_validate_probe_req()
1254 wps2) || in wps_validate_probe_req()
1256 wps2) || in wps_validate_probe_req()
1257 wps_validate_dev_name(attr->dev_name, attr->dev_name_len, wps2) || in wps_validate_probe_req()
1279 int wps2; in wps_validate_assoc_req() local
1301 wps2 = attr->version2 != NULL; in wps_validate_assoc_req()
1304 wps_validate_version2(attr->version2, wps2)) { in wps_validate_assoc_req()
1323 int wps2; in wps_validate_assoc_resp() local
1346 wps2 = attr->version2 != NULL; in wps_validate_assoc_resp()
1349 wps_validate_version2(attr->version2, wps2)) { in wps_validate_assoc_resp()
1368 int wps2; in wps_validate_m1() local
1390 wps2 = attr->version2 != NULL; in wps_validate_m1()
1400 wps_validate_config_methods(attr->config_methods, wps2, 1) || in wps_validate_m1()
1416 wps_validate_version2(attr->version2, wps2) || in wps_validate_m1()
1420 if (wps2) { in wps_validate_m1()
1442 int wps2; in wps_validate_m2() local
1464 wps2 = attr->version2 != NULL; in wps_validate_m2()
1474 wps_validate_config_methods(attr->config_methods, wps2, 1) || in wps_validate_m2()
1489 wps_validate_version2(attr->version2, wps2) || in wps_validate_m2()
1493 if (wps2) { in wps_validate_m2()
1515 int wps2; in wps_validate_m2d() local
1536 wps2 = attr->version2 != NULL; in wps_validate_m2d()
1545 wps_validate_config_methods(attr->config_methods, wps2, 1) || in wps_validate_m2d()
1559 wps_validate_version2(attr->version2, wps2)) { in wps_validate_m2d()
1562 if (wps2) { in wps_validate_m2d()
1584 int wps2; in wps_validate_m3() local
1605 wps2 = attr->version2 != NULL; in wps_validate_m3()
1611 wps_validate_version2(attr->version2, wps2) || in wps_validate_m3()
1615 if (wps2) { in wps_validate_m3()
1637 int wps2; in wps_validate_m4() local
1658 wps2 = attr->version2 != NULL; in wps_validate_m4()
1666 wps_validate_version2(attr->version2, wps2) || in wps_validate_m4()
1670 if (wps2) { in wps_validate_m4()
1689 int wps_validate_m4_encr(const struct wpabuf *tlvs, int wps2) in wps_validate_m4_encr() argument
1719 if (wps2) { in wps_validate_m4_encr()
1741 int wps2; in wps_validate_m5() local
1762 wps2 = attr->version2 != NULL; in wps_validate_m5()
1768 wps_validate_version2(attr->version2, wps2) || in wps_validate_m5()
1772 if (wps2) { in wps_validate_m5()
1791 int wps_validate_m5_encr(const struct wpabuf *tlvs, int wps2) in wps_validate_m5_encr() argument
1820 if (wps2) { in wps_validate_m5_encr()
1842 int wps2; in wps_validate_m6() local
1863 wps2 = attr->version2 != NULL; in wps_validate_m6()
1869 wps_validate_version2(attr->version2, wps2) || in wps_validate_m6()
1873 if (wps2) { in wps_validate_m6()
1892 int wps_validate_m6_encr(const struct wpabuf *tlvs, int wps2) in wps_validate_m6_encr() argument
1921 if (wps2) { in wps_validate_m6_encr()
1943 int wps2; in wps_validate_m7() local
1964 wps2 = attr->version2 != NULL; in wps_validate_m7()
1971 wps_validate_version2(attr->version2, wps2) || in wps_validate_m7()
1975 if (wps2) { in wps_validate_m7()
1994 int wps_validate_m7_encr(const struct wpabuf *tlvs, int ap, int wps2) in wps_validate_m7_encr() argument
2030 if (wps2) { in wps_validate_m7_encr()
2052 int wps2; in wps_validate_m8() local
2073 wps2 = attr->version2 != NULL; in wps_validate_m8()
2079 wps_validate_version2(attr->version2, wps2) || in wps_validate_m8()
2083 if (wps2) { in wps_validate_m8()
2102 int wps_validate_m8_encr(const struct wpabuf *tlvs, int ap, int wps2) in wps_validate_m8_encr() argument
2137 if (wps2) { in wps_validate_m8_encr()
2159 int wps2; in wps_validate_wsc_ack() local
2180 wps2 = attr->version2 != NULL; in wps_validate_wsc_ack()
2185 wps_validate_version2(attr->version2, wps2)) { in wps_validate_wsc_ack()
2188 if (wps2) { in wps_validate_wsc_ack()
2210 int wps2; in wps_validate_wsc_nack() local
2230 wps2 = attr->version2 != NULL; in wps_validate_wsc_nack()
2236 wps_validate_version2(attr->version2, wps2)) { in wps_validate_wsc_nack()
2239 if (wps2) { in wps_validate_wsc_nack()
2261 int wps2; in wps_validate_wsc_done() local
2282 wps2 = attr->version2 != NULL; in wps_validate_wsc_done()
2287 wps_validate_version2(attr->version2, wps2)) { in wps_validate_wsc_done()
2290 if (wps2) { in wps_validate_wsc_done()
2312 int wps2; in wps_validate_upnp_set_selected_registrar() local
2335 wps2 = attr->version2 != NULL; in wps_validate_upnp_set_selected_registrar()
2341 wps2, sel_reg) || in wps_validate_upnp_set_selected_registrar()
2342 wps_validate_version2(attr->version2, wps2) || in wps_validate_upnp_set_selected_registrar()
2344 attr->authorized_macs_len, wps2) || in wps_validate_upnp_set_selected_registrar()
2345 wps_validate_uuid_r(attr->uuid_r, wps2)) { in wps_validate_upnp_set_selected_registrar()
2349 if (wps2) { in wps_validate_upnp_set_selected_registrar()