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");
953 u8 channel;
962 if (cla->channel[ch] == p2p->last_prog_scan_chan) {
974 channel = c->reg_class[0].channel[0];
976 /* Pick the next channel */
985 channel = c->reg_class[cl].channel[ch];
988 freq = p2p_channel_to_freq(reg_class, channel);
989 p2p_dbg(p2p, "Next progressive search channel: reg_class %u channel %u -> %d MHz",
990 reg_class, channel, freq);
992 p2p->last_prog_scan_chan = channel;
1250 * Start with the specified channel and then move to
1251 * scans for social channels and this specific channel.
1323 p2p_dbg(p2p, "Skip stop_listen since we are on correct channel for response");
1369 p2p_dbg(p2p, "Prepare channel pref - force_freq=%u pref_freq=%u go=%d",
1379 p2p_dbg(p2p, "Frequency %u MHz (oper_class %u channel %u) not allowed for P2P",
1391 p2p->channels.reg_class[0].channel[0] = p2p->op_channel;
1408 p2p_dbg(p2p, "Prepare channel best");
1414 p2p_dbg(p2p, "Select best overall channel as operating channel preference");
1421 p2p_dbg(p2p, "Select best 5 GHz channel as operating channel preference");
1428 p2p_dbg(p2p, "Select best 2.4 GHz channel as operating channel preference");
1435 p2p_dbg(p2p, "Select first pref_chan entry as operating channel preference");
1441 p2p_dbg(p2p, "Select possible VHT channel (op_class %u channel %u) as operating channel preference",
1446 p2p_dbg(p2p, "Select possible HT40 channel (op_class %u channel %u) as operating channel preference",
1451 p2p_dbg(p2p, "Select possible 5 GHz channel (op_class %u channel %u) as operating channel preference",
1456 p2p_dbg(p2p, "Select pre-configured channel as operating channel preference");
1463 p2p_dbg(p2p, "Select random available social channel (op_class %u channel %u) as operating channel preference",
1466 /* Select any random available channel from the first available
1471 p2p_dbg(p2p, "Select random available channel %d from operating class %d as operating channel preference",
1481 * p2p_prepare_channel - Select operating channel for GO Negotiation or P2PS PD
1487 * Returns: 0 on success, -1 on failure (channel not supported for P2P)
1489 * This function is used to do initial operating channel selection for GO
1491 * signalling. The selected channel may be further optimized in
1497 p2p_dbg(p2p, "Prepare channel - force_freq=%u pref_freq=%u go=%d",
1514 p2p_dbg(p2p, "Own preference for operation channel: Operating Class %u Channel %u%s",
1711 p2p_dbg(p2p, "Unknown peer Listen channel: "
1712 "country=%c%c(0x%02x) reg_class=%u channel=%u",
1720 " Listen channel: %u -> %u MHz",
2050 "Updated peer " MACSTR " Listen channel (Probe Request): %d -> %d MHz",
2243 u8 channel, op_class;
2276 channel = p2p->cfg->channel;
2277 } else if (p2p_freq_to_channel(rx_freq, &op_class, &channel)) {
2278 p2p_err(p2p, "Failed to convert freq to channel");
2284 wpabuf_put_u8(buf, channel);
2381 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",
2383 p2p->cfg->channel, p2p->pending_listen_freq);
3535 if (p2p->cfg->reg_class && p2p->cfg->channel)
3538 p2p->cfg->channel);
3611 * channel.
3816 * remain-on-channel end event, i.e., give driver more time to
3862 * the end of a remain-on-channel operation and the
3912 p2p_dbg(p2p, "Skip connect-listen since GO Neg channel known (OOB)");
4045 * Better remain on operating channel instead of listen channel
4048 p2p_dbg(p2p, "Inviting in active GO role - wait on operating channel");
4718 int p2p_set_listen_channel(struct p2p_data *p2p, u8 reg_class, u8 channel,
4721 if (p2p_channel_to_freq(reg_class, channel) < 0)
4725 * Listen channel was set in configuration or set by control interface;
4730 "Listen channel was previously configured - do not override based on optimization");
4734 p2p_dbg(p2p, "Set Listen channel: reg_class %u channel %u",
4735 reg_class, channel);
4739 p2p->cfg->channel = channel;
4742 p2p_dbg(p2p, "Defer setting listen channel");
4744 p2p->pending_channel = channel;
4754 return p2p->cfg->channel;
4779 p2p_dbg(p2p, "Set Operating channel: reg_class %u channel %u",
4900 p2p_dbg(p2p, "Update channel list");
4931 p2p_dbg(p2p, "Best channel: 2.4 GHz: %d, 5 GHz: %d, overall: %d",
5239 u8 op_class, channel;
5247 channel = p2p->cfg->channel;
5256 if (p2p_freq_to_channel(freq, &op_class, &channel) < 0) {
5265 if (p2p_freq_to_channel(client_freq, &op_class, &channel) < 0) {
5275 channel, role);
5374 p2p_dbg(p2p, "Unknown peer OOB GO Neg channel");
5381 p2p_dbg(p2p, "Peer OOB GO operating channel: %u MHz", freq);
5384 p2p_dbg(p2p, "Peer (client) OOB GO operating channel: %u MHz",
5388 p2p_dbg(p2p, "Peer OOB GO Neg channel: %u MHz", freq);
5393 p2p->cfg->channel);
5395 p2p_dbg(p2p, "Own listen channel not known");
5399 p2p_dbg(p2p, "Use own Listen channel as OOB GO Neg channel: %u MHz", freq);