projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e3cba1
)
Set SSID and BSSID if both information are available
author
Marcel Holtmann
<marcel@holtmann.org>
Thu, 26 Mar 2009 09:51:00 +0000
(
02:51
-0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 26 Mar 2009 09:51:00 +0000
(
02:51
-0700)
plugins/supplicant.c
patch
|
blob
|
history
diff --git
a/plugins/supplicant.c
b/plugins/supplicant.c
index
bc75f6c
..
f78a3f5
100644
(file)
--- a/
plugins/supplicant.c
+++ b/
plugins/supplicant.c
@@
-680,11
+680,12
@@
static int set_network(struct supplicant_task *task,
DBUS_TYPE_STRING_AS_STRING DBUS_TYPE_VARIANT_AS_STRING
DBUS_DICT_ENTRY_END_CHAR_AS_STRING, &dict);
- if (len > 0
&& address == NULL
) {
- const char *scan = "1";
-
- connman_dbus_dict_append_variant(&dict, "scan_ssid",
+ if (len > 0) {
+ if (address == NULL) {
+ const char *scan = "1";
+
connman_dbus_dict_append_variant(&dict, "scan_ssid",
DBUS_TYPE_STRING, &scan);
+ }
connman_dbus_dict_append_array(&dict, "ssid",
DBUS_TYPE_BYTE, &network, len);