Skip to content

Commit

Permalink
[Telink]: Fix mDNS error occurs on commissioning window opening
Browse files Browse the repository at this point in the history
  • Loading branch information
rikorsev authored and restyled-io[bot] committed Mar 16, 2022
1 parent 396f59a commit 5822f40
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 2 additions & 4 deletions config/telink/chip-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,8 @@ chip_gn_arg_bool ("chip_build_tests" CONFIG_CHIP_BUILD_TE
chip_gn_arg_bool ("chip_inet_config_enable_tcp_endpoint" CONFIG_CHIP_BUILD_TESTS)
chip_gn_arg_bool ("chip_build_libshell" CONFIG_CHIP_LIB_SHELL)

if (BOARD STREQUAL "native_posix")
chip_gn_arg_string("target_cpu" "x86")
elseif (BOARD STREQUAL "native_posix_64")
chip_gn_arg_string("target_cpu" "x64")
if (CONFIG_CHIP_ENABLE_DNSSD_SRP)
chip_gn_arg_string("chip_mdns" "platform")
endif()

file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/args.gn CONTENT ${CHIP_GN_ARGS})
Expand Down
1 change: 1 addition & 0 deletions src/platform/telink/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ static_library("telink") {

public_deps = [ "${chip_root}/src/platform:platform_base" ]


if (chip_enable_openthread) {
sources += [
"../OpenThread/OpenThreadUtils.cpp",
Expand Down
11 changes: 11 additions & 0 deletions src/platform/telink/CHIPDevicePlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,14 @@
#ifdef CONFIG_CHIP_ENABLE_RENDEZVOUS_BYPASS
#define CHIP_BYPASS_RENDEZVOUS CONFIG_CHIP_ENABLE_RENDEZVOUS_BYPASS
#endif // CONFIG_CHIP_ENABLE_RENDEZVOUS_BYPASS

#ifdef CONFIG_CHIP_ENABLE_DNSSD_SRP
#define CHIP_DEVICE_CONFIG_ENABLE_MDNS 1
#define CHIP_DEVICE_CONFIG_ENABLE_THREAD_SRP_CLIENT 1
#define CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY 1
#define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONABLE_DISCOVERY 1
#ifdef CONFIG_CHIP_ENABLE_DNS_CLIENT
#define CHIP_DEVICE_CONFIG_ENABLE_THREAD_DNS_CLIENT 1
#define CHIP_DEVICE_CONFIG_ENABLE_THREAD_COMMISSIONABLE_DISCOVERY 1
#endif // CONFIG_CHIP_ENABLE_DNS_CLIENT
#endif // CONFIG_CHIP_ENABLE_DNSSD_SRP

0 comments on commit 5822f40

Please sign in to comment.