Lines Matching full:go

26 			return -1; /* both devices want to become GO */  in p2p_go_det()
28 /* Use tie breaker bit to determine GO */ in p2p_go_det()
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()
213 p2p_dbg(p2p, "Failed to build WPS IE for GO Negotiation Request"); in p2p_build_go_neg_req()
237 p2p_dbg(p2p, "Use PD-before-GO-Neg workaround for " MACSTR, in p2p_connect_send()
258 MACSTR " to send GO Negotiation Request", in p2p_connect_send()
266 p2p_dbg(p2p, "Sending GO Negotiation Request"); in p2p_connect_send()
301 p2p_dbg(p2p, "Building GO Negotiation Response"); in p2p_build_go_neg_resp()
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()
392 p2p_dbg(p2p, "Failed to build WPS IE for GO Negotiation Response"); in p2p_build_go_neg_resp()
417 * p2p_prepare_channel() prior to the start of GO Negotiation. In addition, this
561 p2p_channels_dump(p2p, "intersection after no-GO removal", &tmp); in p2p_go_select_channel()
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()
736 … "Ignore local driver frequency preference %u MHz since it is not acceptable for P2P use (go=%d)", 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()
791 * _not_ included in the GO Negotiation Request or Invitation Request. 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()
812 p2p_dbg(p2p, "Received GO Negotiation Request from " MACSTR "(freq=%d)", in p2p_process_go_neg_req()
819 p2p_dbg(p2p, "Mandatory Capability attribute missing from GO Negotiation Request"); in p2p_process_go_neg_req()
828 p2p_dbg(p2p, "Mandatory GO Intent attribute missing from GO Negotiation Request"); in p2p_process_go_neg_req()
835 p2p_dbg(p2p, "Mandatory Configuration Timeout attribute missing from GO Negotiation Request"); in p2p_process_go_neg_req()
863 p2p_dbg(p2p, "Unexpected GO Negotiation Request SA=" MACSTR in p2p_process_go_neg_req()
872 p2p_dbg(p2p, "Unexpected Status attribute (%d) in GO Negotiation Request", in p2p_process_go_neg_req()
877 * This mechanism for using Status attribute in GO in p2p_process_go_neg_req()
880 * indicate rejection of GO Negotiation in a case where in p2p_process_go_neg_req()
881 * they have sent out GO Negotiation Response with in p2p_process_go_neg_req()
885 * failed and do not reply to this GO Negotiation in p2p_process_go_neg_req()
908 " based on GO Neg Req since listen/oper freq not known", in p2p_process_go_neg_req()
927 p2p_dbg(p2p, "Not ready for GO negotiation with " MACSTR, in p2p_process_go_neg_req()
938 int go; in p2p_process_go_neg_req() local
941 p2p_dbg(p2p, "Starting GO Negotiation with previously authorized peer"); in p2p_process_go_neg_req()
956 p2p_dbg(p2p, "No GO Intent attribute received"); in p2p_process_go_neg_req()
960 p2p_dbg(p2p, "Invalid GO Intent value (%u) received", in p2p_process_go_neg_req()
967 p2p_dbg(p2p, "Do not reply since peer has higher address and GO Neg Request already sent"); in p2p_process_go_neg_req()
975 …"Do not reply since peer is waiting for us to start a new GO Negotiation and GO Neg Request alread… in p2p_process_go_neg_req()
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()
982 p2p_dbg(p2p, "Incompatible GO Intent"); 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()
1081 p2p_dbg(p2p, "GO Negotiation with " MACSTR, MAC2STR(sa)); in p2p_process_go_neg_req()
1101 p2p_dbg(p2p, "Sending GO Negotiation Response"); in p2p_process_go_neg_req()
1117 * Peer has smaller address, so the GO Negotiation in p2p_process_go_neg_req()
1119 * negotiation. Ignore a GO Negotiation Response from in p2p_process_go_neg_req()
1121 * point due to a race condition in GO Negotiation in p2p_process_go_neg_req()
1142 const u8 *resp_chan, int go) in p2p_build_go_neg_conf() argument
1151 p2p_dbg(p2p, "Building GO Negotiation Confirm"); in p2p_build_go_neg_conf()
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
1223 p2p_dbg(p2p, "Received GO Negotiation Response from " MACSTR in p2p_process_go_neg_resp()
1228 p2p_dbg(p2p, "Not ready for GO negotiation with " MACSTR, in p2p_process_go_neg_resp()
1237 p2p_dbg(p2p, "Was not expecting GO Negotiation Response - ignore"); in p2p_process_go_neg_resp()
1257 p2p_dbg(p2p, "GO Negotiation rejected: status %d", *msg.status); in p2p_process_go_neg_resp()
1260 p2p_dbg(p2p, "Wait for the peer to become ready for GO Negotiation"); in p2p_process_go_neg_resp()
1272 p2p_dbg(p2p, "Stop GO Negotiation attempt"); in p2p_process_go_neg_resp()
1281 p2p_dbg(p2p, "Mandatory Capability attribute missing from GO Negotiation Response"); in p2p_process_go_neg_resp()
1289 p2p_dbg(p2p, "Mandatory P2P Device Info attribute missing from GO Negotiation Response"); in p2p_process_go_neg_resp()
1303 p2p_dbg(p2p, "No GO Intent attribute received"); in p2p_process_go_neg_resp()
1308 p2p_dbg(p2p, "Invalid GO Intent value (%u) received", in p2p_process_go_neg_resp()
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()
1316 p2p_dbg(p2p, "Incompatible GO Intent"); 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()
1326 p2p_dbg(p2p, "Mandatory P2P Group ID attribute missing from GO Negotiation Response"); in p2p_process_go_neg_resp()
1333 p2p_dbg(p2p, "Mandatory Configuration Timeout attribute missing from GO Negotiation Response"); 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()
1438 * GO. 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()
1446 p2p_dbg(p2p, "GO Negotiation with " MACSTR, MAC2STR(sa)); in p2p_process_go_neg_resp()
1450 /* Store GO Negotiation Confirmation to allow retransmission */ in p2p_process_go_neg_resp()
1454 go); in p2p_process_go_neg_resp()
1458 p2p_dbg(p2p, "Sending GO Negotiation Confirm"); in p2p_process_go_neg_resp()
1461 dev->go_state = go ? LOCAL_GO : REMOTE_GO; in p2p_process_go_neg_resp()
1481 p2p_dbg(p2p, "GO Negotiation failed"); in p2p_process_go_neg_resp()
1493 p2p_dbg(p2p, "Received GO Negotiation Confirm from " MACSTR, in p2p_process_go_neg_conf()
1498 p2p_dbg(p2p, "Not ready for GO negotiation with " MACSTR, in p2p_process_go_neg_conf()
1504 …p2p_dbg(p2p, "Stopped waiting for TX status on GO Negotiation Response since we already received C… in p2p_process_go_neg_conf()
1512 p2p_dbg(p2p, "Was not expecting GO Negotiation Confirm - ignore"); in p2p_process_go_neg_conf()
1532 p2p_dbg(p2p, "GO Negotiation rejected: status %d", *msg.status); in p2p_process_go_neg_conf()
1545 p2p_dbg(p2p, "Mandatory P2P Group ID attribute missing from GO Negotiation Confirmation"); in p2p_process_go_neg_conf()
1553 p2p_dbg(p2p, "Mandatory Operating Channel attribute missing from GO Negotiation Confirmation"); in p2p_process_go_neg_conf()
1562 p2p_dbg(p2p, "Updated peer (GO) operating channel preference from %d MHz to %d MHz", in p2p_process_go_neg_conf()
1569 p2p_dbg(p2p, "Mandatory Operating Channel attribute missing from GO Negotiation Confirmation"); in p2p_process_go_neg_conf()
1580 * This should not happen since GO negotiation has already in p2p_process_go_neg_conf()
1583 p2p_dbg(p2p, "Unexpected GO Neg state - do not know which end becomes GO"); in p2p_process_go_neg_conf()
1588 * The peer could have missed our ctrl::ack frame for GO Negotiation in p2p_process_go_neg_conf()
1591 * GO Negotiation Confirm frame, wait a short time here before starting in p2p_process_go_neg_conf()