simwifi: Fix a compile error.
sim/sim_wifidriver.c:569:31: warning: implicit declaration of function ‘hex2num’ [-Wimplicit-function-declaration] 569 | val = hex2num(*pos); | ^~~~~~~ Signed-off-by: liqinhui <liqinhui@xiaomi.com>
This commit is contained in:
parent
16691f29a9
commit
68a0621b39
@ -566,7 +566,7 @@ static size_t wpa_ssid_decode(uint8_t *buf, size_t maxlen, const char *str)
|
||||
val = hex2byte(pos);
|
||||
if (val < 0)
|
||||
{
|
||||
val = hex2num(*pos);
|
||||
val = hex2nibble(*pos);
|
||||
if (val < 0)
|
||||
break;
|
||||
buf[len++] = val;
|
||||
|
Loading…
Reference in New Issue
Block a user