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:
liqinhui 2023-11-07 20:23:24 +08:00 committed by Xiang Xiao
parent 16691f29a9
commit 68a0621b39

View File

@ -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;