Lines Matching defs:role
3249 "DPP: Local policy does not allow Configurator role");
3258 "DPP: Local policy does not allow Enrollee role");
3273 "DPP: Local policy does not allow Configurator/Enrollee role");
3278 wpa_printf(MSG_DEBUG, "DPP: Unexpected role in I-capabilities");
3280 DPP_EVENT_FAIL "Invalid role in I-capabilities 0x%02x",
3616 u8 role = auth->r_capab & DPP_CAPAB_ROLE_MASK;
3618 if ((auth->configurator && role != DPP_CAPAB_ENROLLEE) ||
3619 (!auth->configurator && role != DPP_CAPAB_CONFIGURATOR)) {
3621 DPP_EVENT_FAIL "Unexpected role in R-capabilities 0x%02x",
3622 role);
3652 u8 role;
3868 role = auth->r_capab & DPP_CAPAB_ROLE_MASK;
3871 (role == DPP_CAPAB_CONFIGURATOR || role == DPP_CAPAB_ENROLLEE)) {
3872 /* Peer selected its role, so move from "either role" to the
3873 * role that is compatible with peer's selection. */
3874 auth->configurator = role == DPP_CAPAB_ENROLLEE;
3877 } else if ((auth->configurator && role != DPP_CAPAB_ENROLLEE) ||
3878 (!auth->configurator && role != DPP_CAPAB_CONFIGURATOR)) {
3879 wpa_printf(MSG_DEBUG, "DPP: Incompatible role selection");
3881 "Unexpected role in R-capabilities 0x%02x",
3882 role);
3883 if (role != DPP_CAPAB_ENROLLEE &&
3884 role != DPP_CAPAB_CONFIGURATOR)
4030 dpp_auth_fail(auth, "Peer reported incompatible R-capab role");
5407 struct json_token *id, *role;
5415 role = json_get_member(token, "netRole");
5416 if (!role || role->type != JSON_STRING) {
5422 id->string, role->string);
6311 struct json_token *id, *role;
6317 role = json_get_member(token, "netRole");
6318 if (!role || role->type != JSON_STRING)
6326 if (dpp_compatible_netrole(role->string, net_role))
6346 struct json_token *id, *role;
6355 role = json_get_member(token, "netRole");
6356 if (!role || role->type != JSON_STRING) {
6363 id->string, role->string);
6365 role->string)) {