Skip to content

Commit a409d31

Browse files
krish2718kartben
authored andcommitted
drivers: nrf_wifi: Fix get config
Only a single condition is specific to RAW mode, rest should be unconditional. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
1 parent 02b4c1b commit a409d31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/wifi/nrf_wifi/src/net_if.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ int nrf_wifi_if_get_config_zep(const struct device *dev,
946946
struct ethernet_config *config)
947947
{
948948
int ret = -1;
949-
#ifdef CONFIG_NRF70_RAW_DATA_TX
949+
950950
struct nrf_wifi_vif_ctx_zep *vif_ctx_zep = NULL;
951951
struct nrf_wifi_ctx_zep *rpu_ctx_zep = NULL;
952952
struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx = NULL;
@@ -986,11 +986,12 @@ int nrf_wifi_if_get_config_zep(const struct device *dev,
986986
}
987987

988988
memset(config, 0, sizeof(struct ethernet_config));
989-
989+
#ifdef CONFIG_NRF70_RAW_DATA_TX
990990
if (type == ETHERNET_CONFIG_TYPE_TXINJECTION_MODE) {
991991
config->txinjection_mode =
992992
sys_dev_ctx->vif_ctx[vif_ctx_zep->vif_idx]->txinjection_mode;
993993
}
994+
#endif
994995
#ifdef CONFIG_NRF70_TCP_IP_CHECKSUM_OFFLOAD
995996
if (type == ETHERNET_CONFIG_TYPE_TX_CHECKSUM_SUPPORT ||
996997
type == ETHERNET_CONFIG_TYPE_RX_CHECKSUM_SUPPORT) {
@@ -1006,7 +1007,6 @@ int nrf_wifi_if_get_config_zep(const struct device *dev,
10061007
unlock:
10071008
k_mutex_unlock(&vif_ctx_zep->vif_lock);
10081009
out:
1009-
#endif
10101010
return ret;
10111011
}
10121012

0 commit comments

Comments
 (0)