P2P: Fix common frequencies calculation for a group
Ignore group members for which there is no supported channels information when calculating common group frequencies. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
7487ef144e
commit
dc2744f922
1 changed files with 1 additions and 1 deletions
|
@ -1112,7 +1112,7 @@ int p2p_group_get_common_freqs(struct p2p_group *group, int *common_freqs,
|
||||||
struct p2p_device *dev;
|
struct p2p_device *dev;
|
||||||
|
|
||||||
dev = p2p_get_device(group->p2p, m->dev_addr);
|
dev = p2p_get_device(group->p2p, m->dev_addr);
|
||||||
if (!dev)
|
if (!dev || dev->channels.reg_classes == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
p2p_channels_intersect(&intersect, &dev->channels, &res);
|
p2p_channels_intersect(&intersect, &dev->channels, &res);
|
||||||
|
|
Loading…
Reference in a new issue