P2P: Add support for 60 GHz social channel
Support 60 GHz band in P2P module by selecting random social channel from all supported social channels in 2.4 GHz and 60 GHz bands. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
b6ebdfbedd
commit
1595eb93ae
4 changed files with 108 additions and 36 deletions
|
@ -1287,8 +1287,8 @@ static void p2p_prepare_channel_best(struct p2p_data *p2p)
|
|||
} else if (p2p_channel_random_social(&p2p->cfg->channels,
|
||||
&p2p->op_reg_class,
|
||||
&p2p->op_channel) == 0) {
|
||||
p2p_dbg(p2p, "Select random available social channel %d from 2.4 GHz band as operating channel preference",
|
||||
p2p->op_channel);
|
||||
p2p_dbg(p2p, "Select random available social channel (op_class %u channel %u) as operating channel preference",
|
||||
p2p->op_reg_class, p2p->op_channel);
|
||||
} else {
|
||||
/* Select any random available channel from the first available
|
||||
* operating class */
|
||||
|
@ -4095,6 +4095,13 @@ void p2p_set_managed_oper(struct p2p_data *p2p, int enabled)
|
|||
}
|
||||
|
||||
|
||||
int p2p_config_get_random_social(struct p2p_config *p2p, u8 *op_class,
|
||||
u8 *op_channel)
|
||||
{
|
||||
return p2p_channel_random_social(&p2p->channels, op_class, op_channel);
|
||||
}
|
||||
|
||||
|
||||
int p2p_set_listen_channel(struct p2p_data *p2p, u8 reg_class, u8 channel,
|
||||
u8 forced)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue