Lines Matching refs:op_channel
1355 u8 op_class, op_channel; in p2p_prepare_channel_pref() local
1360 if (p2p_freq_to_channel(freq, &op_class, &op_channel) < 0) { in p2p_prepare_channel_pref()
1365 if (!p2p_channels_includes(&p2p->cfg->channels, op_class, op_channel) && in p2p_prepare_channel_pref()
1367 op_channel))) { in p2p_prepare_channel_pref()
1369 freq, op_class, op_channel); in p2p_prepare_channel_pref()
1374 p2p->op_channel = op_channel; in p2p_prepare_channel_pref()
1380 p2p->channels.reg_class[0].channel[0] = p2p->op_channel; in p2p_prepare_channel_pref()
1392 u8 op_class, op_channel; in p2p_prepare_channel_best() local
1401 p2p_freq_to_channel(p2p->best_freq_overall, &op_class, &op_channel) in p2p_prepare_channel_best()
1405 p2p->op_channel = op_channel; in p2p_prepare_channel_best()
1408 p2p_freq_to_channel(p2p->best_freq_5, &op_class, &op_channel) in p2p_prepare_channel_best()
1412 p2p->op_channel = op_channel; in p2p_prepare_channel_best()
1416 &op_channel) == 0) { in p2p_prepare_channel_best()
1419 p2p->op_channel = op_channel; in p2p_prepare_channel_best()
1426 p2p->op_channel = p2p->cfg->pref_chan[0].chan; in p2p_prepare_channel_best()
1428 &p2p->op_reg_class, &p2p->op_channel) == in p2p_prepare_channel_best()
1431 p2p->op_reg_class, p2p->op_channel); in p2p_prepare_channel_best()
1433 &p2p->op_reg_class, &p2p->op_channel) == in p2p_prepare_channel_best()
1436 p2p->op_reg_class, p2p->op_channel); in p2p_prepare_channel_best()
1438 &p2p->op_reg_class, &p2p->op_channel) == in p2p_prepare_channel_best()
1441 p2p->op_reg_class, p2p->op_channel); in p2p_prepare_channel_best()
1444 p2p->cfg->op_channel)) { in p2p_prepare_channel_best()
1447 p2p->op_channel = p2p->cfg->op_channel; in p2p_prepare_channel_best()
1450 &p2p->op_channel) == 0) { in p2p_prepare_channel_best()
1452 p2p->op_reg_class, p2p->op_channel); in p2p_prepare_channel_best()
1458 &p2p->op_channel); in p2p_prepare_channel_best()
1460 p2p->op_channel, p2p->op_reg_class); in p2p_prepare_channel_best()
1503 p2p->op_reg_class, p2p->op_channel, in p2p_prepare_channel()
1806 p2p->op_channel); in p2p_go_complete()
4704 u8 *op_channel) in p2p_config_get_random_social() argument
4706 return p2p_channel_random_social(&p2p->channels, op_class, op_channel); in p2p_config_get_random_social()
4765 int p2p_set_oper_channel(struct p2p_data *p2p, u8 op_reg_class, u8 op_channel, in p2p_set_oper_channel() argument
4768 if (p2p_channel_to_freq(op_reg_class, op_channel) < 0) in p2p_set_oper_channel()
4772 op_reg_class, op_channel); in p2p_set_oper_channel()
4774 p2p->cfg->op_channel = op_channel; in p2p_set_oper_channel()