Skip to content

Commit

Permalink
nrf_wifi: Stringify country code before passing to firmware
Browse files Browse the repository at this point in the history
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 <ravi.dondaputi@nordicsemi.no>
  • Loading branch information
rado17 authored and carlescufi committed Oct 7, 2024
1 parent ee6213b commit bc25c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nrf_wifi/fw_if/umac_if/src/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc25c09

Please sign in to comment.