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>
struct p2p_device *dev;
dev = p2p_get_device(group->p2p, m->dev_addr);
struct p2p_device *dev;
dev = p2p_get_device(group->p2p, m->dev_addr);
+ if (!dev || dev->channels.reg_classes == 0)
continue;
p2p_channels_intersect(&intersect, &dev->channels, &res);
continue;
p2p_channels_intersect(&intersect, &dev->channels, &res);