dbus: Fix new dbus API for WPS

Start() method's optional Bssid argument needs a byte array, not an
array of arrays.
This commit is contained in:
Tomasz Bursztyka 2010-11-26 19:47:24 +02:00 committed by Jouni Malinen
parent f2ed8023c4
commit 1b232e479d

View file

@ -107,7 +107,7 @@ static int wpas_dbus_handler_wps_bssid(DBusMessage *message,
dbus_message_iter_recurse(entry_iter, &variant_iter); dbus_message_iter_recurse(entry_iter, &variant_iter);
if (dbus_message_iter_get_arg_type(&variant_iter) != DBUS_TYPE_ARRAY || if (dbus_message_iter_get_arg_type(&variant_iter) != DBUS_TYPE_ARRAY ||
dbus_message_iter_get_element_type(&variant_iter) != dbus_message_iter_get_element_type(&variant_iter) !=
DBUS_TYPE_ARRAY) { DBUS_TYPE_BYTE) {
wpa_printf(MSG_DEBUG, "dbus: WPS.Start - Wrong Bssid type, " wpa_printf(MSG_DEBUG, "dbus: WPS.Start - Wrong Bssid type, "
"byte array required"); "byte array required");
*reply = wpas_dbus_error_invalid_args( *reply = wpas_dbus_error_invalid_args(