Skip to content

Commit

Permalink
lakka: consider the identifiers in connmanctl services output
Browse files Browse the repository at this point in the history
  • Loading branch information
igungor committed Nov 22, 2016
1 parent 9ec8781 commit 2641c12
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wifi/drivers/connmanctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ static bool connmanctl_connect_ssid(unsigned i, const char* passphrase)
const char *line = lines->elems[i].data;

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)
return false;

Expand Down

0 comments on commit 2641c12

Please sign in to comment.