File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
drivers/wifi/nrf_wifi/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -946,7 +946,7 @@ int nrf_wifi_if_get_config_zep(const struct device *dev,
946
946
struct ethernet_config * config )
947
947
{
948
948
int ret = -1 ;
949
- #ifdef CONFIG_NRF70_RAW_DATA_TX
949
+
950
950
struct nrf_wifi_vif_ctx_zep * vif_ctx_zep = NULL ;
951
951
struct nrf_wifi_ctx_zep * rpu_ctx_zep = NULL ;
952
952
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,
986
986
}
987
987
988
988
memset (config , 0 , sizeof (struct ethernet_config ));
989
-
989
+ #ifdef CONFIG_NRF70_RAW_DATA_TX
990
990
if (type == ETHERNET_CONFIG_TYPE_TXINJECTION_MODE ) {
991
991
config -> txinjection_mode =
992
992
sys_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> txinjection_mode ;
993
993
}
994
+ #endif
994
995
#ifdef CONFIG_NRF70_TCP_IP_CHECKSUM_OFFLOAD
995
996
if (type == ETHERNET_CONFIG_TYPE_TX_CHECKSUM_SUPPORT ||
996
997
type == ETHERNET_CONFIG_TYPE_RX_CHECKSUM_SUPPORT ) {
@@ -1006,7 +1007,6 @@ int nrf_wifi_if_get_config_zep(const struct device *dev,
1006
1007
unlock :
1007
1008
k_mutex_unlock (& vif_ctx_zep -> vif_lock );
1008
1009
out :
1009
- #endif
1010
1010
return ret ;
1011
1011
}
1012
1012
You can’t perform that action at this time.
0 commit comments