Lines Matching refs:op_class
1193 u8 op_class, op_channel;
1198 if (p2p_freq_to_channel(freq, &op_class, &op_channel) < 0) {
1203 if (!p2p_channels_includes(&p2p->cfg->channels, op_class, op_channel) &&
1204 (go || !p2p_channels_includes(&p2p->cfg->cli_channels, op_class,
1207 freq, op_class, op_channel);
1211 p2p->op_reg_class = op_class;
1230 u8 op_class, op_channel;
1239 p2p_freq_to_channel(p2p->best_freq_overall, &op_class, &op_channel)
1242 p2p->op_reg_class = op_class;
1246 p2p_freq_to_channel(p2p->best_freq_5, &op_class, &op_channel)
1249 p2p->op_reg_class = op_class;
1253 p2p_freq_to_channel(p2p->best_freq_24, &op_class,
1256 p2p->op_reg_class = op_class;
1260 p2p->cfg->pref_chan[0].op_class,
1263 p2p->op_reg_class = p2p->cfg->pref_chan[0].op_class;
1268 p2p_dbg(p2p, "Select possible VHT channel (op_class %u channel %u) as operating channel preference",
1273 p2p_dbg(p2p, "Select possible HT40 channel (op_class %u channel %u) as operating channel preference",
1278 p2p_dbg(p2p, "Select possible 5 GHz channel (op_class %u channel %u) as operating channel preference",
4593 u8 op_class, channel;
4600 op_class = p2p->cfg->reg_class;
4610 if (p2p_freq_to_channel(freq, &op_class, &channel) < 0) {
4619 if (p2p_freq_to_channel(client_freq, &op_class, &channel) < 0) {
4628 p2p_buf_add_oob_go_neg_channel(buf, p2p->cfg->country, op_class,