projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6da5dd
)
Allow numbers in path for network objects
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 15 Dec 2008 15:53:24 +0000
(16:53 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 15 Dec 2008 15:53:24 +0000
(16:53 +0100)
plugins/wifi.c
patch
|
blob
|
history
diff --git
a/plugins/wifi.c
b/plugins/wifi.c
index
9cddb61
..
be2358c
100644
(file)
--- a/
plugins/wifi.c
+++ b/
plugins/wifi.c
@@
-316,9
+316,9
@@
static void scan_result(struct connman_element *device,
temp = g_strdup(network->identifier);
for (i = 0; i < strlen(temp); i++) {
-
gchar tmp = g_ascii_tolower(temp[i])
;
-
-
if (tmp < 'a' || tmp > 'z'
)
+
char tmp = temp[i]
;
+ if ((tmp < '0' || tmp > '9') && (tmp < 'A' || tmp > 'Z') &&
+
(tmp < 'a' || tmp > 'z')
)
temp[i] = '_';
}