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:
parent
4446b34b2c
commit
7c13116007
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue