Lines Matching refs:go
187 bool go = p2p->go_intent == 15; in p2p_build_go_neg_req() local
191 p2p->num_pref_freq, &pref_chanlist, go); in p2p_build_go_neg_req()
351 bool go = (peer && peer->go_state == LOCAL_GO) || in p2p_build_go_neg_resp() local
355 p2p->num_pref_freq, &pref_chanlist, go); in p2p_build_go_neg_resp()
599 static void p2p_check_pref_chan_no_recv(struct p2p_data *p2p, int go, in p2p_check_pref_chan_no_recv() argument
621 !p2p_pref_freq_allowed(&freq_list[i], go)) in p2p_check_pref_chan_no_recv()
648 static void p2p_check_pref_chan_recv(struct p2p_data *p2p, int go, in p2p_check_pref_chan_recv() argument
673 if (!p2p_pref_freq_allowed(&freq_list[i], go)) in p2p_check_pref_chan_recv()
694 void p2p_check_pref_chan(struct p2p_data *p2p, int go, in p2p_check_pref_chan() argument
715 if (p2p->cfg->get_pref_freq_list(p2p->cfg->cb_ctx, go, in p2p_check_pref_chan()
731 (go || !p2p_channels_includes(&p2p->cfg->cli_channels, in p2p_check_pref_chan()
737 p2p->pref_freq_list[i].freq, go); in p2p_check_pref_chan()
771 p2p_pref_freq_allowed(&p2p->pref_freq_list[i], go)) in p2p_check_pref_chan()
794 p2p_check_pref_chan_no_recv(p2p, go, dev, msg, in p2p_check_pref_chan()
797 p2p_check_pref_chan_recv(p2p, go, dev, msg, in p2p_check_pref_chan()
938 int go; in p2p_process_go_neg_req() local
980 go = p2p_go_det(p2p->go_intent, *msg.go_intent); in p2p_process_go_neg_req()
981 if (go < 0) { in p2p_process_go_neg_req()
1061 if (go && p2p_go_select_channel(p2p, dev, &status) < 0) in p2p_process_go_neg_req()
1064 dev->go_state = go ? LOCAL_GO : REMOTE_GO; in p2p_process_go_neg_req()
1074 p2p_check_pref_chan(p2p, go, dev, &msg); in p2p_process_go_neg_req()
1142 const u8 *resp_chan, int go) in p2p_build_go_neg_conf() argument
1185 if (go || resp_chan == NULL) in p2p_build_go_neg_conf()
1196 if (go) { in p2p_build_go_neg_conf()
1218 int go = -1; in p2p_process_go_neg_resp() local
1314 go = p2p_go_det(p2p->go_intent, *msg.go_intent); in p2p_process_go_neg_resp()
1315 if (go < 0) { in p2p_process_go_neg_resp()
1321 if (!go && msg.group_id) { in p2p_process_go_neg_resp()
1325 } else if (!go) { in p2p_process_go_neg_resp()
1348 if (!msg.operating_channel && !go) { in p2p_process_go_neg_resp()
1433 if (go && p2p_go_select_channel(p2p, dev, &status) < 0) in p2p_process_go_neg_resp()
1440 if (go) in p2p_process_go_neg_resp()
1441 p2p_check_pref_chan(p2p, go, dev, &msg); in p2p_process_go_neg_resp()
1454 go); in p2p_process_go_neg_resp()
1461 dev->go_state = go ? LOCAL_GO : REMOTE_GO; in p2p_process_go_neg_resp()