From 3dc2e252b98e5ba0dd01388ee3ac347b087912ae Mon Sep 17 00:00:00 2001 From: albfan Date: Wed, 29 Jul 2015 20:11:47 +0200 Subject: [PATCH] manage prov type --- src/wifi/wifid-supplicant.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/wifi/wifid-supplicant.c b/src/wifi/wifid-supplicant.c index 165668f..be8bde6 100644 --- a/src/wifi/wifid-supplicant.c +++ b/src/wifi/wifid-supplicant.c @@ -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);