mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
lakka: consider the identifiers in connmanctl services output
This commit is contained in:
parent
9ec8781a2a
commit
2641c1214c
@ -140,7 +140,12 @@ static bool connmanctl_connect_ssid(unsigned i, const char* passphrase)
|
|||||||
const char *line = lines->elems[i].data;
|
const char *line = lines->elems[i].data;
|
||||||
|
|
||||||
static struct string_list* list = NULL;
|
static struct string_list* list = NULL;
|
||||||
list = string_split(line, " ");
|
// connmanctl services outputs a 4 character prefixed lines, either whispace
|
||||||
|
// or an identifier. i.e.:
|
||||||
|
// $ connmanctl services
|
||||||
|
// '*A0 SSID some_unique_id'
|
||||||
|
// ' SSID some_another_unique_id'
|
||||||
|
list = string_split(line+4, " ");
|
||||||
if(!list)
|
if(!list)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user