From 68a0621b398de070dd8a6fcf77b0f253200e36f0 Mon Sep 17 00:00:00 2001 From: liqinhui Date: Tue, 7 Nov 2023 20:23:24 +0800 Subject: [PATCH] simwifi: Fix a compile error. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sim/sim_wifidriver.c:569:31: warning: implicit declaration of function ‘hex2num’ [-Wimplicit-function-declaration] 569 | val = hex2num(*pos); | ^~~~~~~ Signed-off-by: liqinhui --- arch/sim/src/sim/sim_wifidriver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sim/src/sim/sim_wifidriver.c b/arch/sim/src/sim/sim_wifidriver.c index bc0d6b4039..52aced6e5d 100644 --- a/arch/sim/src/sim/sim_wifidriver.c +++ b/arch/sim/src/sim/sim_wifidriver.c @@ -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;