Lines Matching refs:prov

98 	struct p2ps_provision *prov = p2p->p2ps_prov;  in p2ps_add_pd_req_attrs()  local
99 struct p2ps_feature_capab fcap = { prov->cpt_mask, 0 }; in p2ps_add_pd_req_attrs()
105 int follow_on_req_fail = prov->status >= 0 && in p2ps_add_pd_req_attrs()
106 prov->status != P2P_SC_SUCCESS_DEFERRED; in p2ps_add_pd_req_attrs()
110 (prov->conncap & (P2PS_SETUP_GROUP_OWNER | P2PS_SETUP_NEW))) in p2ps_add_pd_req_attrs()
113 if (prov->status >= 0) in p2ps_add_pd_req_attrs()
114 p2p_buf_add_status(buf, (u8) prov->status); in p2ps_add_pd_req_attrs()
116 prov->method = config_methods; 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()
138 if (prov->status < 0 && prov->info[0]) in p2ps_add_pd_req_attrs()
139 p2p_buf_add_session_info(buf, prov->info); in p2ps_add_pd_req_attrs()
142 p2p_buf_add_connection_capability(buf, prov->conncap); in p2ps_add_pd_req_attrs()
144 p2p_buf_add_advertisement_id(buf, prov->adv_id, prov->adv_mac); 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()
162 p2p_buf_add_session_id(buf, prov->session_id, prov->session_mac); 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()
296 struct p2ps_provision *prov = p2p->p2ps_prov; in p2p_build_prov_disc_resp() local
302 conncap = prov->conncap; in p2p_build_prov_disc_resp()
304 if (!status && prov->status != -1) in p2p_build_prov_disc_resp()
305 status = prov->status; in p2p_build_prov_disc_resp()
366 p2p_buf_add_advertisement_id(buf, adv_id, prov->adv_mac); in p2p_build_prov_disc_resp()
373 p2p_buf_add_session_id(buf, prov->session_id, in p2p_build_prov_disc_resp()
374 prov->session_mac); in p2p_build_prov_disc_resp()