aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-03-01 12:22:29 (GMT)
committerJouni Malinen <j@w1.fi>2013-03-01 18:01:01 (GMT)
commit5473362458d503bfbbd7137c4bb068df40e32676 (patch)
treef7938d6a1c4d8f99b9e6d5ba55eb932d2f3e286b /wpa_supplicant/dbus
parentf5877af01e646af99bd4df0f640cd768e4403142 (diff)
downloadhostap-5473362458d503bfbbd7137c4bb068df40e32676.zip
hostap-5473362458d503bfbbd7137c4bb068df40e32676.tar.gz
hostap-5473362458d503bfbbd7137c4bb068df40e32676.tar.bz2
P2P: Use peer's channel list to limit GO freq on invitation
Peer device includes its list of allowed operating channels in the Invitation Response frame. When we are becoming the GO, use that list from the peer to filter out acceptable channels to avoid selecting a channel that the peer is unable to use. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/dbus')
-rw-r--r--wpa_supplicant/dbus/dbus_new_handlers_p2p.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
index 6279f41..6ec96df 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
@@ -346,7 +346,8 @@ DBusMessage * wpas_dbus_handler_p2p_group_add(DBusMessage *message,
if (ssid == NULL || ssid->disabled != 2)
goto inv_args;
- if (wpas_p2p_group_add_persistent(wpa_s, ssid, 0, freq, 0)) {
+ if (wpas_p2p_group_add_persistent(wpa_s, ssid, 0, freq, 0,
+ NULL)) {
reply = wpas_dbus_error_unknown_error(
message,
"Failed to reinvoke a persistent group");