mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-13 07:11:55 +00:00
manage prov type
This commit is contained in:
parent
45f2172a59
commit
3dc2e252b9
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue