Skip to content

Commit 72ec188

Browse files
krish2718github-actions[bot]
authored andcommitted
[nrf fromtree] drivers: nrf_wifi: Fix get config
Only a single condition is specific to RAW mode, rest should be unconditional. Signed-off-by: Chaitanya Tata <[email protected]> (cherry picked from commit a409d31) (cherry picked from commit bad9e65)
1 parent 4575fc8 commit 72ec188

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/wifi/nrf_wifi/src/net_if.c

+3-3
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) {
@@ -1011,7 +1012,6 @@ int nrf_wifi_if_get_config_zep(const struct device *dev,
10111012
unlock:
10121013
k_mutex_unlock(&vif_ctx_zep->vif_lock);
10131014
out:
1014-
#endif
10151015
return ret;
10161016
}
10171017

0 commit comments

Comments
 (0)