aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus/dbus_new_handlers_wps.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@nokia.com>2010-11-26 17:47:24 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-26 17:47:24 (GMT)
commit1b232e479d1906ccd70d40750a50ff554d003331 (patch)
tree9b78f5acd13bb27967b658ded2403c46dd9aad05 /wpa_supplicant/dbus/dbus_new_handlers_wps.c
parentf2ed8023c47333b6db0685f7376b75f7e684d23b (diff)
downloadhostap-1b232e479d1906ccd70d40750a50ff554d003331.zip
hostap-1b232e479d1906ccd70d40750a50ff554d003331.tar.gz
hostap-1b232e479d1906ccd70d40750a50ff554d003331.tar.bz2
dbus: Fix new dbus API for WPS
Start() method's optional Bssid argument needs a byte array, not an array of arrays.
Diffstat (limited to 'wpa_supplicant/dbus/dbus_new_handlers_wps.c')
-rw-r--r--wpa_supplicant/dbus/dbus_new_handlers_wps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers_wps.c b/wpa_supplicant/dbus/dbus_new_handlers_wps.c
index 05aed5e..c118d73 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers_wps.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers_wps.c
@@ -107,7 +107,7 @@ static int wpas_dbus_handler_wps_bssid(DBusMessage *message,
dbus_message_iter_recurse(entry_iter, &variant_iter);
if (dbus_message_iter_get_arg_type(&variant_iter) != DBUS_TYPE_ARRAY ||
dbus_message_iter_get_element_type(&variant_iter) !=
- DBUS_TYPE_ARRAY) {
+ DBUS_TYPE_BYTE) {
wpa_printf(MSG_DEBUG, "dbus: WPS.Start - Wrong Bssid type, "
"byte array required");
*reply = wpas_dbus_error_invalid_args(