Lines Matching defs:channel
195 p2p_dbg(p2p, "Apply change in listen channel");
197 p2p->cfg->channel = p2p->pending_channel;
268 freq = p2p_channel_to_freq(p2p->cfg->reg_class, p2p->cfg->channel);
270 p2p_dbg(p2p, "Unknown regulatory class/channel");
321 freq = p2p_channel_to_freq(p2p->cfg->reg_class, p2p->cfg->channel);
323 p2p_dbg(p2p, "Unknown regulatory class/channel");
955 u8 channel;
964 if (cla->channel[ch] == p2p->last_prog_scan_chan) {
976 channel = c->reg_class[0].channel[0];
978 /* Pick the next channel */
987 channel = c->reg_class[cl].channel[ch];
990 freq = p2p_channel_to_freq(reg_class, channel);
991 p2p_dbg(p2p, "Next progressive search channel: reg_class %u channel %u -> %d MHz",
992 reg_class, channel, freq);
994 p2p->last_prog_scan_chan = channel;
1252 * Start with the specified channel and then move to
1253 * scans for social channels and this specific channel.
1325 p2p_dbg(p2p, "Skip stop_listen since we are on correct channel for response");
1371 p2p_dbg(p2p, "Prepare channel pref - force_freq=%u pref_freq=%u go=%d",
1381 p2p_dbg(p2p, "Frequency %u MHz (oper_class %u channel %u) not allowed for P2P",
1393 p2p->channels.reg_class[0].channel[0] = p2p->op_channel;
1410 p2p_dbg(p2p, "Prepare channel best");
1416 p2p_dbg(p2p, "Select best overall channel as operating channel preference");
1423 p2p_dbg(p2p, "Select best 5 GHz channel as operating channel preference");
1430 p2p_dbg(p2p, "Select best 2.4 GHz channel as operating channel preference");
1437 p2p_dbg(p2p, "Select first pref_chan entry as operating channel preference");
1443 p2p_dbg(p2p, "Select possible VHT channel (op_class %u channel %u) as operating channel preference",
1448 p2p_dbg(p2p, "Select possible HT40 channel (op_class %u channel %u) as operating channel preference",
1453 p2p_dbg(p2p, "Select possible 5 GHz channel (op_class %u channel %u) as operating channel preference",
1458 p2p_dbg(p2p, "Select pre-configured channel as operating channel preference");
1465 p2p_dbg(p2p, "Select random available social channel (op_class %u channel %u) as operating channel preference",
1468 /* Select any random available channel from the first available
1473 p2p_dbg(p2p, "Select random available channel %d from operating class %d as operating channel preference",
1483 * p2p_prepare_channel - Select operating channel for GO Negotiation or P2PS PD
1489 * Returns: 0 on success, -1 on failure (channel not supported for P2P)
1491 * This function is used to do initial operating channel selection for GO
1493 * signalling. The selected channel may be further optimized in
1499 p2p_dbg(p2p, "Prepare channel - force_freq=%u pref_freq=%u go=%d",
1516 p2p_dbg(p2p, "Own preference for operation channel: Operating Class %u Channel %u%s",
1713 p2p_dbg(p2p, "Unknown peer Listen channel: "
1714 "country=%c%c(0x%02x) reg_class=%u channel=%u",
1722 " Listen channel: %u -> %u MHz",
2052 "Updated peer " MACSTR " Listen channel (Probe Request): %d -> %d MHz",
2245 u8 channel, op_class;
2278 channel = p2p->cfg->channel;
2279 } else if (p2p_freq_to_channel(rx_freq, &op_class, &channel)) {
2280 p2p_err(p2p, "Failed to convert freq to channel");
2286 wpabuf_put_u8(buf, channel);
2383 p2p_dbg(p2p, "in_listen=%d drv_in_listen=%d when received P2PS Probe Request at %u MHz; own Listen channel %u, pending listen freq %u MHz",
2385 p2p->cfg->channel, p2p->pending_listen_freq);
3537 if (p2p->cfg->reg_class && p2p->cfg->channel)
3540 p2p->cfg->channel);
3613 * channel.
3822 * remain-on-channel end event, i.e., give driver more time to
3868 * the end of a remain-on-channel operation and the
3918 p2p_dbg(p2p, "Skip connect-listen since GO Neg channel known (OOB)");
4051 * Better remain on operating channel instead of listen channel
4054 p2p_dbg(p2p, "Inviting in active GO role - wait on operating channel");
4724 int p2p_set_listen_channel(struct p2p_data *p2p, u8 reg_class, u8 channel,
4727 if (p2p_channel_to_freq(reg_class, channel) < 0)
4731 * Listen channel was set in configuration or set by control interface;
4736 "Listen channel was previously configured - do not override based on optimization");
4740 p2p_dbg(p2p, "Set Listen channel: reg_class %u channel %u",
4741 reg_class, channel);
4745 p2p->cfg->channel = channel;
4748 p2p_dbg(p2p, "Defer setting listen channel");
4750 p2p->pending_channel = channel;
4760 return p2p->cfg->channel;
4785 p2p_dbg(p2p, "Set Operating channel: reg_class %u channel %u",
4906 p2p_dbg(p2p, "Update channel list");
4937 p2p_dbg(p2p, "Best channel: 2.4 GHz: %d, 5 GHz: %d, overall: %d",
5245 u8 op_class, channel;
5253 channel = p2p->cfg->channel;
5262 if (p2p_freq_to_channel(freq, &op_class, &channel) < 0) {
5271 if (p2p_freq_to_channel(client_freq, &op_class, &channel) < 0) {
5281 channel, role);
5380 p2p_dbg(p2p, "Unknown peer OOB GO Neg channel");
5387 p2p_dbg(p2p, "Peer OOB GO operating channel: %u MHz", freq);
5390 p2p_dbg(p2p, "Peer (client) OOB GO operating channel: %u MHz",
5394 p2p_dbg(p2p, "Peer OOB GO Neg channel: %u MHz", freq);
5399 p2p->cfg->channel);
5401 p2p_dbg(p2p, "Own listen channel not known");
5405 p2p_dbg(p2p, "Use own Listen channel as OOB GO Neg channel: %u MHz", freq);