Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@crlonxp
Copy link
Contributor

@crlonxp crlonxp commented Apr 9, 2025

  • use uint16_t as freq parameter in chip-tool
  • Change to only drop the paf connections which were created by the commissioner in its shutdown function
  • Move the publish function to CommissioningWindowManager
  • Remove some redundant functions
  • Fix some typo and incorrect comment

Testing

  • Environment:
    AP: Asus RT-N66U, running at chnl#1
    ctrl: Rpi + NetGear, Inc. A6210
    dut#1: rpi + Linksys AE6000
    dut#2: imx93+iw612
  • commands:
    dut:
    $ sudo ./chip-all-clusters-app --wifi --wifipaf freq_list=2412
ctrl: Connect with AP before running the test
    $ sudo ./chip-tool pairing code-wifi 1 n_m_2g nxp12345 MT:-24J0M3810KA0648G00 --freq 2412
    $ sudo ./chip-tool pairing wifipaf-wifi 1 n_m_2g nxp12345 20202021 3840 --freq 2412

Fixes #38315 by changing the variable type from uint8_t to size_t

@github-actions
Copy link

github-actions bot commented Apr 9, 2025

PR #38321: Size comparison from 61897c7 to 3107b21

Full report (27 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, nrfconnect, qpg, stm32, telink, tizen)
platform target config section 61897c7 3107b21 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1098508 1098518 10 0.0
RAM 94850 94850 0 0.0
bl702 lighting-app bl702+eth FLASH 653166 653176 10 0.0
RAM 33533 33533 0 0.0
bl702+wifi FLASH 830422 830432 10 0.0
RAM 22257 22257 0 0.0
bl706+mfd+rpc+littlefs FLASH 1063204 1063214 10 0.0
RAM 32181 32181 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 894002 894012 10 0.0
RAM 26920 26920 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 976878 976888 10 0.0
RAM 24668 24668 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 818492 818496 4 0.0
RAM 120288 120288 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 827364 827368 4 0.0
RAM 125384 125384 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 774288 774300 12 0.0
RAM 113756 113756 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 758588 758592 4 0.0
RAM 113972 113972 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 541934 541946 12 0.0
RAM 205144 205144 0 0.0
lock CC3235SF_LAUNCHXL FLASH 575954 575966 12 0.0
RAM 205392 205392 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 916160 916168 8 0.0
RAM 167443 167443 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 909080 909092 12 0.0
RAM 145687 145687 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 852668 852676 8 0.0
RAM 141223 141223 0 0.0
qpg lighting-app qpg6105+debug FLASH 665116 665124 8 0.0
RAM 105172 105172 0 0.0
lock-app qpg6105+debug FLASH 623520 623536 16 0.0
RAM 99792 99792 0 0.0
stm32 light STM32WB5MM-DK FLASH 461184 461192 8 0.0
RAM 141488 141488 0 0.0
telink bridge-app tl7218x FLASH 689186 689196 10 0.0
RAM 101852 101852 0 0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 777188 777198 10 0.0
RAM 50120 50120 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 783824 783834 10 0.0
RAM 109308 109308 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 705038 705048 10 0.0
RAM 62620 62620 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 741220 741230 10 0.0
RAM 85808 85808 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602960 602970 10 0.0
RAM 148704 148704 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 818438 818452 14 0.0
RAM 107568 107568 0 0.0
tizen all-clusters-app arm unknown 5152 5152 0 0.0
FLASH 1784372 1784420 48 0.0
RAM 94280 94280 0 0.0
chip-tool-ubsan arm unknown 11836 11836 0 0.0
FLASH 20057750 20057750 0 0.0
RAM 8792596 8792596 0 0.0

@github-actions
Copy link

github-actions bot commented Apr 9, 2025

PR #38321: Size comparison from 61897c7 to 9d1802e

Increases above 0.2%:

platform target config section 61897c7 9d1802e change % change
linux shell debug unknown 4272 4296 24 0.6
FLASH 3005548 3013388 7840 0.3
tv-casting-app debug unknown 5416 5432 16 0.3
Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 61897c7 9d1802e change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1098508 1098518 10 0.0
RAM 94850 94850 0 0.0
bl702 lighting-app bl702+eth FLASH 653166 653176 10 0.0
RAM 33533 33533 0 0.0
bl702+wifi FLASH 830422 830432 10 0.0
RAM 22257 22257 0 0.0
bl706+mfd+rpc+littlefs FLASH 1063204 1063214 10 0.0
RAM 32181 32181 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 894002 894012 10 0.0
RAM 26920 26920 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 976878 976888 10 0.0
RAM 24668 24668 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 818492 818496 4 0.0
RAM 120288 120288 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 827364 827368 4 0.0
RAM 125384 125384 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 774288 774300 12 0.0
RAM 113756 113756 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 758588 758592 4 0.0
RAM 113972 113972 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 541934 541946 12 0.0
RAM 205144 205144 0 0.0
lock CC3235SF_LAUNCHXL FLASH 575954 575966 12 0.0
RAM 205392 205392 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 660045 660053 8 0.0
RAM 75428 75428 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 679897 679905 8 0.0
RAM 78068 78068 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 679897 679905 8 0.0
RAM 78068 78068 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 636829 636837 8 0.0
RAM 70496 70496 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 620285 620293 8 0.0
RAM 71676 71676 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639921 639929 8 0.0
RAM 74220 74220 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639921 639929 8 0.0
RAM 74220 74220 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 639765 639781 16 0.0
RAM 74676 74676 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 659481 659497 16 0.0
RAM 77220 77220 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 659481 659497 16 0.0
RAM 77220 77220 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 616129 616145 16 0.0
RAM 68764 68764 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 635981 635997 16 0.0
RAM 71404 71404 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 635981 635997 16 0.0
RAM 71404 71404 0 0.0
efr32 lock-app BRD4187C FLASH 940968 940968 0 0.0
RAM 159944 159944 0 0.0
BRD4338a FLASH 734920 734920 0 0.0
RAM 234852 234852 0 0.0
window-app BRD4187C FLASH 1033360 1033384 24 0.0
RAM 128048 128048 0 0.0
esp32 all-clusters-app c3devkit DRAM 103376 103376 0 0.0
FLASH 1785194 1785204 10 0.0
IRAM 83846 83846 0 0.0
m5stack DRAM 121948 121948 0 0.0
FLASH 1751782 1751790 8 0.0
IRAM 117043 117043 0 0.0
linux air-purifier-app debug unknown 4848 4848 0 0.0
FLASH 2720527 2721227 700 0.0
RAM 114184 114184 0 0.0
all-clusters-app debug unknown 5656 5656 0 0.0
FLASH 6190630 6191312 682 0.0
RAM 530376 530376 0 0.0
all-clusters-minimal-app debug unknown 5528 5528 0 0.0
FLASH 5376278 5376962 684 0.0
RAM 224432 224432 0 0.0
bridge-app debug unknown 5544 5544 0 0.0
FLASH 4689338 4689554 216 0.0
RAM 202816 202816 0 0.0
camera-app debug unknown 8832 8832 0 0.0
FLASH 6697259 6697979 720 0.0
RAM 223824 223824 0 0.0
camera-controller debug unknown 9120 9120 0 0.0
FLASH 13686411 13687371 960 0.0
RAM 644240 644240 0 0.0
chip-tool debug unknown 6256 6248 -8 -0.1
FLASH 14069139 14069239 100 0.0
RAM 634416 634416 0 0.0
chip-tool-ipv6only arm64 unknown 22816 22816 0 0.0
FLASH 12156616 12156184 -432 -0.0
RAM 687048 687064 16 0.0
fabric-admin debug unknown 5936 5936 0 0.0
FLASH 12214227 12215199 972 0.0
RAM 633776 633776 0 0.0
fabric-bridge-app debug unknown 4800 4800 0 0.0
FLASH 4521196 4521940 744 0.0
RAM 190112 190112 0 0.0
fabric-sync debug unknown 5056 5056 0 0.0
FLASH 5659589 5660597 1008 0.0
RAM 485384 485320 -64 -0.0
lighting-app debug+rpc+ui unknown 6264 6264 0 0.0
FLASH 5584353 5585057 704 0.0
RAM 207064 207064 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4756990 4757690 700 0.0
RAM 194208 194176 -32 -0.0
ota-provider-app debug unknown 4840 4840 0 0.0
FLASH 4379178 4379916 738 0.0
RAM 182928 182928 0 0.0
ota-requestor-app debug unknown 4792 4792 0 0.0
FLASH 4509494 4510232 738 0.0
RAM 187400 187400 0 0.0
shell debug unknown 4272 4296 24 0.6
FLASH 3005548 3013388 7840 0.3
RAM 147456 147456 0 0.0
thermostat-no-ble arm64 unknown 9552 9552 0 0.0
FLASH 4198752 4199920 1168 0.0
RAM 231912 231912 0 0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 5996469 5997445 976 0.0
RAM 608800 608768 -32 -0.0
tv-casting-app debug unknown 5416 5432 16 0.3
FLASH 12228061 12235725 7664 0.1
RAM 752112 752112 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 916160 916168 8 0.0
RAM 167443 167443 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 909080 909092 12 0.0
RAM 145687 145687 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 852668 852676 8 0.0
RAM 141223 141223 0 0.0
nxp contact k32w0+release FLASH 588608 588624 16 0.0
RAM 70996 70996 0 0.0
mcxw71+release FLASH 607080 607080 0 0.0
RAM 63152 63152 0 0.0
light k32w0+release FLASH 614428 614428 0 0.0
RAM 70292 70292 0 0.0
k32w1+release FLASH 691224 691240 16 0.0
RAM 72000 72000 0 0.0
lock mcxw71+release FLASH 756272 756280 8 0.0
RAM 67564 67564 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1661292 1661308 16 0.0
RAM 212328 212328 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1565428 1565444 16 0.0
RAM 208544 208544 0 0.0
light cy8ckit_062s2_43012 FLASH 1442412 1442412 0 0.0
RAM 197312 197312 0 0.0
lock cy8ckit_062s2_43012 FLASH 1471260 1471276 16 0.0
RAM 224976 224976 0 0.0
qpg lighting-app qpg6105+debug FLASH 665116 665124 8 0.0
RAM 105172 105172 0 0.0
lock-app qpg6105+debug FLASH 623520 623536 16 0.0
RAM 99792 99792 0 0.0
stm32 light STM32WB5MM-DK FLASH 461184 461192 8 0.0
RAM 141488 141488 0 0.0
telink bridge-app tl7218x FLASH 689186 666070 -23116 -3.4
689186 689196 10 0.0
RAM 101852 90704 -11148 -10.9
101852 101852 0 0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 777188 777198 10 0.0
RAM 50120 50120 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 767450 767460 10 0.0
RAM 40420 40420 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 783824 755920 -27904 -3.6
783824 783834 10 0.0
RAM 109308 97540 -11768 -10.8
109308 109308 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 705038 682938 -22100 -3.1
705038 705048 10 0.0
RAM 62620 51588 -11032 -17.6
62620 62620 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 741220 711388 -29832 -4.0
741220 741230 10 0.0
RAM 85808 73408 -12400 -14.5
85808 85808 0 0.0
light-switch-app-ota-shell-factory-data tl3218x_retention FLASH 708924 708934 10 0.0
RAM 37044 37044 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602960 603396 436 0.1
602960 602970 10 0.0
RAM 148704 138640 -10064 -6.8
148704 148704 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 818438 790922 -27516 -3.4
818438 818452 14 0.0
RAM 107568 96396 -11172 -10.4
107568 107568 0 0.0
tizen all-clusters-app arm unknown 5152 5152 0 0.0
FLASH 1784372 1784420 48 0.0
RAM 94280 94280 0 0.0
chip-tool-ubsan arm unknown 11836 11836 0 0.0
FLASH 20057750 20057750 0 0.0
RAM 8792596 8792596 0 0.0

@github-actions
Copy link

github-actions bot commented Apr 10, 2025

PR #38321: Size comparison from 61897c7 to b4fc1c6

Increases above 0.2%:

platform target config section 61897c7 b4fc1c65 change % change
linux shell debug unknown 4272 4296 24 0.6
FLASH 3005548 3014668 9120 0.3
tv-casting-app debug unknown 5416 5432 16 0.3
Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 61897c7 b4fc1c65 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1098508 1098552 44 0.0
RAM 94850 94850 0 0.0
bl702 lighting-app bl702+eth FLASH 653166 653466 300 0.0
RAM 33533 33533 0 0.0
bl702+wifi FLASH 830422 830722 300 0.0
RAM 22257 22257 0 0.0
bl706+mfd+rpc+littlefs FLASH 1063204 1063248 44 0.0
RAM 32181 32181 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 894002 894046 44 0.0
RAM 26920 26920 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 976878 976922 44 0.0
RAM 24668 24668 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 818492 818648 156 0.0
RAM 120288 120288 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 827364 827504 140 0.0
RAM 125384 125384 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 774288 774452 164 0.0
RAM 113756 113756 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 758588 758744 156 0.0
RAM 113972 113972 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 541934 542098 164 0.0
RAM 205144 205144 0 0.0
lock CC3235SF_LAUNCHXL FLASH 575954 576118 164 0.0
RAM 205392 205392 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 660045 660197 152 0.0
RAM 75428 75428 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 679897 680049 152 0.0
RAM 78068 78068 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 679897 680049 152 0.0
RAM 78068 78068 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 636829 636981 152 0.0
RAM 70496 70496 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 620285 620437 152 0.0
RAM 71676 71676 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639921 640073 152 0.0
RAM 74220 74220 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639921 640073 152 0.0
RAM 74220 74220 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 639765 639925 160 0.0
RAM 74676 74676 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 659481 659641 160 0.0
RAM 77220 77220 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 659481 659641 160 0.0
RAM 77220 77220 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 616129 616289 160 0.0
RAM 68764 68764 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 635981 636141 160 0.0
RAM 71404 71404 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 635981 636141 160 0.0
RAM 71404 71404 0 0.0
efr32 lock-app BRD4187C FLASH 940968 941128 160 0.0
RAM 159944 159944 0 0.0
BRD4338a FLASH 734920 735128 208 0.0
RAM 234852 234852 0 0.0
window-app BRD4187C FLASH 1033360 1033576 216 0.0
RAM 128048 128048 0 0.0
esp32 all-clusters-app c3devkit DRAM 103376 103376 0 0.0
FLASH 1785194 1785370 176 0.0
IRAM 83846 83846 0 0.0
m5stack DRAM 121948 121948 0 0.0
FLASH 1751782 1752022 240 0.0
IRAM 117043 117043 0 0.0
linux air-purifier-app debug unknown 4848 4848 0 0.0
FLASH 2720527 2722473 1946 0.1
RAM 114184 114184 0 0.0
all-clusters-app debug unknown 5656 5656 0 0.0
FLASH 6190630 6192558 1928 0.0
RAM 530376 530376 0 0.0
all-clusters-minimal-app debug unknown 5528 5528 0 0.0
FLASH 5376278 5378240 1962 0.0
RAM 224432 224432 0 0.0
bridge-app debug unknown 5544 5544 0 0.0
FLASH 4689338 4690800 1462 0.0
RAM 202816 202816 0 0.0
camera-app debug unknown 8832 8832 0 0.0
FLASH 6697259 6699227 1968 0.0
RAM 223824 223824 0 0.0
camera-controller debug unknown 9120 9120 0 0.0
FLASH 13686411 13688779 2368 0.0
RAM 644240 644240 0 0.0
chip-tool debug unknown 6256 6248 -8 -0.1
FLASH 14069139 14070485 1346 0.0
RAM 634416 634416 0 0.0
chip-tool-ipv6only arm64 unknown 22816 22816 0 0.0
FLASH 12156616 12157336 720 0.0
RAM 687048 687064 16 0.0
fabric-admin debug unknown 5936 5936 0 0.0
FLASH 12214227 12216477 2250 0.0
RAM 633776 633776 0 0.0
fabric-bridge-app debug unknown 4800 4800 0 0.0
FLASH 4521196 4523218 2022 0.0
RAM 190112 190112 0 0.0
fabric-sync debug unknown 5056 5056 0 0.0
FLASH 5659589 5661877 2288 0.0
RAM 485384 485320 -64 -0.0
lighting-app debug+rpc+ui unknown 6264 6264 0 0.0
FLASH 5584353 5586337 1984 0.0
RAM 207064 207064 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4756990 4759000 2010 0.0
RAM 194208 194176 -32 -0.0
ota-provider-app debug unknown 4840 4840 0 0.0
FLASH 4379178 4381194 2016 0.0
RAM 182928 182928 0 0.0
ota-requestor-app debug unknown 4792 4792 0 0.0
FLASH 4509494 4511446 1952 0.0
RAM 187400 187400 0 0.0
shell debug unknown 4272 4296 24 0.6
FLASH 3005548 3014668 9120 0.3
RAM 147456 147456 0 0.0
thermostat-no-ble arm64 unknown 9552 9552 0 0.0
FLASH 4198752 4201072 2320 0.1
RAM 231912 231912 0 0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 5996469 5998693 2224 0.0
RAM 608800 608768 -32 -0.0
tv-casting-app debug unknown 5416 5432 16 0.3
FLASH 12228061 12236941 8880 0.1
RAM 752112 752112 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 916160 916312 152 0.0
RAM 167443 167443 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 909080 909252 172 0.0
RAM 145687 145687 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 852668 852820 152 0.0
RAM 141223 141223 0 0.0
nxp contact k32w0+release FLASH 588608 588752 144 0.0
RAM 70996 70996 0 0.0
mcxw71+release FLASH 607080 607208 128 0.0
RAM 63152 63152 0 0.0
light k32w0+release FLASH 614428 614572 144 0.0
RAM 70292 70292 0 0.0
k32w1+release FLASH 691224 691392 168 0.0
RAM 72000 72000 0 0.0
lock mcxw71+release FLASH 756272 756432 160 0.0
RAM 67564 67564 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1661292 1661516 224 0.0
RAM 212328 212328 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1565428 1565636 208 0.0
RAM 208544 208544 0 0.0
light cy8ckit_062s2_43012 FLASH 1442412 1442636 224 0.0
RAM 197312 197312 0 0.0
lock cy8ckit_062s2_43012 FLASH 1471260 1471468 208 0.0
RAM 224976 224976 0 0.0
qpg lighting-app qpg6105+debug FLASH 665116 665260 144 0.0
RAM 105172 105172 0 0.0
lock-app qpg6105+debug FLASH 623520 623688 168 0.0
RAM 99792 99792 0 0.0
stm32 light STM32WB5MM-DK FLASH 461184 461336 152 0.0
RAM 141488 141488 0 0.0
telink bridge-app tl7218x FLASH 689186 666220 -22966 -3.3
RAM 101852 90704 -11148 -10.9
light-app-ota-compress-lzma-factory-data tl3218x FLASH 777188 777348 160 0.0
RAM 50120 50120 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 767450 767610 160 0.0
RAM 40420 40420 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 783824 756070 -27754 -3.5
RAM 109308 97540 -11768 -10.8
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 705038 683088 -21950 -3.1
RAM 62620 51588 -11032 -17.6
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 741220 711538 -29682 -4.0
RAM 85808 73408 -12400 -14.5
light-switch-app-ota-shell-factory-data tl3218x_retention FLASH 708924 709084 160 0.0
RAM 37044 37044 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602960 603546 586 0.1
RAM 148704 138640 -10064 -6.8
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 818438 791072 -27366 -3.3
RAM 107568 96396 -11172 -10.4
tizen all-clusters-app arm unknown 5152 5152 0 0.0
FLASH 1784372 1785120 748 0.0
RAM 94280 94280 0 0.0
chip-tool-ubsan arm unknown 11836 11836 0 0.0
FLASH 20057750 20061198 3448 0.0
RAM 8792596 8794180 1584 0.0

crlonxp and others added 13 commits May 4, 2025 15:55
* Update the naming of the functions to be more meaningful.
* Remove the added session info if failed to subscribe
* Change the implementation to parse the input packets

Signed-off-by: Lo,Chin-Ran <[email protected]>
@github-actions
Copy link

github-actions bot commented May 4, 2025

PR #38321: Size comparison from b24c59e to 0c80456

Increases above 0.2%:

platform target config section b24c59e 0c80456 change % change
linux shell debug unknown 4272 4288 16 0.4
FLASH 3075132 3082508 7376 0.2
tv-casting-app debug unknown 5416 5432 16 0.3
Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section b24c59e 0c80456 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1102926 1102936 10 0.0
RAM 94866 94866 0 0.0
bl702 lighting-app bl702+eth FLASH 657772 657782 10 0.0
RAM 33637 33637 0 0.0
bl702+wifi FLASH 834770 834780 10 0.0
RAM 22361 22361 0 0.0
bl706+mfd+rpc+littlefs FLASH 1067550 1067560 10 0.0
RAM 32285 32285 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 898438 898448 10 0.0
RAM 27024 27024 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 980970 980980 10 0.0
RAM 24772 24772 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 822180 822192 12 0.0
RAM 120296 120296 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 831952 831964 12 0.0
RAM 125432 125432 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 778360 778364 4 0.0
RAM 113780 113780 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 762684 762696 12 0.0
RAM 113988 113988 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549042 549054 12 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 581090 581102 12 0.0
RAM 205440 205440 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 664341 664357 16 0.0
RAM 77304 77304 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 684193 684209 16 0.0
RAM 79944 79944 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 684193 684209 16 0.0
RAM 79944 79944 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 641133 641149 16 0.0
RAM 72372 72372 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 624565 624573 8 0.0
RAM 73544 73544 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644201 644209 8 0.0
RAM 76096 76096 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644201 644209 8 0.0
RAM 76096 76096 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 644829 644837 8 0.0
RAM 76568 76568 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 664537 664545 8 0.0
RAM 79120 79120 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 664537 664545 8 0.0
RAM 79120 79120 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 621233 621241 8 0.0
RAM 70664 70664 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 641085 641093 8 0.0
RAM 73296 73296 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 641085 641093 8 0.0
RAM 73296 73296 0 0.0
efr32 lock-app BRD4187C FLASH 946348 946348 0 0.0
RAM 132096 132096 0 0.0
BRD4338a FLASH 741240 741256 16 0.0
RAM 206996 206996 0 0.0
window-app BRD4187C FLASH 1039048 1039040 -8 -0.0
RAM 128232 128232 0 0.0
esp32 all-clusters-app c3devkit DRAM 103328 103328 0 0.0
FLASH 1805914 1805924 10 0.0
IRAM 83846 83846 0 0.0
m5stack DRAM 121916 121916 0 0.0
FLASH 1771126 1771134 8 0.0
IRAM 117043 117043 0 0.0
linux air-purifier-app debug unknown 4848 4832 -16 -0.3
FLASH 2781645 2781669 24 0.0
RAM 114616 114616 0 0.0
all-clusters-app debug unknown 5656 5656 0 0.0
FLASH 6334504 6334288 -216 -0.0
RAM 529624 529624 0 0.0
all-clusters-minimal-app debug unknown 5528 5528 0 0.0
FLASH 5439664 5439450 -214 -0.0
RAM 224616 224616 0 0.0
bridge-app debug unknown 5560 5560 0 0.0
FLASH 4756192 4756042 -150 -0.0
RAM 204240 204240 0 0.0
camera-app debug unknown 8856 8856 0 0.0
FLASH 6885147 6885211 64 0.0
RAM 226448 226448 0 0.0
camera-controller debug unknown 9240 9240 0 0.0
FLASH 14013483 14014075 592 0.0
RAM 645136 645168 32 0.0
chip-tool debug unknown 6256 6248 -8 -0.1
FLASH 14231809 14231567 -242 -0.0
RAM 631696 631728 32 0.0
chip-tool-ipv6only arm64 unknown 39432 39432 0 0.0
FLASH 12284624 12284336 -288 -0.0
RAM 677760 677776 16 0.0
fabric-admin debug unknown 5936 5936 0 0.0
FLASH 12378017 12378615 598 0.0
RAM 631056 631088 32 0.0
fabric-bridge-app debug unknown 4808 4808 0 0.0
FLASH 4573040 4573174 134 0.0
RAM 190280 190280 0 0.0
fabric-sync debug unknown 5064 5064 0 0.0
FLASH 5712677 5713061 384 0.0
RAM 483000 482968 -32 -0.0
lighting-app debug+rpc+ui unknown 6264 6264 0 0.0
FLASH 5642577 5642641 64 0.0
RAM 207256 207256 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4816026 4816070 44 0.0
RAM 194488 194488 0 0.0
ota-provider-app debug unknown 4848 4848 0 0.0
FLASH 4435848 4435980 132 0.0
RAM 183720 183720 0 0.0
ota-requestor-app debug unknown 4800 4800 0 0.0
FLASH 4563558 4563658 100 0.0
RAM 187624 187624 0 0.0
shell debug unknown 4272 4288 16 0.4
FLASH 3075132 3082508 7376 0.2
RAM 148008 148040 32 0.0
thermostat-no-ble arm64 unknown 9552 9552 0 0.0
FLASH 4227888 4228320 432 0.0
RAM 230992 230992 0 0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 6069813 6070005 192 0.0
RAM 607680 607680 0 0.0
tv-casting-app debug unknown 5416 5432 16 0.3
FLASH 12410205 12417357 7152 0.1
RAM 749448 749448 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 919832 919840 8 0.0
RAM 167328 167328 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 911752 911768 16 0.0
RAM 145572 145572 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 856308 856316 8 0.0
RAM 141091 141091 0 0.0
nxp contact k32w0+release FLASH 592304 592320 16 0.0
RAM 72848 72848 0 0.0
mcxw71+release FLASH 624568 624568 0 0.0
RAM 63188 63188 0 0.0
light k32w0+release FLASH 618268 618284 16 0.0
RAM 72144 72144 0 0.0
k32w1+release FLASH 709032 709032 0 0.0
RAM 72036 72036 0 0.0
lock mcxw71+release FLASH 774048 774048 0 0.0
RAM 67612 67612 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1666060 1666076 16 0.0
RAM 212328 212328 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1570348 1570364 16 0.0
RAM 208504 208504 0 0.0
light cy8ckit_062s2_43012 FLASH 1447620 1447636 16 0.0
RAM 197320 197320 0 0.0
lock cy8ckit_062s2_43012 FLASH 1477476 1477476 0 0.0
RAM 225016 225016 0 0.0
qpg lighting-app qpg6105+debug FLASH 669196 669204 8 0.0
RAM 105200 105200 0 0.0
lock-app qpg6105+debug FLASH 627632 627648 16 0.0
RAM 99820 99820 0 0.0
stm32 light STM32WB5MM-DK FLASH 466540 466548 8 0.0
RAM 141504 141504 0 0.0
telink bridge-app tl7218x FLASH 677132 677142 10 0.0
700250 700260 10 0.0
RAM 90672 90672 0 0.0
101820 101820 0 0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 781332 781342 10 0.0
RAM 50052 50052 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 771592 771602 10 0.0
RAM 40352 40352 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 760066 760076 10 0.0
787984 787994 10 0.0
RAM 97472 97472 0 0.0
109240 109240 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 687100 687110 10 0.0
709210 709220 10 0.0
RAM 51520 51520 0 0.0
62552 62552 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 715550 715560 10 0.0
745392 745402 10 0.0
RAM 73340 73340 0 0.0
85740 85740 0 0.0
light-switch-app-ota-shell-factory-data tl3218x_retention FLASH 713080 713090 10 0.0
RAM 36976 36976 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 607570 607580 10 0.0
607112 607122 10 0.0
RAM 138572 138572 0 0.0
148636 148636 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 795068 795082 14 0.0
822598 822612 14 0.0
RAM 96328 96328 0 0.0
107500 107500 0 0.0
tizen all-clusters-app arm unknown 5176 5176 0 0.0
FLASH 1809216 1809260 44 0.0
RAM 94640 94640 0 0.0
chip-tool-ubsan arm unknown 20152 20152 0 0.0
FLASH 20261774 20261774 0 0.0
RAM 8823236 8823236 0 0.0

* Fix by using kUndefinedWiFiPafSessionId as unused id

Signed-off-by: Lo,Chin-Ran <[email protected]>
@github-actions
Copy link

github-actions bot commented May 6, 2025

PR #38321: Size comparison from 4fbe950 to 58fb960

Full report (14 builds for cc13x4_26x4, cc32xx, nrfconnect, qpg, stm32, tizen)
platform target config section 4fbe950 58fb960 change % change
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 822180 822192 12 0.0
RAM 120296 120296 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 831952 831964 12 0.0
RAM 125432 125432 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 778360 778364 4 0.0
RAM 113780 113780 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 762684 762696 12 0.0
RAM 113988 113988 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549042 549054 12 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 581090 581102 12 0.0
RAM 205440 205440 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 919832 919840 8 0.0
RAM 167328 167328 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 911752 911768 16 0.0
RAM 145572 145572 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 856308 856316 8 0.0
RAM 141091 141091 0 0.0
qpg lighting-app qpg6105+debug FLASH 669276 669284 8 0.0
RAM 105200 105200 0 0.0
lock-app qpg6105+debug FLASH 627632 627648 16 0.0
RAM 99820 99820 0 0.0
stm32 light STM32WB5MM-DK FLASH 466540 466548 8 0.0
RAM 141504 141504 0 0.0
tizen all-clusters-app arm unknown 5176 5176 0 0.0
FLASH 1809216 1809260 44 0.0
RAM 94656 94656 0 0.0
chip-tool-ubsan arm unknown 20152 20152 0 0.0
FLASH 20261774 20261966 192 0.0
RAM 8823256 8823296 40 0.0

… only if the PAF session has not established

Signed-off-by: Lo,Chin-Ran <[email protected]>
@github-actions
Copy link

github-actions bot commented May 6, 2025

PR #38321: Size comparison from 4fbe950 to 410e7f9

Increases above 0.2%:

platform target config section 4fbe950 410e7f9 change % change
linux shell debug unknown 4272 4288 16 0.4
FLASH 3075132 3082732 7600 0.2
tv-casting-app debug unknown 5416 5432 16 0.3
Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 4fbe950 410e7f9 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1102926 1102936 10 0.0
RAM 94866 94866 0 0.0
bl702 lighting-app bl702+eth FLASH 657772 657782 10 0.0
RAM 33637 33637 0 0.0
bl702+wifi FLASH 834770 834780 10 0.0
RAM 22361 22361 0 0.0
bl706+mfd+rpc+littlefs FLASH 1067550 1067560 10 0.0
RAM 32285 32285 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 898438 898448 10 0.0
RAM 27024 27024 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 980970 980980 10 0.0
RAM 24772 24772 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 822180 822192 12 0.0
RAM 120296 120296 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 831952 831964 12 0.0
RAM 125432 125432 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 778360 778364 4 0.0
RAM 113780 113780 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 762684 762696 12 0.0
RAM 113988 113988 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549042 549054 12 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 581090 581102 12 0.0
RAM 205440 205440 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 664421 664437 16 0.0
RAM 77324 77324 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 684273 684289 16 0.0
RAM 79964 79964 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 684273 684289 16 0.0
RAM 79964 79964 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 641213 641229 16 0.0
RAM 72392 72392 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 624565 624573 8 0.0
RAM 73564 73564 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644201 644209 8 0.0
RAM 76116 76116 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644201 644209 8 0.0
RAM 76116 76116 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 644829 644837 8 0.0
RAM 76588 76588 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 664537 664545 8 0.0
RAM 79140 79140 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 664537 664545 8 0.0
RAM 79140 79140 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 621233 621241 8 0.0
RAM 70684 70684 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 641085 641093 8 0.0
RAM 73316 73316 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 641085 641093 8 0.0
RAM 73316 73316 0 0.0
efr32 lock-app BRD4187C FLASH 946348 946348 0 0.0
RAM 132096 132096 0 0.0
BRD4338a FLASH 741240 741256 16 0.0
RAM 206996 206996 0 0.0
window-app BRD4187C FLASH 1039048 1039040 -8 -0.0
RAM 128232 128232 0 0.0
esp32 all-clusters-app c3devkit DRAM 103328 103328 0 0.0
FLASH 1805914 1805924 10 0.0
IRAM 83846 83846 0 0.0
m5stack DRAM 121932 121932 0 0.0
FLASH 1771126 1771134 8 0.0
IRAM 117043 117043 0 0.0
linux air-purifier-app debug unknown 4848 4832 -16 -0.3
FLASH 2781645 2781895 250 0.0
RAM 114648 114648 0 0.0
all-clusters-app debug unknown 5656 5656 0 0.0
FLASH 6334596 6334606 10 0.0
RAM 529656 529656 0 0.0
all-clusters-minimal-app debug unknown 5528 5528 0 0.0
FLASH 5439664 5439676 12 0.0
RAM 224648 224648 0 0.0
bridge-app debug unknown 5560 5560 0 0.0
FLASH 4756192 4756268 76 0.0
RAM 204272 204272 0 0.0
camera-app debug unknown 8856 8856 0 0.0
FLASH 6889771 6890059 288 0.0
RAM 226416 226416 0 0.0
camera-controller debug unknown 9240 9240 0 0.0
FLASH 14017547 14018555 1008 0.0
RAM 645104 645136 32 0.0
chip-tool debug unknown 6256 6248 -8 -0.1
FLASH 14231809 14231979 170 0.0
RAM 631728 631760 32 0.0
chip-tool-ipv6only arm64 unknown 39432 39432 0 0.0
FLASH 12284624 12284752 128 0.0
RAM 677792 677808 16 0.0
fabric-admin debug unknown 5936 5936 0 0.0
FLASH 12378017 12379027 1010 0.0
RAM 631088 631120 32 0.0
fabric-bridge-app debug unknown 4808 4808 0 0.0
FLASH 4573040 4573368 328 0.0
RAM 190312 190312 0 0.0
fabric-sync debug unknown 5064 5064 0 0.0
FLASH 5712677 5713701 1024 0.0
RAM 483032 483000 -32 -0.0
lighting-app debug+rpc+ui unknown 6264 6264 0 0.0
FLASH 5642577 5642865 288 0.0
RAM 207288 207288 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4816026 4816296 270 0.0
RAM 194520 194520 0 0.0
ota-provider-app debug unknown 4848 4848 0 0.0
FLASH 4435848 4436206 358 0.0
RAM 183752 183752 0 0.0
ota-requestor-app debug unknown 4800 4800 0 0.0
FLASH 4563558 4563884 326 0.0
RAM 187656 187656 0 0.0
shell debug unknown 4272 4288 16 0.4
FLASH 3075132 3082732 7600 0.2
RAM 148040 148072 32 0.0
thermostat-no-ble arm64 unknown 9552 9552 0 0.0
FLASH 4227888 4228560 672 0.0
RAM 231024 231024 0 0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 6069813 6070645 832 0.0
RAM 607712 607712 0 0.0
tv-casting-app debug unknown 5416 5432 16 0.3
FLASH 12410205 12417581 7376 0.1
RAM 749480 749480 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 919832 919840 8 0.0
RAM 167328 167328 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 911752 911768 16 0.0
RAM 145572 145572 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 856308 856316 8 0.0
RAM 141091 141091 0 0.0
nxp contact k32w0+release FLASH 592304 592320 16 0.0
RAM 72848 72848 0 0.0
mcxw71+release FLASH 624568 624568 0 0.0
RAM 63188 63188 0 0.0
light k32w0+release FLASH 618268 618284 16 0.0
RAM 72144 72144 0 0.0
k32w1+release FLASH 709032 709032 0 0.0
RAM 72036 72036 0 0.0
lock mcxw71+release FLASH 774048 774048 0 0.0
RAM 67612 67612 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1666060 1666076 16 0.0
RAM 212328 212328 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1570348 1570364 16 0.0
RAM 208504 208504 0 0.0
light cy8ckit_062s2_43012 FLASH 1447620 1447636 16 0.0
RAM 197320 197320 0 0.0
lock cy8ckit_062s2_43012 FLASH 1477476 1477476 0 0.0
RAM 225016 225016 0 0.0
qpg lighting-app qpg6105+debug FLASH 669276 669284 8 0.0
RAM 105200 105200 0 0.0
lock-app qpg6105+debug FLASH 627632 627648 16 0.0
RAM 99820 99820 0 0.0
stm32 light STM32WB5MM-DK FLASH 466540 466548 8 0.0
RAM 141504 141504 0 0.0
telink bridge-app tl7218x FLASH 677132 677142 10 0.0
700250 700260 10 0.0
RAM 90692 90692 0 0.0
101840 101840 0 0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 781332 781342 10 0.0
RAM 50072 50072 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 771592 771602 10 0.0
RAM 40372 40372 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 760066 760076 10 0.0
787984 787994 10 0.0
RAM 97492 97492 0 0.0
109260 109260 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 687100 687110 10 0.0
709210 709220 10 0.0
RAM 51540 51540 0 0.0
62572 62572 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 715550 715560 10 0.0
745392 745402 10 0.0
RAM 73360 73360 0 0.0
85760 85760 0 0.0
light-switch-app-ota-shell-factory-data tl3218x_retention FLASH 713080 713090 10 0.0
RAM 36996 36996 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 607570 607580 10 0.0
607112 607122 10 0.0
RAM 138592 138592 0 0.0
148656 148656 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 795068 795082 14 0.0
822598 822612 14 0.0
RAM 96348 96348 0 0.0
107520 107520 0 0.0
tizen all-clusters-app arm unknown 5176 5176 0 0.0
FLASH 1809216 1809260 44 0.0
RAM 94656 94656 0 0.0
chip-tool-ubsan arm unknown 20152 20152 0 0.0
FLASH 20261774 20261966 192 0.0
RAM 8823256 8823296 40 0.0

…missioneeDevice()

* Change the shutdown API of WiFiPAFLayer to release the resource inside the function.
* Clean up the callback function once it has stopped discovering the commissionee

Signed-off-by: Lo,Chin-Ran <[email protected]>
@xiaolonghca xiaolonghca self-assigned this May 16, 2025
@mergify mergify bot added the conflict label May 21, 2025
if (mAdvertisingOverWiFiPAF)
{
ChipLogProgress(AppServer, "Cancel Wi-Fi PAF publish");
WiFiPAF::WiFiPAFLayer::GetWiFiPAFLayer().CloseAllConnections();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs some serious documentation or API refactoring, not least because I am not 100% sure I follow #38321 (comment)

It sounds like there are three possible states the PAF "advertising" side (commissionee) can be in?

  1. Nothing is going on with PAF, everything is shut down.
  2. We are "advertising" over PAF but no one has "connected" with us (whatever that means).
  3. We are no longer "advertising", but now have a "connection".

It sounds like StopAdvertising will take us from state 2 to state 1, but remain in state 3 if that's where we are, and here the goal is to move from state 3 to state 1?

As a matter of API factoring, it's a little confusing to me that control over this state lives partly on GetWiFiPAFLayer and partly on ConnectivityMgr, and that we need to interrogate WiFiPAFLayer to figure out what to tell the ConnectivityMgr. It's also confusing that we shut down "everything", not just the "connection" we had.

I guess we can do this for now, with a bunch of documentation both here and in StopAdvertising, but as a followup what we should really have is:

  1. A clear API for "start advertising".
  2. A clear API for "stop advertising, but optionally don't kill the underlying transport for the given PASE session". This API should ideally hide away the "query for sessions" implementation detail. But what it can and should take is the PeerAddress of the PASE session we have (if we have one).
  3. A clear API for "tear down whatever thing was supporting the given PASE session", that takes the PeerAddress of the PASE session, if we have one, as input.

APIs 2 and 3 would take an std::optional<PeerAddress>, and then the PAF machinery can operate on those as desired.

Can we be in a state where PAF is "connected" but we do not in fact have a PASE session? I guess we could, especially if we are in the middle of the PASE handshake?

I know that's not what BLE does. What BLE does is broken and we are trying to fix it, by gradually moving it to a model more like what I describe above....

WiFiPAF::WiFiPAFSession sessionInfo = { .role = WiFiPAF::WiFiPafRole::kWiFiPafRole_Publisher };
WiFiPAF::WiFiPAFLayer & pafLayer = WiFiPAF::WiFiPAFLayer::GetWiFiPAFLayer();
WiFiPAF::WiFiPAFSession * pSession = pafLayer.GetPAFInfo(WiFiPAF::PafInfoAccess::kAccSessionId, sessionInfo);
if ((pSession != nullptr) && (pSession->peer_id == WiFiPAF::kUndefinedWiFiPafSessionId))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments above. Those implementation details should be hidden inside the API surface...

Importantly: that will let us see whether we have correct behavior for the case when we want to stop advertising but we have a "PAF session" established.... How does that behave? The device should not remain discoverable if PASE over that PAF session fails, for example. Right now it's pretty hard to tell what this is doing.

#if CHIP_DEVICE_CONFIG_ENABLE_WIFIPAF
WiFiPAF::WiFiPAFLayer::GetWiFiPAFLayer().Shutdown(
[](uint32_t id, WiFiPAF::WiFiPafRole role) { DeviceLayer::ConnectivityMgr().WiFiPAFShutdown(id, role); });
mSystemState->WiFiPayLayer()->Shutdown();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don't understand how this is supposed to work.

Say I have two DeviceCommissioner instances. One is in the middle of commissioning over PAF. The other one (totally unrelated) gets shut down.

Won't this break the commissioning? This does not seem like an OK thing to do. This is not a hypothetical scenario: lots of clients have multiple DeviceCommissioner instances around for various reasons, bring brought up/down as needed.

Layer shutdown should be paired with layer startup/init. Init happens in ConnectivityManagerImpl::_Init, right? So shutdown should happen in ConnectivityManager shutdown... If we don't have a shutdown for connectivity manager (which it looks like we don't), then we should have it, and it should be paired with whatever does connectivity manager init.

But anyway, it looks like this shutdown happens in platform manager shutdown, which sort of mirrors connectivity manager init happening in platform manager init. So why is this here at all?

(device->IsSecureConnected() == true))
{
ChipLogProgress(Discovery, "Closing all WiFiPAF connections");
mSystemState->WiFiPayLayer()->CloseAllConnections();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, I know you copied the BLE code, but the BLE code is wrong and we are trying to fix it.

Shouldn't we be closing specifically whatever connections are relevant for the PeerAddress of the device involved?

As in, this should not be a CloseAllConnections() call; it should be a CloseConnection() call that takes the PeerAddress.

If under the hood PAF wants, for now, to just close all connections (because it only has one!) and ignore the PeerAddress, that's fine. But the API should not bake that assumption in, because we are trying to move to a world where we in fact support multiple parallel commissioning processes. Especially across multiple different DeviceCommissioner instances.

But it looks like PAF sessions are in fact associated with something like a "device id" (looking at the code in EstablishPASEConnection), and ideally the PeerAddress would just carry that information so we can shut down the right thing.

}
#endif
#if CHIP_DEVICE_CONFIG_ENABLE_WIFIPAF
if ((mSystemState->WiFiPayLayer() != nullptr) && (device->GetDeviceTransportType() == Transport::Type::kWiFiPAF) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why WiFiPayLayer() is null-checked here but not elsewhere....


void SetUpCodePairer::OnWifiPAFDiscoveryError(CHIP_ERROR err)
{
if (mWaitingForDiscovery[kWiFiPAFTransport] == false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, if discovery has stopped this object may have been destroyed and then this is use-after-free.


private:
#if CHIP_DEVICE_CONFIG_ENABLE_WIFIPAF
WiFiPAFAdvertiseParams mPafAdverParam;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
WiFiPAFAdvertiseParams mPafAdverParam;
WiFiPAFAdvertiseParams mPAFAdvertisementParams;

Or even "Parameters".... Or at least mPAFAdvertiseParams. But not "Adver", please.

CHIP_ERROR WiFiPAFPublish(WiFiPAFAdvertiseParam & args);
struct WiFiPAFAdvertiseParams
{
/* The list of the frequencies to advertise on. Each element (uint16_t) is the channel frequency
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/* The list of the frequencies to advertise on. Each element (uint16_t) is the channel frequency
/* The list of the frequencies to advertise on. Each element (uint16_t) is the channel
fundamental frequency in MHz, as defined in the Wi-Fi standards.

chnl#44: 5220, chnl#149: 5745
*/
ReadOnlyBuffer<uint16_t> freq_list;
/* publish_id */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#38321 (comment) says more information will be added. That still needs to happen, to explain what this publis_id is and how an API consumer is expected to use it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not review these pieces.

@crlonxp crlonxp closed this Jun 3, 2025
@mergify mergify bot removed the conflict label Jun 3, 2025
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.

Python Virtual environment is not building due to addition of wifi PAF libs

4 participants