Hi all, According Tomasz and Patrick review. This v2 creates two helper functions "check_wpspin" and "check_passphrase", These functions return "-ENOKEY" in case of error, and 0 if the passphrase is valid or NULL.
As the return value created in 2 is used in 3, the patch 2 and 3 may be merged, same comments for patch 4, 5 and 6. Julien Massot (6): gsupplicant: Interpret "invalid message format" as invalid-key error service: Check the passphrase validity network: Avoids connection to a network with invalid key service: request_input_cb handle wps setting service: Add function to check the WPS PIN validity service: Move setting of WPS input from agent to service. gsupplicant/supplicant.c | 9 +++- src/agent.c | 20 +------ src/connman.h | 9 ++-- src/network.c | 10 +++- src/service.c | 133 ++++++++++++++++++++++++++++++++++++++++------ src/wispr.c | 1 + 6 files changed, 139 insertions(+), 43 deletions(-) -- 1.7.5.4 _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
