Skip to content

Commit

Permalink
manage prov type
Browse files Browse the repository at this point in the history
  • Loading branch information
albfan committed Jul 29, 2015
1 parent 1b698ca commit de76677
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/wifi/wifid-supplicant.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,13 @@ int supplicant_peer_connect(struct supplicant_peer *sp,
if (!pin || !*pin)
return -EINVAL;

r = wpas_message_append(m, "ss", pin, "pin");
if (r < 0)
return log_ERR(r);
} else if (!strcmp(prov_type, "keypad")) {
if (!pin || !*pin)
return -EINVAL;

r = wpas_message_append(m, "ss", pin, "keypad");
if (r < 0)
return log_ERR(r);
Expand Down

0 comments on commit de76677

Please sign in to comment.