projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0dee79
)
P2P: Verify that forced channel is suitable for autonomous GO
author
Jouni Malinen
<jouni.malinen@atheros.com>
Fri, 15 Oct 2010 15:46:02 +0000
(18:46 +0300)
committer
Jouni Malinen
<j@w1.fi>
Fri, 15 Oct 2010 15:48:06 +0000
(18:48 +0300)
wpa_supplicant/p2p_supplicant.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/p2p_supplicant.c
b/wpa_supplicant/p2p_supplicant.c
index
3a153ec
..
cfe3756
100644
(file)
--- a/
wpa_supplicant/p2p_supplicant.c
+++ b/
wpa_supplicant/p2p_supplicant.c
@@
-2860,6
+2860,13
@@
int wpas_p2p_group_add(struct wpa_supplicant *wpa_s, int persistent_group,
{
struct p2p_go_neg_results params;
+ if (freq > 0 && !p2p_supported_freq(wpa_s->global->p2p, freq)) {
+ wpa_printf(MSG_DEBUG, "P2P: The forced channel for GO "
+ "(%u MHz) is not supported for P2P uses",
+ freq);
+ return -1;
+ }
+
wpas_p2p_init_go_params(wpa_s, ¶ms, freq);
p2p_go_params(wpa_s->global->p2p, ¶ms);
params.persistent_group = persistent_group;