anchao commented on code in PR #1200: URL: https://github.com/apache/incubator-nuttx-apps/pull/1200#discussion_r899717404
########## wireless/wapi/src/wapi.c: ########## @@ -521,15 +521,64 @@ static int wapi_essid_cmd(int sock, int argc, FAR char **argv) static int wapi_psk_cmd(int sock, int argc, FAR char **argv) { enum wpa_alg_e alg_flag; + uint8_t auth_wpa; + int cipher; + int ret; /* Convert input strings to values */ alg_flag = (enum wpa_alg_e)wapi_str2ndx(argv[2], g_wapi_alg_flags); - /* Set the Passphrase */ + if (argc > 3) + { + auth_wpa = atoi(argv[3]); + } + else + { + auth_wpa = CONFIG_NETINIT_WAPI_AUTHWPA; Review Comment: Done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org