P2P: Include p2p_6ghz_disable in global configuration
Previously, the configuration to disable the 6 GHz band remained local to the P2P interface. With this there is a possibility of 6 GHz channels being included in the channel list when the channel list needs to be updated if the state changes on one of the interfaces. Include the configuration to disable the 6 GHz band for P2P as a global configuration value to prevent the inclusion of 6 GHz channels in the channel list for P2P when the channel list needs to be updated during the state change in one of the interfaces. Signed-off-by: Sreeramya Soratkal <ssramya@codeaurora.org>
This commit is contained in:
parent
60c902f408
commit
2ffd3bb4b6
3 changed files with 23 additions and 5 deletions
|
@ -2913,6 +2913,14 @@ void p2p_group_formation_failed(struct p2p_data *p2p)
|
|||
}
|
||||
|
||||
|
||||
bool is_p2p_6ghz_disabled(struct p2p_data *p2p)
|
||||
{
|
||||
if (p2p)
|
||||
return p2p->cfg->p2p_6ghz_disable;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
struct p2p_data * p2p_init(const struct p2p_config *cfg)
|
||||
{
|
||||
struct p2p_data *p2p;
|
||||
|
|
|
@ -500,6 +500,11 @@ struct p2p_config {
|
|||
*/
|
||||
struct p2p_channel *pref_chan;
|
||||
|
||||
/**
|
||||
* p2p_6ghz_disable - Disable 6GHz for P2P operations
|
||||
*/
|
||||
bool p2p_6ghz_disable;
|
||||
|
||||
/**
|
||||
* pri_dev_type - Primary Device Type (see WPS)
|
||||
*/
|
||||
|
@ -2100,6 +2105,8 @@ void p2p_update_channel_list(struct p2p_data *p2p,
|
|||
const struct p2p_channels *chan,
|
||||
const struct p2p_channels *cli_chan);
|
||||
|
||||
bool is_p2p_6ghz_disabled(struct p2p_data *p2p);
|
||||
|
||||
/**
|
||||
* p2p_set_best_channels - Update best channel information
|
||||
* @p2p: P2P module context from p2p_init()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue