Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ble] Remove CHIP_DEVICE_CONFIG_CHIPOBLE_DISABLE_ADVERTISING_WHEN_PROVISIONED #21582

Merged

Conversation

Damian-Nordic
Copy link
Contributor

@Damian-Nordic Damian-Nordic commented Aug 3, 2022

Problem

BLE Managers contain obsolete code for turning off the BLE advertising when the device is fully provisioned, guarded by CHIP_DEVICE_CONFIG_CHIPOBLE_DISABLE_ADVERTISING_WHEN_PROVISIONED config.
Proper code for this purpose is already implemented in Server and CommissioningWindowManager, so the one in BLE managers does not seem useful at all.
Also, the config is disabled on most platforms except NXP, Zephyr and, conditionally, ESP32.

Change overview

  • Remove CHIP_DEVICE_CONFIG_CHIPOBLE_DISABLE_ADVERTISING_WHEN_PROVISIONED on all platforms.
  • On Zephyr platform, which I'm able to test properly, additionally remove some parts around that.

Testing

Tested that commissioning still works correctly on nRF Connect platform and the advertising is stopped after that.

If CHIP_DEVICE_CONFIG_CHIPOBLE_DISABLE_ADVERTISING_WHEN_PROVISIONED
is set, which turns out to be true on Zephyr, NXP and,
conditionally, ESP32 platforms, the BLE manager will not
start BLE advertising if IsFullyProvisioned() method of the
ConnectivityManager class returns true. The problem is that
the method seems obsolete and the proper logic is already
in place in Server.cpp, so we should align the platforms
and remove the legacy code.

Signed-off-by: Damian Krolik <[email protected]>
Remove CHIP_DEVICE_CONFIG_CHIPOBLE_DISABLE_ADVERTISING_WHEN_PROVISIONED
and the associated code from platforms that never set it.

Signed-off-by: Damian Krolik <[email protected]>
@github-actions
Copy link

github-actions bot commented Aug 3, 2022

PR #21582: Size comparison from 03778b2 to 472f778

Increases (5 builds for bl602, cc13x2_26x2, cyw30739, telink)
platform target config section 03778b2 472f778 change % change
bl602 lighting-app bl602 (read/write) 1378730 1378738 8 0.0
.text 1047196 1047200 4 0.0
cc13x2_26x2 lock-mtd LP_CC2652R7 (read/write) 181884 181892 8 0.0
cyw30739 lock cyw930739m2evb_01 (read/write) 590614 590622 8 0.0
.app_xip_area 462640 462648 8 0.0
telink light-switch-app tlsr9518adk80d text 569418 569420 2 0.0
lighting-app tlsr9518adk80d text 586304 586308 4 0.0
Decreases (3 builds for cc13x2_26x2, k32w)
platform target config section 03778b2 472f778 change % change
cc13x2_26x2 lock-mtd LP_CC2652R7 (read only) 655371 655363 -8 -0.0
.text 553496 553488 -8 -0.0
k32w light k32w0+release (read/write) 643528 643432 -96 -0.0
.text 569036 568940 -96 -0.0
lock k32w0+release (read/write) 701760 701552 -208 -0.0
.text 626796 626588 -208 -0.0
Full report (38 builds for bl602, cc13x2_26x2, cyw30739, efr32, k32w, linux, p6, telink)
platform target config section 03778b2 472f778 change % change
bl602 lighting-app bl602 (read/write) 1378730 1378738 8 0.0
.bss 119746 119746 0 0.0
.data 4480 4480 0 0.0
.text 1047196 1047200 4 0.0
bl602+rpc (read/write) 1423986 1423986 0 0.0
.bss 127186 127186 0 0.0
.data 4600 4600 0 0.0
.text 1078700 1078700 0 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 669979 669979 0 0.0
(read/write) 181404 181404 0 0.0
.bss 74276 74276 0 0.0
.data 3372 3372 0 0.0
.rodata 88467 88467 0 0.0
.text 581196 581196 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 635491 635491 0 0.0
(read/write) 157844 157844 0 0.0
.bss 73556 73556 0 0.0
.data 3372 3372 0 0.0
.rodata 77691 77691 0 0.0
.text 557476 557476 0 0.0
lock-ftd LP_CC2652R7 (read only) 672975 672975 0 0.0
(read/write) 168592 168592 0 0.0
.bss 71348 71348 0 0.0
.data 3296 3296 0 0.0
.rodata 76535 76535 0 0.0
.text 595960 595960 0 0.0
lock-mtd LP_CC2652R7 (read only) 655371 655363 -8 -0.0
(read/write) 181884 181892 8 0.0
.bss 67036 67036 0 0.0
.data 3296 3296 0 0.0
.rodata 101395 101395 0 0.0
.text 553496 553488 -8 -0.0
pump-app LP_CC2652R7 (read only) 681447 681447 0 0.0
(read/write) 160928 160928 0 0.0
.bss 71388 71388 0 0.0
.data 3296 3296 0 0.0
.rodata 88919 88919 0 0.0
.text 592044 592044 0 0.0
pump-controller-app LP_CC2652R7 (read only) 667023 667023 0 0.0
(read/write) 175488 175488 0 0.0
.bss 71524 71524 0 0.0
.data 3292 3292 0 0.0
.rodata 84743 84743 0 0.0
.text 581800 581800 0 0.0
shell LP_CC2652R7 (read only) 662694 662694 0 0.0
(read/write) 184208 184208 0 0.0
.bss 76596 76596 0 0.0
.data 3376 3376 0 0.0
.rodata 85446 85446 0 0.0
.text 576932 576932 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 584142 584142 0 0.0
.app_xip_area 460952 460952 0 0.0
.bss 65632 65632 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 590614 590622 8 0.0
.app_xip_area 462640 462648 8 0.0
.bss 70416 70416 0 0.0
.data 748 748 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 589850 589850 0 0.0
.app_xip_area 467468 467468 0 0.0
.bss 64880 64880 0 0.0
.data 688 688 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read/write) 1089152 1089152 0 0.0
.bss 133268 133268 0 0.0
.data 2064 2064 0 0.0
.text 953800 953800 0 0.0
BRD4161A+rpc (read/write) 1143460 1143460 0 0.0
.bss 149948 149948 0 0.0
.data 2276 2276 0 0.0
.text 991216 991216 0 0.0
BRD4161A+rs911x (read/write) 975624 975624 0 0.0
.bss 161752 161752 0 0.0
.data 2048 2048 0 0.0
.text 811804 811804 0 0.0
lock-app BRD4161A+wf200 (read/write) 1130400 1130400 0 0.0
.bss 144400 144400 0 0.0
.data 2056 2056 0 0.0
.text 983924 983924 0 0.0
window-app BRD4161A (read/write) 1082460 1082460 0 0.0
.bss 134748 134748 0 0.0
.data 2092 2092 0 0.0
.text 945596 945596 0 0.0
k32w light k32w0+release (read/write) 643528 643432 -96 -0.0
.bss 69720 69720 0 0.0
.data 2044 2044 0 0.0
.text 569036 568940 -96 -0.0
lock k32w0+release (read/write) 701760 701552 -208 -0.0
.bss 70184 70184 0 0.0
.data 2052 2052 0 0.0
.text 626796 626588 -208 -0.0
linux all-clusters-app debug (read only) 3014993 3014993 0 0.0
(read/write) 155720 155720 0 0.0
.bss 61888 61888 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 85384 85384 0 0.0
.dynamic 608 608 0 0.0
.got 4568 4568 0 0.0
.init 27 27 0 0.0
.init_array 1152 1152 0 0.0
.rodata 271787 271787 0 0.0
.text 2564322 2564322 0 0.0
all-clusters-minimal-app debug (read only) 2856745 2856745 0 0.0
(read/write) 147488 147488 0 0.0
.bss 61152 61152 0 0.0
.data 2064 2064 0 0.0
.data.rel.ro 77992 77992 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 271819 271819 0 0.0
.text 2408674 2408674 0 0.0
bridge-app debug+rpc (read only) 2362201 2362201 0 0.0
(read/write) 127584 127584 0 0.0
.bss 50592 50592 0 0.0
.data 3600 3600 0 0.0
.data.rel.ro 67544 67544 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 824 824 0 0.0
.rodata 202728 202728 0 0.0
.text 1996466 1996466 0 0.0
chip-tool debug (read only) 10421945 10421945 0 0.0
(read/write) 644384 644384 0 0.0
.bss 24856 24856 0 0.0
.data 3266 3266 0 0.0
.data.rel.ro 609752 609752 0 0.0
.dynamic 608 608 0 0.0
.got 5088 5088 0 0.0
.init 27 27 0 0.0
.init_array 768 768 0 0.0
.rodata 530965 530965 0 0.0
.text 8399636 8399636 0 0.0
chip-tool-ipv6only arm64 (read only) 9828332 9828332 0 0.0
(read/write) 692049 692049 0 0.0
.bss 32897 32897 0 0.0
.data 3272 3272 0 0.0
.data.rel.ro 637312 637312 0 0.0
.dynamic 560 560 0 0.0
.got 13608 13608 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 463020 463020 0 0.0
.text 7743140 7743140 0 0.0
lighting-app debug+rpc (read only) 2584673 2584673 0 0.0
(read/write) 130232 130232 0 0.0
.bss 49728 49728 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 72456 72456 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 912 912 0 0.0
.rodata 218384 218384 0 0.0
.text 2195218 2195218 0 0.0
lock-app debug (read only) 2573257 2573257 0 0.0
(read/write) 125568 125568 0 0.0
.bss 48256 48256 0 0.0
.data 1712 1712 0 0.0
.data.rel.ro 69592 69592 0 0.0
.dynamic 608 608 0 0.0
.got 4464 4464 0 0.0
.init 27 27 0 0.0
.init_array 888 888 0 0.0
.rodata 235792 235792 0 0.0
.text 2170450 2170450 0 0.0
ota-provider-app debug (read only) 2353265 2353265 0 0.0
(read/write) 119048 119048 0 0.0
.bss 47808 47808 0 0.0
.data 1936 1936 0 0.0
.data.rel.ro 63416 63416 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 768 768 0 0.0
.rodata 208920 208920 0 0.0
.text 1980466 1980466 0 0.0
ota-requestor-app debug (read only) 2473857 2473857 0 0.0
(read/write) 126440 126440 0 0.0
.bss 50176 50176 0 0.0
.data 2240 2240 0 0.0
.data.rel.ro 68072 68072 0 0.0
.dynamic 608 608 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 832 832 0 0.0
.rodata 212448 212448 0 0.0
.text 2088914 2088914 0 0.0
shell debug (read only) 2586185 2586185 0 0.0
(read/write) 141872 141872 0 0.0
.bss 57800 57800 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 77008 77008 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 1024 1024 0 0.0
.rodata 232754 232754 0 0.0
.text 2195202 2195202 0 0.0
thermostat-no-ble arm64 (read only) 2350700 2350700 0 0.0
(read/write) 141761 141761 0 0.0
.bss 55329 55329 0 0.0
.data 1672 1672 0 0.0
.data.rel.ro 75976 75976 0 0.0
.dynamic 560 560 0 0.0
.got 5016 5016 0 0.0
.init 24 24 0 0.0
.init_array 408 408 0 0.0
.rodata 139412 139412 0 0.0
.text 1973776 1973776 0 0.0
tv-app debug (read only) 3155729 3155729 0 0.0
(read/write) 257736 257736 0 0.0
.bss 167352 167352 0 0.0
.data 4736 4736 0 0.0
.data.rel.ro 79104 79104 0 0.0
.dynamic 608 608 0 0.0
.got 4848 4848 0 0.0
.init 27 27 0 0.0
.init_array 1064 1064 0 0.0
.rodata 256392 256392 0 0.0
.text 2709762 2709762 0 0.0
tv-casting-app debug (read only) 5393105 5393105 0 0.0
(read/write) 158728 158728 0 0.0
.bss 51384 51384 0 0.0
.data 2432 2432 0 0.0
.data.rel.ro 98504 98504 0 0.0
.dynamic 608 608 0 0.0
.got 4736 4736 0 0.0
.init 27 27 0 0.0
.init_array 1032 1032 0 0.0
.rodata 339825 339825 0 0.0
.text 4785986 4785986 0 0.0
p6 all-clusters-app default (read only) 881528 881528 0 0.0
(read/write) 1689172 1689172 0 0.0
.bss 149168 149168 0 0.0
.data 2648 2648 0 0.0
.text 1528968 1528968 0 0.0
all-clusters-minimal-app default (read only) 882248 882248 0 0.0
(read/write) 1633332 1633332 0 0.0
.bss 148448 148448 0 0.0
.data 2648 2648 0 0.0
.text 1473848 1473848 0 0.0
light-app default (read only) 890568 890568 0 0.0
(read/write) 1553556 1553556 0 0.0
.bss 140336 140336 0 0.0
.data 2440 2440 0 0.0
.text 1402392 1402392 0 0.0
lock-app default (read only) 886072 886072 0 0.0
(read/write) 1592084 1592084 0 0.0
.bss 144816 144816 0 0.0
.data 2456 2456 0 0.0
.text 1436424 1436424 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 805560 805560 0 0.0
bss 70976 70976 0 0.0
noinit 43488 43488 0 0.0
text 569418 569420 2 0.0
lighting-app tlsr9518adk80d (read/write) 826000 826000 0 0.0
bss 71820 71820 0 0.0
noinit 43488 43488 0 0.0
text 586304 586308 4 0.0

@github-actions github-actions bot added the esp32 label Aug 3, 2022
@github-actions
Copy link

github-actions bot commented Aug 3, 2022

PR #21582: Size comparison from 03778b2 to e6342ac

Increases (4 builds for bl602, cyw30739, telink)
platform target config section 03778b2 e6342ac change % change
bl602 lighting-app bl602 (read/write) 1378730 1378738 8 0.0
.text 1047196 1047200 4 0.0
cyw30739 lock cyw930739m2evb_01 (read/write) 590614 590622 8 0.0
.app_xip_area 462640 462648 8 0.0
telink light-switch-app tlsr9518adk80d text 569418 569420 2 0.0
lighting-app tlsr9518adk80d text 586304 586306 2 0.0
Decreases (13 builds for esp32, k32w, nrfconnect)
platform target config section 03778b2 e6342ac change % change
esp32 all-clusters-app c3devkit (read only) 1024476 1024474 -2 -0.0
.flash.text 1024476 1024474 -2 -0.0
k32w light k32w0+release (read/write) 643528 643432 -96 -0.0
.text 569036 568940 -96 -0.0
lock k32w0+release (read/write) 701760 701552 -208 -0.0
.text 626796 626588 -208 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1176439 1176243 -196 -0.0
rodata 142488 142420 -68 -0.0
text 811880 811760 -120 -0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1156459 1156283 -176 -0.0
rodata 134148 134084 -64 -0.0
text 801036 800916 -120 -0.0
lighting-app nrf52840dk_nrf52840 (read/write) 1167667 1167475 -192 -0.0
rodata 123924 123860 -64 -0.1
text 820020 819900 -120 -0.0
nrf52840dk_nrf52840+rpc (read/write) 1137203 1137011 -192 -0.0
rodata 115380 115316 -64 -0.1
text 797280 797160 -120 -0.0
nrf52840dongle_nrf52840 (read/write) 1074659 1074483 -176 -0.0
rodata 93060 92996 -64 -0.1
text 748512 748388 -124 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 1071158 1070978 -180 -0.0
rodata 116340 116272 -68 -0.1
text 732576 732460 -116 -0.0
lock-app nrf52840dk_nrf52840 (read/write) 1128535 1128359 -176 -0.0
rodata 142184 142120 -64 -0.0
text 771840 771720 -120 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 1032310 1032114 -196 -0.0
rodata 134660 134592 -68 -0.1
text 684460 684336 -124 -0.0
pump-app nrf52840dk_nrf52840 (read/write) 1078847 1078667 -180 -0.0
rodata 117136 117068 -68 -0.1
text 748248 748128 -120 -0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 1066595 1066419 -176 -0.0
rodata 113892 113828 -64 -0.1
text 739368 739252 -116 -0.0
Full report (55 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 03778b2 e6342ac change % change
bl602 lighting-app bl602 (read/write) 1378730 1378738 8 0.0
.bss 119746 119746 0 0.0
.data 4480 4480 0 0.0
.text 1047196 1047200 4 0.0
bl602+rpc (read/write) 1423986 1423986 0 0.0
.bss 127186 127186 0 0.0
.data 4600 4600 0 0.0
.text 1078700 1078700 0 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 669979 669979 0 0.0
(read/write) 181404 181404 0 0.0
.bss 74276 74276 0 0.0
.data 3372 3372 0 0.0
.rodata 88467 88467 0 0.0
.text 581196 581196 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 635491 635491 0 0.0
(read/write) 157844 157844 0 0.0
.bss 73556 73556 0 0.0
.data 3372 3372 0 0.0
.rodata 77691 77691 0 0.0
.text 557476 557476 0 0.0
lock-ftd LP_CC2652R7 (read only) 672975 672975 0 0.0
(read/write) 168592 168592 0 0.0
.bss 71348 71348 0 0.0
.data 3296 3296 0 0.0
.rodata 76535 76535 0 0.0
.text 595960 595960 0 0.0
lock-mtd LP_CC2652R7 (read only) 655371 655371 0 0.0
(read/write) 181884 181884 0 0.0
.bss 67036 67036 0 0.0
.data 3296 3296 0 0.0
.rodata 101395 101395 0 0.0
.text 553496 553496 0 0.0
pump-app LP_CC2652R7 (read only) 681447 681447 0 0.0
(read/write) 160928 160928 0 0.0
.bss 71388 71388 0 0.0
.data 3296 3296 0 0.0
.rodata 88919 88919 0 0.0
.text 592044 592044 0 0.0
pump-controller-app LP_CC2652R7 (read only) 667023 667023 0 0.0
(read/write) 175488 175488 0 0.0
.bss 71524 71524 0 0.0
.data 3292 3292 0 0.0
.rodata 84743 84743 0 0.0
.text 581800 581800 0 0.0
shell LP_CC2652R7 (read only) 662694 662694 0 0.0
(read/write) 184208 184208 0 0.0
.bss 76596 76596 0 0.0
.data 3376 3376 0 0.0
.rodata 85446 85446 0 0.0
.text 576932 576932 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 584142 584142 0 0.0
.app_xip_area 460952 460952 0 0.0
.bss 65632 65632 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 590614 590622 8 0.0
.app_xip_area 462640 462648 8 0.0
.bss 70416 70416 0 0.0
.data 748 748 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 589850 589850 0 0.0
.app_xip_area 467468 467468 0 0.0
.bss 64880 64880 0 0.0
.data 688 688 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read/write) 1089152 1089152 0 0.0
.bss 133268 133268 0 0.0
.data 2064 2064 0 0.0
.text 953800 953800 0 0.0
BRD4161A+rpc (read/write) 1143460 1143460 0 0.0
.bss 149948 149948 0 0.0
.data 2276 2276 0 0.0
.text 991216 991216 0 0.0
BRD4161A+rs911x (read/write) 975624 975624 0 0.0
.bss 161752 161752 0 0.0
.data 2048 2048 0 0.0
.text 811804 811804 0 0.0
lock-app BRD4161A+wf200 (read/write) 1130400 1130400 0 0.0
.bss 144400 144400 0 0.0
.data 2056 2056 0 0.0
.text 983924 983924 0 0.0
window-app BRD4161A (read/write) 1082460 1082460 0 0.0
.bss 134748 134748 0 0.0
.data 2092 2092 0 0.0
.text 945596 945596 0 0.0
esp32 all-clusters-app c3devkit (read only) 1024476 1024474 -2 -0.0
(read/write) 1486906 1486906 0 0.0
.dram0.bss 70336 70336 0 0.0
.dram0.data 14600 14600 0 0.0
.flash.rodata 216536 216536 0 0.0
.flash.text 1024476 1024474 -2 -0.0
.iram0.text 62902 62902 0 0.0
m5stack (read only) 1077951 1077951 0 0.0
(read/write) 488928 488928 0 0.0
.dram0.bss 75840 75840 0 0.0
.dram0.data 34144 34144 0 0.0
.flash.rodata 246948 246948 0 0.0
.flash.text 1072567 1072567 0 0.0
.iram0.text 123267 123267 0 0.0
k32w light k32w0+release (read/write) 643528 643432 -96 -0.0
.bss 69720 69720 0 0.0
.data 2044 2044 0 0.0
.text 569036 568940 -96 -0.0
lock k32w0+release (read/write) 701760 701552 -208 -0.0
.bss 70184 70184 0 0.0
.data 2052 2052 0 0.0
.text 626796 626588 -208 -0.0
linux all-clusters-app debug (read only) 3014993 3014993 0 0.0
(read/write) 155720 155720 0 0.0
.bss 61888 61888 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 85384 85384 0 0.0
.dynamic 608 608 0 0.0
.got 4568 4568 0 0.0
.init 27 27 0 0.0
.init_array 1152 1152 0 0.0
.rodata 271787 271787 0 0.0
.text 2564322 2564322 0 0.0
all-clusters-minimal-app debug (read only) 2856745 2856745 0 0.0
(read/write) 147488 147488 0 0.0
.bss 61152 61152 0 0.0
.data 2064 2064 0 0.0
.data.rel.ro 77992 77992 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 271819 271819 0 0.0
.text 2408674 2408674 0 0.0
bridge-app debug+rpc (read only) 2362201 2362201 0 0.0
(read/write) 127584 127584 0 0.0
.bss 50592 50592 0 0.0
.data 3600 3600 0 0.0
.data.rel.ro 67544 67544 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 824 824 0 0.0
.rodata 202728 202728 0 0.0
.text 1996466 1996466 0 0.0
chip-tool debug (read only) 10421945 10421945 0 0.0
(read/write) 644384 644384 0 0.0
.bss 24856 24856 0 0.0
.data 3266 3266 0 0.0
.data.rel.ro 609752 609752 0 0.0
.dynamic 608 608 0 0.0
.got 5088 5088 0 0.0
.init 27 27 0 0.0
.init_array 768 768 0 0.0
.rodata 530965 530965 0 0.0
.text 8399636 8399636 0 0.0
chip-tool-ipv6only arm64 (read only) 9828332 9828332 0 0.0
(read/write) 692049 692049 0 0.0
.bss 32897 32897 0 0.0
.data 3272 3272 0 0.0
.data.rel.ro 637312 637312 0 0.0
.dynamic 560 560 0 0.0
.got 13608 13608 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 463020 463020 0 0.0
.text 7743140 7743140 0 0.0
lighting-app debug+rpc (read only) 2584673 2584673 0 0.0
(read/write) 130232 130232 0 0.0
.bss 49728 49728 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 72456 72456 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 912 912 0 0.0
.rodata 218384 218384 0 0.0
.text 2195218 2195218 0 0.0
lock-app debug (read only) 2573257 2573257 0 0.0
(read/write) 125568 125568 0 0.0
.bss 48256 48256 0 0.0
.data 1712 1712 0 0.0
.data.rel.ro 69592 69592 0 0.0
.dynamic 608 608 0 0.0
.got 4464 4464 0 0.0
.init 27 27 0 0.0
.init_array 888 888 0 0.0
.rodata 235792 235792 0 0.0
.text 2170450 2170450 0 0.0
ota-provider-app debug (read only) 2353265 2353265 0 0.0
(read/write) 119048 119048 0 0.0
.bss 47808 47808 0 0.0
.data 1936 1936 0 0.0
.data.rel.ro 63416 63416 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 768 768 0 0.0
.rodata 208920 208920 0 0.0
.text 1980466 1980466 0 0.0
ota-requestor-app debug (read only) 2473857 2473857 0 0.0
(read/write) 126440 126440 0 0.0
.bss 50176 50176 0 0.0
.data 2240 2240 0 0.0
.data.rel.ro 68072 68072 0 0.0
.dynamic 608 608 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 832 832 0 0.0
.rodata 212448 212448 0 0.0
.text 2088914 2088914 0 0.0
shell debug (read only) 2586185 2586185 0 0.0
(read/write) 141872 141872 0 0.0
.bss 57800 57800 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 77008 77008 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 1024 1024 0 0.0
.rodata 232754 232754 0 0.0
.text 2195202 2195202 0 0.0
thermostat-no-ble arm64 (read only) 2350700 2350700 0 0.0
(read/write) 141761 141761 0 0.0
.bss 55329 55329 0 0.0
.data 1672 1672 0 0.0
.data.rel.ro 75976 75976 0 0.0
.dynamic 560 560 0 0.0
.got 5016 5016 0 0.0
.init 24 24 0 0.0
.init_array 408 408 0 0.0
.rodata 139412 139412 0 0.0
.text 1973776 1973776 0 0.0
tv-app debug (read only) 3155729 3155729 0 0.0
(read/write) 257736 257736 0 0.0
.bss 167352 167352 0 0.0
.data 4736 4736 0 0.0
.data.rel.ro 79104 79104 0 0.0
.dynamic 608 608 0 0.0
.got 4848 4848 0 0.0
.init 27 27 0 0.0
.init_array 1064 1064 0 0.0
.rodata 256392 256392 0 0.0
.text 2709762 2709762 0 0.0
tv-casting-app debug (read only) 5393105 5393105 0 0.0
(read/write) 158728 158728 0 0.0
.bss 51384 51384 0 0.0
.data 2432 2432 0 0.0
.data.rel.ro 98504 98504 0 0.0
.dynamic 608 608 0 0.0
.got 4736 4736 0 0.0
.init 27 27 0 0.0
.init_array 1032 1032 0 0.0
.rodata 339825 339825 0 0.0
.text 4785986 4785986 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2522524 2522524 0 0.0
.bss 222312 222312 0 0.0
.data 5584 5584 0 0.0
.text 1485140 1485140 0 0.0
all-clusters-minimal-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2472784 2472784 0 0.0
.bss 221592 221592 0 0.0
.data 5560 5560 0 0.0
.text 1435380 1435380 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2459828 2459828 0 0.0
.bss 215668 215668 0 0.0
.data 5840 5840 0 0.0
.text 1422444 1422444 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2453288 2453288 0 0.0
.bss 214548 214548 0 0.0
.data 5872 5872 0 0.0
.text 1415932 1415932 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2401444 2401444 0 0.0
.bss 214432 214432 0 0.0
.data 5712 5712 0 0.0
.text 1364060 1364060 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1176439 1176243 -196 -0.0
bss 143224 143224 0 0.0
rodata 142488 142420 -68 -0.0
text 811880 811760 -120 -0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1156459 1156283 -176 -0.0
bss 142460 142460 0 0.0
rodata 134148 134084 -64 -0.0
text 801036 800916 -120 -0.0
lighting-app nrf52840dk_nrf52840 (read/write) 1167667 1167475 -192 -0.0
bss 144799 144799 0 0.0
rodata 123924 123860 -64 -0.1
text 820020 819900 -120 -0.0
nrf52840dk_nrf52840+rpc (read/write) 1137203 1137011 -192 -0.0
bss 145212 145212 0 0.0
rodata 115380 115316 -64 -0.1
text 797280 797160 -120 -0.0
nrf52840dongle_nrf52840 (read/write) 1074659 1074483 -176 -0.0
bss 152014 152014 0 0.0
rodata 93060 92996 -64 -0.1
text 748512 748388 -124 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 1071158 1070978 -180 -0.0
bss 141170 141170 0 0.0
rodata 116340 116272 -68 -0.1
text 732576 732460 -116 -0.0
lock-app nrf52840dk_nrf52840 (read/write) 1128535 1128359 -176 -0.0
bss 135755 135755 0 0.0
rodata 142184 142120 -64 -0.0
text 771840 771720 -120 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 1032310 1032114 -196 -0.0
bss 132158 132158 0 0.0
rodata 134660 134592 -68 -0.1
text 684460 684336 -124 -0.0
pump-app nrf52840dk_nrf52840 (read/write) 1078847 1078667 -180 -0.0
bss 134654 134654 0 0.0
rodata 117136 117068 -68 -0.1
text 748248 748128 -120 -0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 1066595 1066419 -176 -0.0
bss 134449 134449 0 0.0
rodata 113892 113828 -64 -0.1
text 739368 739252 -116 -0.0
p6 all-clusters-app default (read only) 881528 881528 0 0.0
(read/write) 1689172 1689172 0 0.0
.bss 149168 149168 0 0.0
.data 2648 2648 0 0.0
.text 1528968 1528968 0 0.0
all-clusters-minimal-app default (read only) 882248 882248 0 0.0
(read/write) 1633332 1633332 0 0.0
.bss 148448 148448 0 0.0
.data 2648 2648 0 0.0
.text 1473848 1473848 0 0.0
light-app default (read only) 890568 890568 0 0.0
(read/write) 1553556 1553556 0 0.0
.bss 140336 140336 0 0.0
.data 2440 2440 0 0.0
.text 1402392 1402392 0 0.0
lock-app default (read only) 886072 886072 0 0.0
(read/write) 1592084 1592084 0 0.0
.bss 144816 144816 0 0.0
.data 2456 2456 0 0.0
.text 1436424 1436424 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 805560 805560 0 0.0
bss 70976 70976 0 0.0
noinit 43488 43488 0 0.0
text 569418 569420 2 0.0
lighting-app tlsr9518adk80d (read/write) 826000 826000 0 0.0
bss 71820 71820 0 0.0
noinit 43488 43488 0 0.0
text 586304 586306 2 0.0

@tcarmelveilleux tcarmelveilleux merged commit a494b1c into project-chip:master Aug 3, 2022
@Damian-Nordic Damian-Nordic deleted the fully-provisioned branch August 3, 2022 13:33
isiu-apple pushed a commit to isiu-apple/connectedhomeip that referenced this pull request Sep 16, 2022
…VISIONED (project-chip#21582)

* [zephyr] Remove usage of IsFullyProvisioned() in BLE manager

If CHIP_DEVICE_CONFIG_CHIPOBLE_DISABLE_ADVERTISING_WHEN_PROVISIONED
is set, which turns out to be true on Zephyr, NXP and,
conditionally, ESP32 platforms, the BLE manager will not
start BLE advertising if IsFullyProvisioned() method of the
ConnectivityManager class returns true. The problem is that
the method seems obsolete and the proper logic is already
in place in Server.cpp, so we should align the platforms
and remove the legacy code.

Signed-off-by: Damian Krolik <[email protected]>

* Remove CHIP_DEVICE_CONFIG_CHIPOBLE_DISABLE_ADVERTISING_WHEN_PROVISIONED

Remove CHIP_DEVICE_CONFIG_CHIPOBLE_DISABLE_ADVERTISING_WHEN_PROVISIONED
and the associated code from platforms that never set it.

Signed-off-by: Damian Krolik <[email protected]>

* Remove CHIP_DEVICE_CONFIG_CHIPOBLE_DISABLE_ADVERTISING_WHEN_PROVISIONED from K32

Signed-off-by: Damian Krolik <[email protected]>

* Restyled by clang-format

* Remove CHIP_DEVICE_CONFIG_CHIPOBLE_DISABLE_ADVERTISING_WHEN_PROVISIONED from ESP32

Co-authored-by: Restyled.io <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants