Lines Matching refs:conncap
110 (prov->conncap & (P2PS_SETUP_GROUP_OWNER | P2PS_SETUP_NEW))) in p2ps_add_pd_req_attrs()
127 (prov->conncap & (P2PS_SETUP_CLIENT | P2PS_SETUP_NEW))) in p2ps_add_pd_req_attrs()
132 (prov->conncap & (P2PS_SETUP_GROUP_OWNER | P2PS_SETUP_NEW))) in p2ps_add_pd_req_attrs()
142 p2p_buf_add_connection_capability(buf, prov->conncap); in p2ps_add_pd_req_attrs()
147 if (shared_group || prov->conncap == P2PS_SETUP_NEW || in p2ps_add_pd_req_attrs()
148 prov->conncap == in p2ps_add_pd_req_attrs()
150 prov->conncap == in p2ps_add_pd_req_attrs()
170 if ((prov->conncap == P2PS_SETUP_NONE || in p2ps_add_pd_req_attrs()
171 prov->conncap == P2PS_SETUP_CLIENT) && in p2ps_add_pd_req_attrs()
298 u8 conncap = 0; in p2p_build_prov_disc_resp() local
302 conncap = prov->conncap; in p2p_build_prov_disc_resp()
341 if (!persist && (conncap & P2PS_SETUP_GROUP_OWNER)) in p2p_build_prov_disc_resp()
345 if (persist || (conncap & P2PS_SETUP_GROUP_OWNER)) { in p2p_build_prov_disc_resp()
359 (conncap & (P2PS_SETUP_CLIENT | P2PS_SETUP_GROUP_OWNER))) in p2p_build_prov_disc_resp()
363 if (!persist && conncap) in p2p_build_prov_disc_resp()
364 p2p_buf_add_connection_capability(buf, conncap); in p2p_build_prov_disc_resp()
369 (conncap & (P2PS_SETUP_CLIENT | P2PS_SETUP_GROUP_OWNER))) in p2p_build_prov_disc_resp()
564 u8 conncap = P2PS_SETUP_NEW; in p2p_process_prov_disc_req() local
657 conncap = *msg.conn_cap; in p2p_process_prov_disc_req()
716 remote_conncap = conncap; in p2p_process_prov_disc_req()
737 conncap = p2p->cfg->p2ps_group_capability(p2p->cfg->cb_ctx, in p2p_process_prov_disc_req()
738 conncap, auto_accept, in p2p_process_prov_disc_req()
743 auto_accept, remote_conncap, conncap); in p2p_process_prov_disc_req()
768 } else if (!conncap) { in p2p_process_prov_disc_req()
779 msg.persistent_dev) && conncap != P2PS_SETUP_NEW && in p2p_process_prov_disc_req()
837 if (conncap) { in p2p_process_prov_disc_req()
838 tmp->conncap = conncap; in p2p_process_prov_disc_req()
841 tmp->conncap = auto_accept; in p2p_process_prov_disc_req()
854 if (!conncap) { in p2p_process_prov_disc_req()
897 conncap = p2p->cfg->p2ps_group_capability(p2p->cfg->cb_ctx, in p2p_process_prov_disc_req()
899 p2p->p2ps_prov->conncap, in p2p_process_prov_disc_req()
921 if (!conncap || !(msg.wps_config_methods & method)) { in p2p_process_prov_disc_req()
932 msg.persistent_dev) && conncap != P2PS_SETUP_NEW && in p2p_process_prov_disc_req()
953 if ((conncap & P2PS_SETUP_GROUP_OWNER) && in p2p_process_prov_disc_req()
959 p2p->p2ps_prov->conncap = conncap; in p2p_process_prov_disc_req()
1014 if (reject == P2P_SC_SUCCESS && conncap == P2PS_SETUP_GROUP_OWNER) { in p2p_process_prov_disc_req()
1036 p2p->p2ps_prov->conncap = conncap; in p2p_process_prov_disc_req()
1042 session_id, conncap, 0, in p2p_process_prov_disc_req()
1052 session_id, conncap, in p2p_process_prov_disc_req()
1064 adv_id, session_id, conncap, in p2p_process_prov_disc_req()
1076 conncap, passwd_id, in p2p_process_prov_disc_req()
1093 conncap, passwd_id, in p2p_process_prov_disc_req()
1112 session_id, conncap, passwd_id, in p2p_process_prov_disc_req()
1303 u8 conncap = P2PS_SETUP_NEW; in p2p_process_prov_disc_resp() local
1332 conncap = *msg.conn_cap; in p2p_process_prov_disc_resp()
1335 switch (conncap) { in p2p_process_prov_disc_resp()
1337 conncap = P2PS_SETUP_CLIENT; in p2p_process_prov_disc_resp()
1340 conncap = P2PS_SETUP_GROUP_OWNER; in p2p_process_prov_disc_resp()
1460 if (conncap == P2PS_SETUP_GROUP_OWNER) { in p2p_process_prov_disc_resp()
1482 conncap, passwd_id, msg.persistent_ssid, in p2p_process_prov_disc_resp()