Skip to content

Commit 1ad30fb

Browse files
committed
nRF71 support
Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 66de402 commit 1ad30fb

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

drivers/wifi/nrf_wifi/Kconfig.nrfwifi

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ menuconfig WIFI_NRF70
1616
depends on \
1717
DT_HAS_NORDIC_NRF7002_SPI_ENABLED || DT_HAS_NORDIC_NRF7002_QSPI_ENABLED || \
1818
DT_HAS_NORDIC_NRF7001_SPI_ENABLED || DT_HAS_NORDIC_NRF7001_QSPI_ENABLED || \
19-
DT_HAS_NORDIC_NRF7000_SPI_ENABLED || DT_HAS_NORDIC_NRF7000_QSPI_ENABLED
19+
DT_HAS_NORDIC_NRF7000_SPI_ENABLED || DT_HAS_NORDIC_NRF7000_QSPI_ENABLED || \
20+
DT_HAS_NORDIC_WIFI_ENABLED
2021
help
2122
Nordic Wi-Fi Driver
2223

2324
if WIFI_NRF70
2425
# Hidden symbols for internal use
2526
config WIFI_NRF7002
2627
bool
27-
default y if DT_HAS_NORDIC_NRF7002_SPI_ENABLED || DT_HAS_NORDIC_NRF7002_QSPI_ENABLED
28+
default y if DT_HAS_NORDIC_NRF7002_SPI_ENABLED || DT_HAS_NORDIC_NRF7002_QSPI_ENABLED || DT_HAS_NORDIC_WIFI_ENABLED
2829

2930
config WIFI_NRF7001
3031
bool
@@ -192,6 +193,11 @@ config NRF70_ON_SPI
192193
DT_HAS_NORDIC_NRF7000_SPI_ENABLED
193194
select SPI
194195

196+
config NRF71_ON_IPC
197+
def_bool DT_HAS_NORDIC_WIFI_ENABLED
198+
select IPC
199+
select IPC_SERVICE
200+
195201
config NRF70_2_4G_ONLY
196202
def_bool y if WIFI_NRF7001
197203

drivers/wifi/nrf_wifi/src/fmac_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,12 @@ void reg_change_callbk_fn(void *vif_ctx,
476476
}
477477
#endif /* !CONFIG_NRF70_RADIO_TEST */
478478

479+
#ifdef CONFIG_DT_HAS_NORDIC_WIFI_ENABLED
480+
#define MAX_TX_PWR(label) DT_PROP(DT_NODELABEL(wifi), label) * 4
481+
#else
479482
/* DTS uses 1dBm as the unit for TX power, while the RPU uses 0.25dBm */
480483
#define MAX_TX_PWR(label) DT_PROP(DT_NODELABEL(nrf70), label) * 4
484+
#endif /* CONFIG_DT_HAS_NORDIC_WIFI_ENABLED */
481485

482486
void configure_tx_pwr_settings(struct nrf_wifi_tx_pwr_ctrl_params *tx_pwr_ctrl_params,
483487
struct nrf_wifi_tx_pwr_ceil_params *tx_pwr_ceil_params)

0 commit comments

Comments
 (0)