Skip to content

Commit a1b16af

Browse files
[nrf noup] Fixed several Wi-Fi issues
* Disabled Wi-Fi/BLE coex as it was not stable and caused issues in CI tests * Increased sockets poll and net mgmt stack to fix crash on the application boot due to no space to alloc all sockets * Added generating kDnssdInitialized event after getting Wi-Fi connected event to re-start mDNS server
1 parent bce6be0 commit a1b16af

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

config/nrfconnect/chip-module/Kconfig.defaults

+4-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ config SYSTEM_WORKQUEUE_STACK_SIZE
227227
default 2048
228228

229229
config NET_MGMT_EVENT_STACK_SIZE
230-
default 1024
230+
default 4096
231231

232232
# align these numbers to match the OpenThread config
233233
config NET_IF_UNICAST_IPV6_ADDR_COUNT
@@ -239,6 +239,9 @@ config NET_IF_MCAST_IPV6_ADDR_COUNT
239239
config NET_SOCKETS_POSIX_NAMES
240240
default n
241241

242+
config NET_SOCKETS_POLL_MAX
243+
default 4
244+
242245
config MBEDTLS_SSL_OUT_CONTENT_LEN
243246
default 900
244247

config/nrfconnect/chip-module/Kconfig.hci_rpmsg.defaults

-4
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ config BT_HCI_RAW_RESERVE
6363
config BT_BUF_CMD_TX_COUNT
6464
default 10
6565

66-
# Enable support for Wi-Fi and Bluetooth LE coexistance
67-
config MPSL_CX
68-
default y
69-
7066
config ASSERT
7167
default y
7268

src/platform/nrfconnect/wifi/WiFiManager.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,12 @@ void WiFiManager::ConnectHandler(Platform::UniquePtr<uint8_t> data)
453453
Instance().mHandling.mOnConnectionSuccess();
454454
}
455455
Instance().PostConnectivityStatusChange(kConnectivity_Established);
456+
457+
// Workaround needed to re-initialize mDNS server after Wi-Fi interface is operative
458+
chip::DeviceLayer::ChipDeviceEvent event;
459+
event.Type = chip::DeviceLayer::DeviceEventType::kDnssdPlatformInitialized;
460+
461+
CHIP_ERROR error = chip::DeviceLayer::PlatformMgr().PostEvent(&event);
456462
}
457463
// Ensure fresh recovery for future connection requests.
458464
Instance().ResetRecoveryTime();

0 commit comments

Comments
 (0)