You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2023/04/29 13:03:00 UTC

[nuttx-apps] 02/03: wireless/wapi: change `wapi_psk_cmd` error code for invalid alg

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit fe8232fba01f2a09d1eff576d15cace8f9f3409d
Author: Tiago Medicci Serrano <ti...@gmail.com>
AuthorDate: Thu Apr 27 09:28:51 2023 -0300

    wireless/wapi: change `wapi_psk_cmd` error code for invalid alg
---
 wireless/wapi/src/wapi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wireless/wapi/src/wapi.c b/wireless/wapi/src/wapi.c
index 5aca9859e..3016f52af 100644
--- a/wireless/wapi/src/wapi.c
+++ b/wireless/wapi/src/wapi.c
@@ -591,7 +591,7 @@ static int wapi_psk_cmd(int sock, int argc, FAR char **argv)
         break;
 
       default:
-        return -1;
+        return -EINVAL;
     }
 
   ret = wpa_driver_wext_set_auth_param(sock, argv[0],