projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7487ef1
)
P2P: Fix common frequencies calculation for a group
author
Ilan Peer
<ilan.peer@intel.com>
Mon, 5 Sep 2016 14:33:01 +0000
(17:33 +0300)
committer
Jouni Malinen
<j@w1.fi>
Thu, 22 Sep 2016 20:48:14 +0000
(23:48 +0300)
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>
src/p2p/p2p_group.c
patch
|
blob
|
history
diff --git
a/src/p2p/p2p_group.c
b/src/p2p/p2p_group.c
index
3aed6bd
..
051b4e3
100644
(file)
--- a/
src/p2p/p2p_group.c
+++ b/
src/p2p/p2p_group.c
@@
-1112,7
+1112,7
@@
int p2p_group_get_common_freqs(struct p2p_group *group, int *common_freqs,
struct p2p_device *dev;
dev = p2p_get_device(group->p2p, m->dev_addr);
- if (!dev)
+ if (!dev
|| dev->channels.reg_classes == 0
)
continue;
p2p_channels_intersect(&intersect, &dev->channels, &res);