Skip to content

Commit 4b484c5

Browse files
krish2718adigie
authored andcommitted
[nrf noup] wifi: Migrate to nRF70 upstream
nRF70 support moved upstream, update the names. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no> (cherry picked from commit 218689e) Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
1 parent c99f4e4 commit 4b484c5

File tree

11 files changed

+27
-27
lines changed

11 files changed

+27
-27
lines changed

config/nrfconnect/chip-module/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ matter_add_gn_arg_bool ("chip_progress_logging" CONFIG_MATTER_
148148
matter_add_gn_arg_bool ("chip_detail_logging" CONFIG_MATTER_LOG_LEVEL GREATER_EQUAL 4)
149149
matter_add_gn_arg_bool ("chip_automation_logging" FALSE)
150150
matter_add_gn_arg_bool ("chip_malloc_sys_heap" CONFIG_CHIP_MALLOC_SYS_HEAP)
151-
matter_add_gn_arg_bool ("chip_enable_wifi" CONFIG_WIFI_NRF700X)
151+
matter_add_gn_arg_bool ("chip_enable_wifi" CONFIG_WIFI_NRF70)
152152
matter_add_gn_arg_bool ("chip_system_config_provide_statistics" CONFIG_CHIP_STATISTICS)
153153
matter_add_gn_arg_bool ("chip_enable_icd_server" CONFIG_CHIP_ENABLE_ICD_SUPPORT)
154154
matter_add_gn_arg_bool ("chip_enable_factory_data" CONFIG_CHIP_FACTORY_DATA)
155155
matter_add_gn_arg_bool ("chip_enable_read_client" CONFIG_CHIP_ENABLE_READ_CLIENT)
156-
matter_add_gn_arg_bool ("chip_mdns_minimal" CONFIG_WIFI_NRF700X)
156+
matter_add_gn_arg_bool ("chip_mdns_minimal" CONFIG_WIFI_NRF70)
157157
matter_add_gn_arg_bool ("chip_mdns_platform" CONFIG_NET_L2_OPENTHREAD)
158158

159159
if (CONFIG_CHIP_ENABLE_ICD_SUPPORT)
@@ -173,7 +173,7 @@ if (CONFIG_CHIP_ROTATING_DEVICE_ID)
173173
matter_add_gn_arg_bool("chip_enable_additional_data_advertising" TRUE)
174174
endif()
175175

176-
if(CONFIG_WIFI_NRF700X)
176+
if(CONFIG_WIFI_NRF70)
177177
matter_add_gn_arg_string("chip_mdns" "minimal")
178178
elseif (CONFIG_NET_L2_OPENTHREAD)
179179
matter_add_gn_arg_string("chip_mdns" "platform")

config/nrfconnect/chip-module/Kconfig.defaults

+11-11
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ config NRF_WIFI_FW_PATCH_DFU
228228
# ==============================================================================
229229

230230
config NET_L2_OPENTHREAD
231-
default y if !WIFI_NRF700X
231+
default y if !WIFI_NRF70
232232

233233
if NET_L2_OPENTHREAD
234234

@@ -253,35 +253,35 @@ endif # NET_L2_OPENTHREAD
253253

254254
if CHIP_WIFI
255255

256-
choice WPA_SUPP_LOG_LEVEL_CHOICE
257-
default WPA_SUPP_LOG_LEVEL_ERR
256+
choice WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL_CHOICE
257+
default WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL_ERR
258258
endchoice
259259

260260
# it saves us 20kB of FLASH
261-
config WPA_SUPP_NO_DEBUG
261+
config WIFI_NM_WPA_SUPPLICANT_NO_DEBUG
262262
default y
263263

264-
config NRF700X_LOG_VERBOSE
264+
config NRF70_LOG_VERBOSE
265265
default n
266266

267-
choice WIFI_NRF700X_LOG_LEVEL_CHOICE
268-
default WIFI_NRF700X_LOG_LEVEL_OFF
267+
choice WIFI_NRF70_LOG_LEVEL_CHOICE
268+
default WIFI_NRF70_LOG_LEVEL_OFF
269269
endchoice
270270

271271
config NRF_WIFI_LOW_POWER
272272
default n
273273

274-
config NRF700X_RX_NUM_BUFS
274+
config NRF70_RX_NUM_BUFS
275275
default 16
276276

277-
config NRF700X_MAX_TX_TOKENS
277+
config NRF70_MAX_TX_TOKENS
278278
default 10
279279

280-
config NRF700X_MAX_TX_AGGREGATION
280+
config NRF70_MAX_TX_AGGREGATION
281281
default 1
282282

283283
# it saves 25kB of FLASH
284-
config WPA_SUPP_ADVANCED_FEATURES
284+
config WIFI_NM_WPA_SUPPLICANT_ADVANCED_FEATURES
285285
default n
286286

287287
endif # CHIP_WIFI

config/nrfconnect/chip-module/Kconfig.features

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ if CHIP
2222
config CHIP_WIFI
2323
bool "Enable nrfconnect Wi-Fi support"
2424
default y if SHIELD_NRF7002EK || BOARD_NRF7002DK_NRF5340_CPUAPP || SHIELD_NRF7002EB || BOARD_NRF7002DK_NRF7001_NRF5340_CPUAPP
25-
select WIFI_NRF700X
25+
select WIFI_NRF70
2626
select WIFI
27-
select WPA_SUPP
27+
select WIFI_NM_WPA_SUPPLICANT
2828
imply NORDIC_SECURITY_BACKEND
2929
imply MBEDTLS_ENTROPY_C
3030
imply MBEDTLS_PSA_CRYPTO_C

examples/chef/nrfconnect/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ int main()
109109
ChipLogError(AppServer, "ConnectivityMgr().SetThreadDeviceType() failed");
110110
return 1;
111111
}
112-
#elif !defined(CONFIG_WIFI_NRF700X)
112+
#elif !defined(CONFIG_WIFI_NRF70)
113113
return CHIP_ERROR_INTERNAL;
114114
#endif
115115

examples/pump-app/nrfconnect/main/AppTask.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ CHIP_ERROR AppTask::Init()
137137
LOG_ERR("ConnectivityMgr().SetThreadDeviceType() failed");
138138
return err;
139139
}
140-
#elif !defined(CONFIG_WIFI_NRF700X)
140+
#elif !defined(CONFIG_WIFI_NRF70)
141141
return CHIP_ERROR_INTERNAL;
142142
#endif
143143

examples/pump-controller-app/nrfconnect/main/AppTask.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ CHIP_ERROR AppTask::Init()
125125
LOG_ERR("ConnectivityMgr().SetThreadDeviceType() failed");
126126
return err;
127127
}
128-
#elif !defined(CONFIG_WIFI_NRF700X)
128+
#elif !defined(CONFIG_WIFI_NRF70)
129129
return CHIP_ERROR_INTERNAL;
130130
#endif
131131

examples/window-app/nrfconnect/main/AppTask.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ CHIP_ERROR AppTask::Init()
142142
LOG_ERR("ConnectivityMgr().SetThreadDeviceType() failed");
143143
return err;
144144
}
145-
#elif !defined(CONFIG_WIFI_NRF700X)
145+
#elif !defined(CONFIG_WIFI_NRF70)
146146
return CHIP_ERROR_INTERNAL;
147147
#endif
148148

src/platform/nrfconnect/CHIPDevicePlatformConfig.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
#define CHIP_DEVICE_CONFIG_ENABLE_THREAD 0
6565
#endif
6666

67-
#ifdef CONFIG_WIFI_NRF700X
68-
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI CONFIG_WIFI_NRF700X
67+
#ifdef CONFIG_WIFI_NRF70
68+
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI CONFIG_WIFI_NRF70
6969
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 1
7070
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP 0
7171
#else

src/platform/nrfconnect/DiagnosticDataProviderImplNrf.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include "DiagnosticDataProviderImplNrf.h"
2525

26-
#ifdef CONFIG_WIFI_NRF700X
26+
#ifdef CONFIG_WIFI_NRF70
2727
#include <platform/nrfconnect/wifi/WiFiManager.h>
2828
#endif
2929

@@ -41,7 +41,7 @@ DiagnosticDataProviderImplNrf & DiagnosticDataProviderImplNrf::GetDefaultInstanc
4141
return sInstance;
4242
}
4343

44-
#ifdef CONFIG_WIFI_NRF700X
44+
#ifdef CONFIG_WIFI_NRF70
4545
CHIP_ERROR DiagnosticDataProviderImplNrf::GetWiFiBssId(MutableByteSpan & value)
4646
{
4747
WiFiManager::WiFiInfo info;

src/platform/nrfconnect/DiagnosticDataProviderImplNrf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace DeviceLayer {
3131
class DiagnosticDataProviderImplNrf : public DiagnosticDataProviderImpl
3232
{
3333
public:
34-
#ifdef CONFIG_WIFI_NRF700X
34+
#ifdef CONFIG_WIFI_NRF70
3535
CHIP_ERROR GetWiFiBssId(MutableByteSpan & value) override;
3636
CHIP_ERROR GetWiFiSecurityType(app::Clusters::WiFiNetworkDiagnostics::SecurityTypeEnum & securityType) override;
3737
CHIP_ERROR GetWiFiVersion(app::Clusters::WiFiNetworkDiagnostics::WiFiVersionEnum & wiFiVersion) override;

src/platform/nrfconnect/SystemPlatformConfig.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct ChipDeviceEvent;
5252
#endif
5353

5454
#ifndef CHIP_SYSTEM_CONFIG_PACKETBUFFER_CAPACITY_MAX
55-
#ifdef CONFIG_WIFI_NRF700X
55+
#ifdef CONFIG_WIFI_NRF70
5656
// Minimal mDNS uses Matter packet buffers, so as long as minimal mDNS is used
5757
// in Nordic's Wi-Fi solution, the packet buffers must be a bit bigger than what
5858
// is required by Matter.
@@ -62,7 +62,7 @@ struct ChipDeviceEvent;
6262
// unless for large messages that can be sent over BTP or TCP. But those will
6363
// likely require a separate buffer pool or employ chained buffers.
6464
#define CHIP_SYSTEM_CONFIG_PACKETBUFFER_CAPACITY_MAX 1280
65-
#endif // CONFIG_WIFI_NRF700X
65+
#endif // CONFIG_WIFI_NRF70
6666
#endif // CHIP_SYSTEM_CONFIG_PACKETBUFFER_CAPACITY_MAX
6767

6868
// ========== Platform-specific Configuration Overrides =========

0 commit comments

Comments
 (0)