From bc25c094a8cf3064f4f9c1e8060b46e1989edf95 Mon Sep 17 00:00:00 2001 From: Ravi Dondaputi Date: Tue, 1 Oct 2024 16:39:29 +0530 Subject: [PATCH] nrf_wifi: Stringify country code before passing to firmware Country code is expected to be a string. But the build time macro is not passing a string. Use `STRINGIFY` to fix this. Signed-off-by: Ravi Dondaputi --- drivers/nrf_wifi/fw_if/umac_if/src/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nrf_wifi/fw_if/umac_if/src/cmd.c b/drivers/nrf_wifi/fw_if/umac_if/src/cmd.c index 01fc48ba..4202dc93 100644 --- a/drivers/nrf_wifi/fw_if/umac_if/src/cmd.c +++ b/drivers/nrf_wifi/fw_if/umac_if/src/cmd.c @@ -180,7 +180,7 @@ enum nrf_wifi_status umac_cmd_init(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, NUM_EDGE_BACKOFF); nrf_wifi_osal_mem_cpy(umac_cmd_data->country_code, - NRF70_REG_DOMAIN, + STRINGIFY(NRF70_REG_DOMAIN), NRF_WIFI_COUNTRY_CODE_LEN); #ifdef NRF70_RPU_EXTEND_TWT_SP