mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-10 15:05:13 +00:00
wireless/wapi: correct check of return value
VELAPLATFO-2999 ---------------------- * Name: ioctl ... * Returned Value: * >=0 on success (positive non-zero values are cmd-specific) * -1 on failure with errno set properly: Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
19ba886ec2
commit
ba030e5843
1 changed files with 1 additions and 1 deletions
|
|
@ -991,7 +991,7 @@ static int wapi_save_config_cmd(int sock, int argc, FAR char **argv)
|
|||
&conf.alg,
|
||||
psk,
|
||||
&psk_len);
|
||||
if (ret == 0)
|
||||
if (ret >= 0)
|
||||
{
|
||||
conf.passphrase = psk;
|
||||
conf.phraselen = psk_len;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue