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");
959 u8 channel;
968 if (cla->channel[ch] == p2p->last_prog_scan_chan) {
980 channel = c->reg_class[0].channel[0];
982 /* Pick the next channel */
991 channel = c->reg_class[cl].channel[ch];
994 freq = p2p_channel_to_freq(reg_class, channel);
995 p2p_dbg(p2p, "Next progressive search channel: reg_class %u channel %u -> %d MHz",
996 reg_class, channel, freq);
998 p2p->last_prog_scan_chan = channel;
1256 * Start with the specified channel and then move to
1257 * scans for social channels and this specific channel.
1332 p2p_dbg(p2p, "Skip stop_listen since we are on correct channel for response");
1378 p2p_dbg(p2p, "Prepare channel pref - force_freq=%u pref_freq=%u go=%d",
1388 p2p_dbg(p2p, "Frequency %u MHz (oper_class %u channel %u) not allowed for P2P",
1400 p2p->channels.reg_class[0].channel[0] = p2p->op_channel;
1419 p2p_dbg(p2p, "Prepare channel best");
1425 p2p_dbg(p2p, "Select best overall channel as operating channel preference");
1432 p2p_dbg(p2p, "Select best 5 GHz channel as operating channel preference");
1439 p2p_dbg(p2p, "Select best 2.4 GHz channel as operating channel preference");
1446 p2p_dbg(p2p, "Select first pref_chan entry as operating channel preference");
1452 p2p_dbg(p2p, "Select possible EDMG channel (op_class %u channel %u) as operating channel preference",
1458 p2p_dbg(p2p, "Select possible 6 GHz channel (op_class %u channel %u) as operating channel preference",
1463 p2p_dbg(p2p, "Select possible VHT channel (op_class %u channel %u) as operating channel preference",
1468 p2p_dbg(p2p, "Select possible HT40 channel (op_class %u channel %u) as operating channel preference",
1473 p2p_dbg(p2p, "Select possible 5 GHz channel (op_class %u channel %u) as operating channel preference",
1478 p2p_dbg(p2p, "Select pre-configured channel as operating channel preference");
1485 p2p_dbg(p2p, "Select random available social channel (op_class %u channel %u) as operating channel preference",
1488 /* Select any random available channel from the first available
1493 p2p_dbg(p2p, "Select random available channel %d from operating class %d as operating channel preference",
1502 * p2p_prepare_channel - Select operating channel for GO Negotiation or P2PS PD
1508 * Returns: 0 on success, -1 on failure (channel not supported for P2P)
1510 * This function is used to do initial operating channel selection for GO
1512 * signalling. The selected channel may be further optimized in
1518 p2p_dbg(p2p, "Prepare channel - force_freq=%u pref_freq=%u go=%d",
1535 p2p_dbg(p2p, "Own preference for operation channel: Operating Class %u Channel %u%s",
1733 p2p_dbg(p2p, "Unknown peer Listen channel: "
1734 "country=%c%c(0x%02x) reg_class=%u channel=%u",
1742 " Listen channel: %u -> %u MHz",
2072 "Updated peer " MACSTR " Listen channel (Probe Request): %d -> %d MHz",
2265 u8 channel, op_class;
2298 channel = p2p->cfg->channel;
2299 } else if (p2p_freq_to_channel(rx_freq, &op_class, &channel)) {
2300 p2p_err(p2p, "Failed to convert freq to channel");
2306 wpabuf_put_u8(buf, channel);
2403 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",
2405 p2p->cfg->channel, p2p->pending_listen_freq);
3576 if (p2p->cfg->reg_class && p2p->cfg->channel)
3579 p2p->cfg->channel);
3652 * channel.
3857 * remain-on-channel end event, i.e., give driver more time to
3903 * the end of a remain-on-channel operation and the
3953 p2p_dbg(p2p, "Skip connect-listen since GO Neg channel known (OOB)");
4091 * Better remain on operating channel instead of listen channel
4094 p2p_dbg(p2p, "Inviting in active GO role - wait on operating channel");
4764 int p2p_set_listen_channel(struct p2p_data *p2p, u8 reg_class, u8 channel,
4767 if (p2p_channel_to_freq(reg_class, channel) < 0)
4771 * Listen channel was set in configuration or set by control interface;
4776 "Listen channel was previously configured - do not override based on optimization");
4780 p2p_dbg(p2p, "Set Listen channel: reg_class %u channel %u",
4781 reg_class, channel);
4785 p2p->cfg->channel = channel;
4788 p2p_dbg(p2p, "Defer setting listen channel");
4790 p2p->pending_channel = channel;
4800 return p2p->cfg->channel;
4825 p2p_dbg(p2p, "Set Operating channel: reg_class %u channel %u",
4946 p2p_dbg(p2p, "Update channel list");
4978 p2p_dbg(p2p, "Best channel: 2.4 GHz: %d, 5 GHz: %d, overall: %d",
5286 u8 op_class, channel;
5294 channel = p2p->cfg->channel;
5303 if (p2p_freq_to_channel(freq, &op_class, &channel) < 0) {
5312 if (p2p_freq_to_channel(client_freq, &op_class, &channel) < 0) {
5322 channel, role);
5421 p2p_dbg(p2p, "Unknown peer OOB GO Neg channel");
5428 p2p_dbg(p2p, "Peer OOB GO operating channel: %u MHz", freq);
5431 p2p_dbg(p2p, "Peer (client) OOB GO operating channel: %u MHz",
5435 p2p_dbg(p2p, "Peer OOB GO Neg channel: %u MHz", freq);
5440 p2p->cfg->channel);
5442 p2p_dbg(p2p, "Own listen channel not known");
5446 p2p_dbg(p2p, "Use own Listen channel as OOB GO Neg channel: %u MHz", freq);