simwifi: Connect the wifi whose ssid contains the special charaters.

When setting the essid that contains the special characters (\"'),
we need to add an escape (\) for them.

Signed-off-by: liqinhui <liqinhui@xiaomi.com>
This commit is contained in:
liqinhui 2023-11-15 11:00:42 +08:00 committed by Xiang Xiao
parent 4446b34b2c
commit 7c13116007
1 changed files with 6 additions and 1 deletions

View File

@ -453,7 +453,12 @@ static int utf8_escape(char *outp, int out_size,
switch (*inp)
{
case '\\':
case '\'':
if (*(inp + 1) == '\'')
{
inp++;
break;
}
case '\"':
if (res_size++ >= out_size)
{