wifisim:Modify the problem of password verification.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
This commit is contained in:
parent
2e9f00d0db
commit
10eaf1eafe
1 changed files with 1 additions and 1 deletions
|
|
@ -747,7 +747,7 @@ static int verify_password(FAR struct wifi_sim_s *sta,
|
|||
{
|
||||
ret = OK;
|
||||
}
|
||||
else if (!memcmp(sta->password, bss->password, strlen(sta->password)))
|
||||
else if (!strncmp(sta->password, bss->password, sizeof(sta->password)))
|
||||
{
|
||||
ret = OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue