11
11
#include <fmac_main.h>
12
12
#include <nrf_wifi_radio_test_shell.h>
13
13
#include <util.h>
14
- #include "fmac_api_common.h"
14
+ #include "common/ fmac_api_common.h"
15
15
16
16
extern struct nrf_wifi_drv_priv_zep rpu_drv_priv_zep ;
17
17
struct nrf_wifi_ctx_zep * ctx = & rpu_drv_priv_zep .rpu_ctx_zep ;
@@ -304,7 +304,7 @@ enum nrf_wifi_status nrf_wifi_radio_test_conf_init(struct rpu_conf_params *conf_
304
304
/* Initialize values which are other than 0 */
305
305
conf_params -> op_mode = RPU_OP_MODE_RADIO_TEST ;
306
306
307
- status = nrf_wifi_fmac_rf_params_get (
307
+ status = nrf_wifi_rt_fmac_rf_params_get (
308
308
ctx -> rpu_ctx ,
309
309
(struct nrf_wifi_phy_rf_params * )conf_params -> rf_params );
310
310
if (status != NRF_WIFI_STATUS_SUCCESS ) {
@@ -1149,7 +1149,7 @@ static int nrf_wifi_radio_test_init(const struct shell *shell,
1149
1149
1150
1150
ctx -> conf_params .rx = 0 ;
1151
1151
1152
- status = nrf_wifi_fmac_radio_test_prog_rx (ctx -> rpu_ctx ,
1152
+ status = nrf_wifi_rt_fmac_prog_rx (ctx -> rpu_ctx ,
1153
1153
& ctx -> conf_params );
1154
1154
1155
1155
if (status != NRF_WIFI_STATUS_SUCCESS ) {
@@ -1167,7 +1167,7 @@ static int nrf_wifi_radio_test_init(const struct shell *shell,
1167
1167
1168
1168
ctx -> conf_params .tx = 0 ;
1169
1169
1170
- status = nrf_wifi_fmac_radio_test_prog_tx (ctx -> rpu_ctx ,
1170
+ status = nrf_wifi_rt_fmac_prog_tx (ctx -> rpu_ctx ,
1171
1171
& ctx -> conf_params );
1172
1172
1173
1173
if (status != NRF_WIFI_STATUS_SUCCESS ) {
@@ -1192,7 +1192,7 @@ static int nrf_wifi_radio_test_init(const struct shell *shell,
1192
1192
SHELL_INFO ,
1193
1193
"Disabling ongoing TX tone test\n" );
1194
1194
1195
- status = nrf_wifi_fmac_rf_test_tx_tone (ctx -> rpu_ctx ,
1195
+ status = nrf_wifi_rt_fmac_rf_test_tx_tone (ctx -> rpu_ctx ,
1196
1196
0 ,
1197
1197
ctx -> conf_params .tx_tone_freq ,
1198
1198
ctx -> conf_params .tx_power );
@@ -1220,7 +1220,7 @@ static int nrf_wifi_radio_test_init(const struct shell *shell,
1220
1220
1221
1221
ctx -> conf_params .chan .primary_num = val ;
1222
1222
1223
- status = nrf_wifi_fmac_radio_test_init (ctx -> rpu_ctx ,
1223
+ status = nrf_wifi_rt_fmac_radio_test_init (ctx -> rpu_ctx ,
1224
1224
& ctx -> conf_params );
1225
1225
1226
1226
if (status != NRF_WIFI_STATUS_SUCCESS ) {
@@ -1322,7 +1322,7 @@ static int nrf_wifi_radio_test_set_tx(const struct shell *shell,
1322
1322
1323
1323
ctx -> conf_params .tx = val ;
1324
1324
1325
- status = nrf_wifi_fmac_radio_test_prog_tx (ctx -> rpu_ctx ,
1325
+ status = nrf_wifi_rt_fmac_prog_tx (ctx -> rpu_ctx ,
1326
1326
& ctx -> conf_params );
1327
1327
1328
1328
if (status != NRF_WIFI_STATUS_SUCCESS ) {
@@ -1363,7 +1363,7 @@ static int nrf_wifi_radio_test_set_rx(const struct shell *shell,
1363
1363
1364
1364
ctx -> conf_params .rx = val ;
1365
1365
1366
- status = nrf_wifi_fmac_radio_test_prog_rx (ctx -> rpu_ctx ,
1366
+ status = nrf_wifi_rt_fmac_prog_rx (ctx -> rpu_ctx ,
1367
1367
& ctx -> conf_params );
1368
1368
1369
1369
if (status != NRF_WIFI_STATUS_SUCCESS ) {
@@ -1460,7 +1460,7 @@ static int nrf_wifi_radio_test_rx_cap(const struct shell *shell,
1460
1460
ctx -> rf_test_run = true;
1461
1461
ctx -> rf_test = NRF_WIFI_RF_TEST_RX_ADC_CAP ;
1462
1462
1463
- status = nrf_wifi_fmac_rf_test_rx_cap (ctx -> rpu_ctx ,
1463
+ status = nrf_wifi_rt_fmac_rf_test_rx_cap (ctx -> rpu_ctx ,
1464
1464
rx_cap_type ,
1465
1465
rx_cap_buf ,
1466
1466
ctx -> conf_params .capture_length ,
@@ -1539,7 +1539,7 @@ static int nrf_wifi_radio_test_tx_tone(const struct shell *shell,
1539
1539
1540
1540
}
1541
1541
1542
- status = nrf_wifi_fmac_rf_test_tx_tone (ctx -> rpu_ctx ,
1542
+ status = nrf_wifi_rt_fmac_rf_test_tx_tone (ctx -> rpu_ctx ,
1543
1543
(unsigned char )val ,
1544
1544
ctx -> conf_params .tx_tone_freq ,
1545
1545
ctx -> conf_params .tx_power );
@@ -1594,7 +1594,7 @@ static int nrf_wifi_radio_set_dpd(const struct shell *shell,
1594
1594
ctx -> rf_test_run = true;
1595
1595
ctx -> rf_test = NRF_WIFI_RF_TEST_DPD ;
1596
1596
1597
- status = nrf_wifi_fmac_rf_test_dpd (ctx -> rpu_ctx ,
1597
+ status = nrf_wifi_rt_fmac_rf_test_dpd (ctx -> rpu_ctx ,
1598
1598
val );
1599
1599
1600
1600
if (status != NRF_WIFI_STATUS_SUCCESS ) {
@@ -1626,7 +1626,7 @@ static int nrf_wifi_radio_get_temperature(const struct shell *shell,
1626
1626
ctx -> rf_test_run = true;
1627
1627
ctx -> rf_test = NRF_WIFI_RF_TEST_GET_TEMPERATURE ;
1628
1628
1629
- status = nrf_wifi_fmac_rf_get_temp (ctx -> rpu_ctx );
1629
+ status = nrf_wifi_rt_fmac_rf_get_temp (ctx -> rpu_ctx );
1630
1630
1631
1631
if (status != NRF_WIFI_STATUS_SUCCESS ) {
1632
1632
shell_fprintf (shell ,
@@ -1658,7 +1658,7 @@ static int nrf_wifi_radio_get_rf_rssi(const struct shell *shell,
1658
1658
ctx -> rf_test_run = true;
1659
1659
ctx -> rf_test = NRF_WIFI_RF_TEST_RF_RSSI ;
1660
1660
1661
- status = nrf_wifi_fmac_rf_get_rf_rssi (ctx -> rpu_ctx );
1661
+ status = nrf_wifi_rt_fmac_rf_get_rf_rssi (ctx -> rpu_ctx );
1662
1662
1663
1663
if (status != NRF_WIFI_STATUS_SUCCESS ) {
1664
1664
shell_fprintf (shell ,
@@ -1712,7 +1712,7 @@ static int nrf_wifi_radio_set_xo_val(const struct shell *shell,
1712
1712
ctx -> rf_test_run = true;
1713
1713
ctx -> rf_test = NRF_WIFI_RF_TEST_XO_CALIB ;
1714
1714
1715
- status = nrf_wifi_fmac_set_xo_val (ctx -> rpu_ctx ,
1715
+ status = nrf_wifi_rt_fmac_set_xo_val (ctx -> rpu_ctx ,
1716
1716
(unsigned char )val );
1717
1717
1718
1718
if (status != NRF_WIFI_STATUS_SUCCESS ) {
@@ -1747,7 +1747,7 @@ static int nrf_wifi_radio_comp_opt_xo_val(const struct shell *shell,
1747
1747
ctx -> rf_test_run = true;
1748
1748
ctx -> rf_test = NRF_WIFI_RF_TEST_XO_TUNE ;
1749
1749
1750
- status = nrf_wifi_fmac_rf_test_compute_xo (ctx -> rpu_ctx );
1750
+ status = nrf_wifi_rt_fmac_rf_test_compute_xo (ctx -> rpu_ctx );
1751
1751
1752
1752
if (status != NRF_WIFI_STATUS_SUCCESS ) {
1753
1753
shell_fprintf (shell ,
@@ -2015,20 +2015,20 @@ static int nrf_wifi_radio_test_get_stats(const struct shell *shell,
2015
2015
const char * argv [])
2016
2016
{
2017
2017
enum nrf_wifi_status status = NRF_WIFI_STATUS_FAIL ;
2018
- struct rpu_op_stats stats ;
2018
+ struct rpu_rt_op_stats stats ;
2019
2019
2020
2020
memset (& stats ,
2021
2021
0 ,
2022
2022
sizeof (stats ));
2023
2023
2024
- status = nrf_wifi_fmac_stats_get (ctx -> rpu_ctx ,
2024
+ status = nrf_wifi_rt_fmac_stats_get (ctx -> rpu_ctx ,
2025
2025
ctx -> conf_params .op_mode ,
2026
2026
& stats );
2027
2027
2028
2028
if (status != NRF_WIFI_STATUS_SUCCESS ) {
2029
2029
shell_fprintf (shell ,
2030
2030
SHELL_ERROR ,
2031
- "nrf_wifi_fmac_stats_get failed\n" );
2031
+ "nrf_wifi_rt_fmac_stats_get failed\n" );
2032
2032
return - ENOEXEC ;
2033
2033
}
2034
2034
0 commit comments