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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue