@@ -178,7 +178,7 @@ void nrf_wifi_rpu_recovery_cb(void *vif_ctx_handle,
178
178
{
179
179
struct nrf_wifi_fmac_vif_ctx * vif_ctx = vif_ctx_handle ;
180
180
struct nrf_wifi_fmac_dev_ctx * fmac_dev_ctx = NULL ;
181
- struct nrf_wifi_fmac_dev_ctx_def * def_dev_ctx = NULL ;
181
+ struct nrf_wifi_sys_fmac_dev_ctx * sys_dev_ctx = NULL ;
182
182
struct nrf_wifi_vif_ctx_zep * vif_ctx_zep = NULL ;
183
183
184
184
if (!vif_ctx ) {
@@ -188,9 +188,9 @@ void nrf_wifi_rpu_recovery_cb(void *vif_ctx_handle,
188
188
}
189
189
190
190
fmac_dev_ctx = vif_ctx -> fmac_dev_ctx ;
191
- def_dev_ctx = wifi_dev_priv (fmac_dev_ctx );
192
- if (!def_dev_ctx ) {
193
- LOG_ERR ("%s: def_dev_ctx is NULL" ,
191
+ sys_dev_ctx = wifi_dev_priv (fmac_dev_ctx );
192
+ if (!sys_dev_ctx ) {
193
+ LOG_ERR ("%s: sys_dev_ctx is NULL" ,
194
194
__func__ );
195
195
goto out ;
196
196
}
@@ -238,10 +238,10 @@ void nrf_wifi_if_sniffer_rx_frm(void *os_vif_ctx, void *frm,
238
238
struct net_pkt * pkt ;
239
239
struct nrf_wifi_ctx_zep * rpu_ctx_zep = vif_ctx_zep -> rpu_ctx_zep ;
240
240
struct nrf_wifi_fmac_dev_ctx * fmac_dev_ctx = rpu_ctx_zep -> rpu_ctx ;
241
- struct nrf_wifi_fmac_dev_ctx_def * def_dev_ctx = NULL ;
241
+ struct nrf_wifi_sys_fmac_dev_ctx * sys_dev_ctx = NULL ;
242
242
int ret ;
243
243
244
- def_dev_ctx = wifi_dev_priv (fmac_dev_ctx );
244
+ sys_dev_ctx = wifi_dev_priv (fmac_dev_ctx );
245
245
246
246
pkt = net_raw_pkt_from_nbuf (iface , frm , sizeof (struct raw_rx_pkt_header ),
247
247
raw_rx_hdr ,
@@ -269,11 +269,11 @@ void nrf_wifi_if_rx_frm(void *os_vif_ctx, void *frm)
269
269
int status ;
270
270
struct nrf_wifi_ctx_zep * rpu_ctx_zep = vif_ctx_zep -> rpu_ctx_zep ;
271
271
struct nrf_wifi_fmac_dev_ctx * fmac_dev_ctx = rpu_ctx_zep -> rpu_ctx ;
272
- struct nrf_wifi_fmac_dev_ctx_def * def_dev_ctx = NULL ;
272
+ struct nrf_wifi_sys_fmac_dev_ctx * sys_dev_ctx = NULL ;
273
273
struct rpu_host_stats * host_stats = NULL ;
274
274
275
- def_dev_ctx = wifi_dev_priv (fmac_dev_ctx );
276
- host_stats = & def_dev_ctx -> host_stats ;
275
+ sys_dev_ctx = wifi_dev_priv (fmac_dev_ctx );
276
+ host_stats = & sys_dev_ctx -> host_stats ;
277
277
host_stats -> total_rx_pkts ++ ;
278
278
279
279
pkt = net_pkt_from_nbuf (iface , frm );
@@ -356,7 +356,7 @@ int nrf_wifi_if_send(const struct device *dev,
356
356
#ifdef CONFIG_NRF70_DATA_TX
357
357
struct nrf_wifi_vif_ctx_zep * vif_ctx_zep = NULL ;
358
358
struct nrf_wifi_ctx_zep * rpu_ctx_zep = NULL ;
359
- struct nrf_wifi_fmac_dev_ctx_def * def_dev_ctx = NULL ;
359
+ struct nrf_wifi_sys_fmac_dev_ctx * sys_dev_ctx = NULL ;
360
360
struct rpu_host_stats * host_stats = NULL ;
361
361
void * nbuf = NULL ;
362
362
@@ -383,8 +383,8 @@ int nrf_wifi_if_send(const struct device *dev,
383
383
goto unlock ;
384
384
}
385
385
386
- def_dev_ctx = wifi_dev_priv (rpu_ctx_zep -> rpu_ctx );
387
- host_stats = & def_dev_ctx -> host_stats ;
386
+ sys_dev_ctx = wifi_dev_priv (rpu_ctx_zep -> rpu_ctx );
387
+ host_stats = & sys_dev_ctx -> host_stats ;
388
388
nbuf = net_pkt_to_nbuf (pkt );
389
389
if (!nbuf ) {
390
390
LOG_DBG ("Failed to allocate net_pkt" );
@@ -951,7 +951,7 @@ int nrf_wifi_if_get_config_zep(const struct device *dev,
951
951
struct nrf_wifi_vif_ctx_zep * vif_ctx_zep = NULL ;
952
952
struct nrf_wifi_ctx_zep * rpu_ctx_zep = NULL ;
953
953
struct nrf_wifi_fmac_dev_ctx * fmac_dev_ctx = NULL ;
954
- struct nrf_wifi_fmac_dev_ctx_def * def_dev_ctx = NULL ;
954
+ struct nrf_wifi_sys_fmac_dev_ctx * sys_dev_ctx = NULL ;
955
955
956
956
if (!dev || !config ) {
957
957
LOG_ERR ("%s: Invalid parameters" ,
@@ -979,9 +979,9 @@ int nrf_wifi_if_get_config_zep(const struct device *dev,
979
979
goto unlock ;
980
980
}
981
981
fmac_dev_ctx = rpu_ctx_zep -> rpu_ctx ;
982
- def_dev_ctx = wifi_dev_priv (fmac_dev_ctx );
983
- if (!def_dev_ctx ) {
984
- LOG_ERR ("%s: def_dev_ctx is NULL" ,
982
+ sys_dev_ctx = wifi_dev_priv (fmac_dev_ctx );
983
+ if (!sys_dev_ctx ) {
984
+ LOG_ERR ("%s: sys_dev_ctx is NULL" ,
985
985
__func__ );
986
986
goto unlock ;
987
987
}
@@ -990,7 +990,7 @@ int nrf_wifi_if_get_config_zep(const struct device *dev,
990
990
991
991
if (type == ETHERNET_CONFIG_TYPE_TXINJECTION_MODE ) {
992
992
config -> txinjection_mode =
993
- def_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> txinjection_mode ;
993
+ sys_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> txinjection_mode ;
994
994
}
995
995
#ifdef CONFIG_NRF70_TCP_IP_CHECKSUM_OFFLOAD
996
996
if (type == ETHERNET_CONFIG_TYPE_TX_CHECKSUM_SUPPORT ||
@@ -1018,7 +1018,7 @@ int nrf_wifi_if_set_config_zep(const struct device *dev,
1018
1018
struct nrf_wifi_vif_ctx_zep * vif_ctx_zep = NULL ;
1019
1019
struct nrf_wifi_ctx_zep * rpu_ctx_zep = NULL ;
1020
1020
struct nrf_wifi_fmac_dev_ctx * fmac_dev_ctx = NULL ;
1021
- struct nrf_wifi_fmac_dev_ctx_def * def_dev_ctx = NULL ;
1021
+ struct nrf_wifi_sys_fmac_dev_ctx * sys_dev_ctx = NULL ;
1022
1022
int ret = -1 ;
1023
1023
1024
1024
if (!dev ) {
@@ -1067,9 +1067,9 @@ int nrf_wifi_if_set_config_zep(const struct device *dev,
1067
1067
}
1068
1068
1069
1069
fmac_dev_ctx = rpu_ctx_zep -> rpu_ctx ;
1070
- def_dev_ctx = wifi_dev_priv (fmac_dev_ctx );
1071
- if (!def_dev_ctx ) {
1072
- LOG_ERR ("%s: def_dev_ctx is NULL" ,
1070
+ sys_dev_ctx = wifi_dev_priv (fmac_dev_ctx );
1071
+ if (!sys_dev_ctx ) {
1072
+ LOG_ERR ("%s: sys_dev_ctx is NULL" ,
1073
1073
__func__ );
1074
1074
goto unlock ;
1075
1075
}
@@ -1078,7 +1078,7 @@ int nrf_wifi_if_set_config_zep(const struct device *dev,
1078
1078
if (type == ETHERNET_CONFIG_TYPE_TXINJECTION_MODE ) {
1079
1079
unsigned char mode ;
1080
1080
1081
- if (def_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> txinjection_mode ==
1081
+ if (sys_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> txinjection_mode ==
1082
1082
config -> txinjection_mode ) {
1083
1083
LOG_INF ("%s: Driver TX injection setting is same as configured setting" ,
1084
1084
__func__ );
@@ -1091,10 +1091,10 @@ int nrf_wifi_if_set_config_zep(const struct device *dev,
1091
1091
* as is
1092
1092
*/
1093
1093
if (config -> txinjection_mode ) {
1094
- mode = (def_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> mode ) |
1094
+ mode = (sys_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> mode ) |
1095
1095
(NRF_WIFI_TX_INJECTION_MODE );
1096
1096
} else {
1097
- mode = (def_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> mode ) ^
1097
+ mode = (sys_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> mode ) ^
1098
1098
(NRF_WIFI_TX_INJECTION_MODE );
1099
1099
}
1100
1100
@@ -1111,18 +1111,18 @@ int nrf_wifi_if_set_config_zep(const struct device *dev,
1111
1111
else if (type == ETHERNET_CONFIG_TYPE_PROMISC_MODE ) {
1112
1112
unsigned char mode ;
1113
1113
1114
- if (def_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> promisc_mode ==
1114
+ if (sys_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> promisc_mode ==
1115
1115
config -> promisc_mode ) {
1116
1116
LOG_ERR ("%s: Driver promisc mode setting is same as configured setting" ,
1117
1117
__func__ );
1118
1118
goto out ;
1119
1119
}
1120
1120
1121
1121
if (config -> promisc_mode ) {
1122
- mode = (def_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> mode ) |
1122
+ mode = (sys_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> mode ) |
1123
1123
(NRF_WIFI_PROMISCUOUS_MODE );
1124
1124
} else {
1125
- mode = (def_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> mode ) ^
1125
+ mode = (sys_dev_ctx -> vif_ctx [vif_ctx_zep -> vif_idx ]-> mode ) ^
1126
1126
(NRF_WIFI_PROMISCUOUS_MODE );
1127
1127
}
1128
1128
@@ -1171,7 +1171,7 @@ int nrf_wifi_stats_get(const struct device *dev, struct net_stats_wifi *zstats)
1171
1171
struct nrf_wifi_ctx_zep * rpu_ctx_zep = NULL ;
1172
1172
struct nrf_wifi_vif_ctx_zep * vif_ctx_zep = NULL ;
1173
1173
#ifdef CONFIG_NRF70_RAW_DATA_TX
1174
- struct nrf_wifi_fmac_dev_ctx_def * def_dev_ctx = NULL ;
1174
+ struct nrf_wifi_sys_fmac_dev_ctx * sys_dev_ctx = NULL ;
1175
1175
#endif /* CONFIG_NRF70_RAW_DATA_TX */
1176
1176
struct rpu_op_stats stats ;
1177
1177
int ret = -1 ;
@@ -1229,8 +1229,8 @@ int nrf_wifi_stats_get(const struct device *dev, struct net_stats_wifi *zstats)
1229
1229
zstats -> overrun_count = stats .host .total_tx_drop_pkts + stats .host .total_rx_drop_pkts ;
1230
1230
1231
1231
#ifdef CONFIG_NRF70_RAW_DATA_TX
1232
- def_dev_ctx = wifi_dev_priv (rpu_ctx_zep -> rpu_ctx );
1233
- zstats -> errors .tx += def_dev_ctx -> raw_pkt_stats .raw_pkt_send_failure ;
1232
+ sys_dev_ctx = wifi_dev_priv (rpu_ctx_zep -> rpu_ctx );
1233
+ zstats -> errors .tx += sys_dev_ctx -> raw_pkt_stats .raw_pkt_send_failure ;
1234
1234
#endif /* CONFIG_NRF70_RAW_DATA_TX */
1235
1235
ret = 0 ;
1236
1236
unlock :
@@ -1244,7 +1244,7 @@ int nrf_wifi_stats_reset(const struct device *dev)
1244
1244
enum nrf_wifi_status status = NRF_WIFI_STATUS_FAIL ;
1245
1245
struct nrf_wifi_ctx_zep * rpu_ctx_zep = NULL ;
1246
1246
struct nrf_wifi_vif_ctx_zep * vif_ctx_zep = NULL ;
1247
- struct nrf_wifi_fmac_dev_ctx_def * def_dev_ctx = NULL ;
1247
+ struct nrf_wifi_sys_fmac_dev_ctx * sys_dev_ctx = NULL ;
1248
1248
int ret = -1 ;
1249
1249
1250
1250
if (!dev ) {
@@ -1277,8 +1277,8 @@ int nrf_wifi_stats_reset(const struct device *dev)
1277
1277
goto unlock ;
1278
1278
}
1279
1279
1280
- def_dev_ctx = wifi_dev_priv (rpu_ctx_zep -> rpu_ctx );
1281
- memset (& def_dev_ctx -> host_stats , 0 , sizeof (struct rpu_host_stats ));
1280
+ sys_dev_ctx = wifi_dev_priv (rpu_ctx_zep -> rpu_ctx );
1281
+ memset (& sys_dev_ctx -> host_stats , 0 , sizeof (struct rpu_host_stats ));
1282
1282
1283
1283
ret = 0 ;
1284
1284
unlock :
0 commit comments