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

Add --wifipaf commission in chip-tool and apps of Linux platform #33977

Merged
merged 33 commits into from
Jul 30, 2024

Conversation

crlonxp
Copy link
Contributor

@crlonxp crlonxp commented Jun 18, 2024

* Need to enable the function by adding "chip_device_config_enable_wifipaf=true"
* chip-tool: Add wifi-paf option for pairing. 
*     Example: $ chip-tool pairing wifipaf 1 ap_ssid ap_pwd [setup-pin-code] [discriminator]
* apps: Add --wifipaf. 
*     Example: $ chip-all-clusters-app --wifi --wifipaf Note: Need the usd functions of wpa_supplicant to run this option

crlonxp and others added 14 commits July 29, 2024 15:16
* Add to end of the queue in OnDiscoveredDeviceOverWifiPAF()
* Factor out the long expression into local

Signed-off-by: Lo,Chin-Ran <[email protected]>
* Add more tests in QRCode test

Signed-off-by: Lo,Chin-Ran <[email protected]>
* Fix the problem to add tests in TestQRCode.cpp
* Use a list to track the validation of the caller object.

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

github-actions bot commented Jul 29, 2024

PR #33977: Size comparison from e8fb908 to 96e5c60

Increases above 0.2%:

platform target config section e8fb908 96e5c60 change % change
bl602 lighting-app bl602 RAM 95576 95904 328 0.3
bl602+mfd RAM 95728 96056 328 0.3
bl602+rpc RAM 104000 104328 328 0.3
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 RAM 109428 109844 416 0.4
lock-ftd LP_EM_CC1354P10_6 RAM 117028 117444 416 0.4
lock-mtd LP_EM_CC1354P10_6 RAM 111308 111724 416 0.4
pump-app LP_EM_CC1354P10_6 RAM 105448 105864 416 0.4
pump-controller-app LP_EM_CC1354P10_6 RAM 105640 106056 416 0.4
cc32xx air-purifier CC3235SF_LAUNCHXL RAM 204580 205348 768 0.4
lock CC3235SF_LAUNCHXL RAM 204852 205620 768 0.4
cyw30739 light CYW30739B2-P5-EVK-01 RAM 77892 78348 456 0.6
CYW30739B2-P5-EVK-02 RAM 80524 80980 456 0.6
CYW30739B2-P5-EVK-03 RAM 80524 80980 456 0.6
CYW930739M2EVB-02 RAM 72960 73416 456 0.6
light-switch CYW30739B2-P5-EVK-01 RAM 70884 71340 456 0.6
CYW30739B2-P5-EVK-02 RAM 73436 73892 456 0.6
CYW30739B2-P5-EVK-03 RAM 73436 73892 456 0.6
lock CYW30739B2-P5-EVK-01 RAM 73900 74356 456 0.6
CYW30739B2-P5-EVK-02 RAM 76452 76908 456 0.6
CYW30739B2-P5-EVK-03 RAM 76452 76908 456 0.6
thermostat CYW30739B2-P5-EVK-01 RAM 67860 68316 456 0.7
CYW30739B2-P5-EVK-02 RAM 70492 70948 456 0.6
CYW30739B2-P5-EVK-03 RAM 70492 70948 456 0.6
efr32 lighting-app BRD4187C RAM 134700 135148 448 0.3
window-app BRD4187C RAM 126636 127084 448 0.4
esp32 all-clusters-app c3devkit DRAM 91244 91548 304 0.3
m5stack DRAM 117724 118036 312 0.3
linux air-purifier-app debug RAM 125200 128112 2912 2.3
all-clusters-app debug RAM 501840 504752 2912 0.6
all-clusters-minimal-app debug RAM 236592 239504 2912 1.2
bridge-app debug RAM 214048 216960 2912 1.4
fabric-bridge-app debug RAM 199248 202128 2880 1.4
lighting-app debug+rpc+ui RAM 225136 228048 2912 1.3
lock-app debug RAM 200704 203616 2912 1.5
ota-provider-app debug RAM 194880 197760 2880 1.5
ota-requestor-app debug RAM 199416 202296 2880 1.4
shell debug RAM 155496 158472 2976 1.9
thermostat-no-ble arm64 RAM 236368 238904 2536 1.1
tv-app debug RAM 578208 581184 2976 0.5
tv-casting-app debug RAM 639016 640296 1280 0.2
mbed lock-app-release cy8cproto_062_4343w RAM 226728 227296 568 0.3
nxp contact k32w0+release RAM 70112 70416 304 0.4
k32w1+release RAM 74152 74456 304 0.4
light k32w0+release RAM 69616 69920 304 0.4
k32w1+release RAM 82928 83232 304 0.4
psoc6 all-clusters cy8ckit_062s2_43012 RAM 210000 210776 776 0.4
all-clusters-minimal cy8ckit_062s2_43012 RAM 206728 207504 776 0.4
light cy8ckit_062s2_43012 RAM 200000 200776 776 0.4
lock cy8ckit_062s2_43012 RAM 224344 225120 776 0.3
qpg lighting-app qpg6105+debug RAM 104844 105148 304 0.3
lock-app qpg6105+debug RAM 99328 99632 304 0.3
telink air-quality-sensor-app tlsr9528a_retention RAM 50664 50936 272 0.5
all-clusters-minimal-app tlsr9528a RAM 110284 110588 304 0.3
bridge-app tlsr9258a RAM 91320 91624 304 0.3
contact-sensor-app tlsr9528a_retention RAM 50708 50980 272 0.5
light-switch-app-ota-shell-factory-data tlsr9528a RAM 74036 74316 280 0.4
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d RAM 99200 99504 304 0.3
lock-app-dfu tlsr9528a RAM 66740 67012 272 0.4
ota-requestor-app tlsr9258a RAM 91004 91308 304 0.3
pump-app-usb tlsr9518adk80d RAM 55484 55756 272 0.5
pump-controller-app tlsr9518adk80d RAM 52728 53000 272 0.5
shell tlsr9518adk80d RAM 68412 68660 248 0.4
smoke_co_alarm-app tlsr9528a_retention RAM 52344 52696 352 0.7
temperature-measurement-app-mars-ota tlsr9518adk80d RAM 56364 56636 272 0.5
thermostat tlsr9518adk80d RAM 53052 53324 272 0.5
window-covering tlsr9118bdk40d RAM 98264 98536 272 0.3
tizen all-clusters-app arm RAM 49700 51596 1896 3.8
Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section e8fb908 96e5c60 change % change
bl602 lighting-app bl602 FLASH 1276462 1277008 546 0.0
RAM 95576 95904 328 0.3
bl602+mfd FLASH 1290720 1291266 546 0.0
RAM 95728 96056 328 0.3
bl602+rpc FLASH 1315430 1315976 546 0.0
RAM 104000 104328 328 0.3
bl702 lighting-app bl702 FLASH 1097356 1098160 804 0.1
RAM 15257 15257 0 0.0
bl702+mfd FLASH 1108050 1108854 804 0.1
RAM 15401 15401 0 0.0
bl702+rpc FLASH 1187422 1188226 804 0.1
RAM 24253 24253 0 0.0
bl706-eth FLASH 880656 881194 538 0.1
RAM 27360 27360 0 0.0
bl706-wifi FLASH 1133608 1134292 684 0.1
RAM 14693 14693 0 0.0
bl702l lighting-app bl702l FLASH 1084254 1085058 804 0.1
RAM 21812 21812 0 0.0
bl702l+mfd FLASH 1095516 1096320 804 0.1
RAM 21964 21964 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 801924 802220 296 0.0
RAM 109428 109844 416 0.4
lock-ftd LP_EM_CC1354P10_6 FLASH 816684 816968 284 0.0
RAM 117028 117444 416 0.4
lock-mtd LP_EM_CC1354P10_6 FLASH 808660 808964 304 0.0
RAM 111308 111724 416 0.4
pump-app LP_EM_CC1354P10_6 FLASH 762424 762728 304 0.0
RAM 105448 105864 416 0.4
pump-controller-app LP_EM_CC1354P10_6 FLASH 747076 747364 288 0.0
RAM 105640 106056 416 0.4
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606674 607038 364 0.1
RAM 204580 205348 768 0.4
lock CC3235SF_LAUNCHXL FLASH 652210 652566 356 0.1
RAM 204852 205620 768 0.4
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 671009 671289 280 0.0
RAM 77892 78348 456 0.6
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 690861 691141 280 0.0
RAM 80524 80980 456 0.6
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 690861 691141 280 0.0
RAM 80524 80980 456 0.6
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 647805 648077 272 0.0
RAM 72960 73416 456 0.6
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609713 610001 288 0.0
RAM 70884 71340 456 0.6
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629341 629637 296 0.0
RAM 73436 73892 456 0.6
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629341 629637 296 0.0
RAM 73436 73892 456 0.6
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625409 625705 296 0.0
RAM 73900 74356 456 0.6
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 645125 645421 296 0.0
RAM 76452 76908 456 0.6
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 645125 645421 296 0.0
RAM 76452 76908 456 0.6
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593637 593925 288 0.0
RAM 67860 68316 456 0.7
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613497 613777 280 0.0
RAM 70492 70948 456 0.6
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613497 613777 280 0.0
RAM 70492 70948 456 0.6
efr32 lighting-app BRD4187C FLASH 929000 929296 296 0.0
RAM 134700 135148 448 0.3
lock-app BRD4338a FLASH 734716 735044 328 0.0
RAM 207988 208436 448 0.2
window-app BRD4187C FLASH 1014780 1015140 360 0.0
RAM 126636 127084 448 0.4
esp32 all-clusters-app c3devkit DRAM 91244 91548 304 0.3
FLASH 1484758 1485050 292 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 117724 118036 312 0.3
FLASH 1553735 1554015 280 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2710605 2713655 3050 0.1
RAM 125200 128112 2912 2.3
all-clusters-app debug unknown 5416 5416 0 0.0
FLASH 5941344 5944524 3180 0.1
RAM 501840 504752 2912 0.6
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5315394 5318566 3172 0.1
RAM 236592 239504 2912 1.2
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4707196 4710368 3172 0.1
RAM 214048 216960 2912 1.4
chip-tool debug unknown 5832 5832 0 0.0
FLASH 12347946 12351798 3852 0.0
RAM 553658 553690 32 0.0
chip-tool-ipv6only arm64 unknown 20208 20208 0 0.0
FLASH 11045260 11048476 3216 0.0
RAM 603416 603432 16 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11343969 11347713 3744 0.0
RAM 550426 550458 32 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4463232 4466358 3126 0.1
RAM 199248 202128 2880 1.4
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5640753 5643921 3168 0.1
RAM 225136 228048 2912 1.3
lock-app debug unknown 5232 5232 0 0.0
FLASH 4757986 4761156 3170 0.1
RAM 200704 203616 2912 1.5
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4402452 4405578 3126 0.1
RAM 194880 197760 2880 1.5
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4540598 4543692 3094 0.1
RAM 199416 202296 2880 1.4
shell debug unknown 4176 4176 0 0.0
FLASH 3000797 3003821 3024 0.1
RAM 155496 158472 2976 1.9
thermostat-no-ble arm64 unknown 9208 9208 0 0.0
FLASH 4259860 4262596 2736 0.1
RAM 236368 238904 2536 1.1
tv-app debug unknown 5504 5504 0 0.0
FLASH 5983549 5987061 3512 0.1
RAM 578208 581184 2976 0.5
tv-casting-app debug unknown 5168 5168 0 0.0
FLASH 10551037 10554381 3344 0.0
RAM 639016 640296 1280 0.2
mbed lock-app-release cy8cproto_062_4343w FLASH 1503444 1503652 208 0.0
RAM 226728 227296 568 0.3
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 899460 899744 284 0.0
RAM 141791 142095 304 0.2
nrf7002dk_nrf5340_cpuapp FLASH 965032 965312 280 0.0
RAM 140895 141199 304 0.2
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 834280 834564 284 0.0
RAM 140612 140916 304 0.2
nxp contact k32w0+release FLASH 576084 576332 248 0.0
RAM 70112 70416 304 0.4
k32w1+release FLASH 591792 592072 280 0.0
RAM 74152 74456 304 0.4
light k32w0+release FLASH 611696 611992 296 0.0
RAM 69616 69920 304 0.4
k32w1+release FLASH 676536 676896 360 0.1
RAM 82928 83232 304 0.4
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1625524 1625940 416 0.0
RAM 210000 210776 776 0.4
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1535284 1535700 416 0.0
RAM 206728 207504 776 0.4
light cy8ckit_062s2_43012 FLASH 1462532 1462932 400 0.0
RAM 200000 200776 776 0.4
lock cy8ckit_062s2_43012 FLASH 1459668 1460084 416 0.0
RAM 224344 225120 776 0.3
qpg lighting-app qpg6105+debug FLASH 654820 655068 248 0.0
RAM 104844 105148 304 0.3
lock-app qpg6105+debug FLASH 612272 612504 232 0.0
RAM 99328 99632 304 0.3
stm32 light STM32WB5MM-DK FLASH 477120 477368 248 0.1
RAM 144452 144756 304 0.2
telink air-quality-sensor-app tlsr9528a_retention FLASH 619000 619256 256 0.0
RAM 50664 50936 272 0.5
all-clusters-app tlsr9118bdk40d FLASH 671204 671456 252 0.0
RAM 149124 149428 304 0.2
all-clusters-minimal-app tlsr9528a FLASH 767122 767374 252 0.0
RAM 110284 110588 304 0.3
bridge-app tlsr9258a FLASH 677616 677868 252 0.0
RAM 91320 91624 304 0.3
contact-sensor-app tlsr9528a_retention FLASH 620592 620848 256 0.0
RAM 50708 50980 272 0.5
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 706436 706712 276 0.0
RAM 74036 74316 280 0.4
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 619276 619528 252 0.0
RAM 145276 145580 304 0.2
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 805362 805614 252 0.0
RAM 99200 99504 304 0.3
lock-app-dfu tlsr9528a FLASH 652370 652626 256 0.0
RAM 66740 67012 272 0.4
ota-requestor-app tlsr9258a FLASH 695652 695904 252 0.0
RAM 91004 91308 304 0.3
pump-app-usb tlsr9518adk80d FLASH 629946 630202 256 0.0
RAM 55484 55756 272 0.5
pump-controller-app tlsr9518adk80d FLASH 607548 607804 256 0.0
RAM 52728 53000 272 0.5
shell tlsr9518adk80d FLASH 466654 466794 140 0.0
RAM 68412 68660 248 0.4
smoke_co_alarm-app tlsr9528a_retention FLASH 627334 627612 278 0.0
RAM 52344 52696 352 0.7
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 651370 651626 256 0.0
RAM 56364 56636 272 0.5
thermostat tlsr9518adk80d FLASH 626256 626512 256 0.0
RAM 53052 53324 272 0.5
window-covering tlsr9118bdk40d FLASH 521510 521766 256 0.0
RAM 98264 98536 272 0.3
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1674640 1674884 244 0.0
RAM 49700 51596 1896 3.8
chip-tool-ubsan arm unknown 2404 2404 0 0.0
FLASH 16385626 16388038 2412 0.0
RAM 7197728 7198592 864 0.0

@woody-apple
Copy link
Contributor

Fast tracking this, this was caught in limbo, I don't know why. It appears to not be NXP only, but the generic support needed. Rebasing to see if this builds.

src/controller/CHIPDeviceController.cpp Show resolved Hide resolved
src/controller/CHIPDeviceController.cpp Show resolved Hide resolved
src/controller/CHIPDeviceController.cpp Show resolved Hide resolved
src/controller/CHIPDeviceController.cpp Show resolved Hide resolved
src/controller/CHIPDeviceController.cpp Show resolved Hide resolved
src/controller/SetUpCodePairer.cpp Show resolved Hide resolved
src/controller/SetUpCodePairer.cpp Show resolved Hide resolved
src/controller/SetUpCodePairer.cpp Show resolved Hide resolved
src/controller/SetUpCodePairer.cpp Show resolved Hide resolved
@woody-apple woody-apple dismissed bzbarsky-apple’s stale review July 29, 2024 23:33

Discussed with boris

@woody-apple
Copy link
Contributor

Discussed with @bzbarsky-apple , this meets the current bar for FC, but agree this needs significant follow up work.

@woody-apple
Copy link
Contributor

Fast tracking, given this builds, and is ready for FC.

@woody-apple woody-apple merged commit 085f57f into project-chip:master Jul 30, 2024
69 checks passed
j-ororke pushed a commit to j-ororke/connectedhomeip that referenced this pull request Jul 31, 2024
…ject-chip#33977)

* [NXP] Add --wifi-paf commission in chip-tool and apps of Linux platform
	* Need to enable the function by adding "chip_device_config_enable_wifipaf=true"
	* chip-tool: Add wifi-paf option for pairing.
		Example:
		$ chip-tool pairing wifi-paf 1 ap_ssid ap_pwd [setup-pin-code] [discriminator]
	* apps: Add --wifi-paf.
		Example:
		$ chip-all-clusters-app --wifi --wifi-paf
	Note: Need the usd functions of wpa_supplicant to run this option

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* Restyled by gn

* * Add the missing compile macro

* Restyled by clang-format

* Update src/controller/CHIPDeviceController.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Update src/include/platform/ConnectivityManager.h

Co-authored-by: Boris Zbarsky <[email protected]>

* Update examples/platform/linux/Options.cpp

Co-authored-by: Karsten Sperling <[email protected]>

* Change by following the review's comment:
* Change the name of option to [pair_mode]-[network]
* Remove redundant compile flags
* Move to start the Wi-Fi Manager in initialization stage
* Unconditional the defintion
* Add the cancel-publish / cancel-subscribe dbus interface
* Fix bugs:
	- Redundant callback function registration
	- Remove the incorrect StackLock

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* Change by following the review's comment:
    - Unconditional functions in SetUpCodePairer
    - Change the description of the comment

Signed-off-by: Lo,Chin-Ran <[email protected]>

* * Add the identifier to distinguish connections
* Unconditional the SetupCode verification

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* Add RendezvousInformationFlag::kWiFiPAF to tests of TestQRCode

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* * Add code-wifi to do WiFiPAF by using code.
    example:
    - Linux DUT: sudo ./chip-all-clusters-app --wifi --wifipaf
    - Controller: sudo ./chip-tool pairing code-wifi 1 ap_ssid ap_pwd MT:-24J0SGJ10KA0648G00

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* Update src/transport/raw/PeerAddress.h

Co-authored-by: Boris Zbarsky <[email protected]>

* Update examples/chip-tool/commands/payload/SetupPayloadParseCommand.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Update src/include/platform/CHIPDeviceConfig.h

Co-authored-by: Boris Zbarsky <[email protected]>

* Change by following the review's comment:
* Add to end of the queue in OnDiscoveredDeviceOverWifiPAF()
* Factor out the long expression into local

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Remove the redundant LogErrorOnFailure()

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* Use the smart pointer to detect if the caller is still valid in the callback function

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Fix the building error after rebase to TOT of master branch

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Change the dbus interface usage by following the new api update in wpa_supplicant

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* * Add freq_list option to support multiple channels
* Add more tests in QRCode test

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* * Change to have the consistent naming of the new added variables
* Fix the problem to add tests in TestQRCode.cpp
* Use a list to track the validation of the caller object.

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* Cancel the subscription in destructor to avoid the use-after-free issue

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

---------

Signed-off-by: Lo,Chin-Ran <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
Co-authored-by: Karsten Sperling <[email protected]>
rochaferraz pushed a commit to rochaferraz/connectedhomeip that referenced this pull request Jul 31, 2024
…ject-chip#33977)

* [NXP] Add --wifi-paf commission in chip-tool and apps of Linux platform
	* Need to enable the function by adding "chip_device_config_enable_wifipaf=true"
	* chip-tool: Add wifi-paf option for pairing.
		Example:
		$ chip-tool pairing wifi-paf 1 ap_ssid ap_pwd [setup-pin-code] [discriminator]
	* apps: Add --wifi-paf.
		Example:
		$ chip-all-clusters-app --wifi --wifi-paf
	Note: Need the usd functions of wpa_supplicant to run this option

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* Restyled by gn

* * Add the missing compile macro

* Restyled by clang-format

* Update src/controller/CHIPDeviceController.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Update src/include/platform/ConnectivityManager.h

Co-authored-by: Boris Zbarsky <[email protected]>

* Update examples/platform/linux/Options.cpp

Co-authored-by: Karsten Sperling <[email protected]>

* Change by following the review's comment:
* Change the name of option to [pair_mode]-[network]
* Remove redundant compile flags
* Move to start the Wi-Fi Manager in initialization stage
* Unconditional the defintion
* Add the cancel-publish / cancel-subscribe dbus interface
* Fix bugs:
	- Redundant callback function registration
	- Remove the incorrect StackLock

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* Change by following the review's comment:
    - Unconditional functions in SetUpCodePairer
    - Change the description of the comment

Signed-off-by: Lo,Chin-Ran <[email protected]>

* * Add the identifier to distinguish connections
* Unconditional the SetupCode verification

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* Add RendezvousInformationFlag::kWiFiPAF to tests of TestQRCode

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* * Add code-wifi to do WiFiPAF by using code.
    example:
    - Linux DUT: sudo ./chip-all-clusters-app --wifi --wifipaf
    - Controller: sudo ./chip-tool pairing code-wifi 1 ap_ssid ap_pwd MT:-24J0SGJ10KA0648G00

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* Update src/transport/raw/PeerAddress.h

Co-authored-by: Boris Zbarsky <[email protected]>

* Update examples/chip-tool/commands/payload/SetupPayloadParseCommand.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Update src/include/platform/CHIPDeviceConfig.h

Co-authored-by: Boris Zbarsky <[email protected]>

* Change by following the review's comment:
* Add to end of the queue in OnDiscoveredDeviceOverWifiPAF()
* Factor out the long expression into local

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Remove the redundant LogErrorOnFailure()

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* Use the smart pointer to detect if the caller is still valid in the callback function

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Fix the building error after rebase to TOT of master branch

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Change the dbus interface usage by following the new api update in wpa_supplicant

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* * Add freq_list option to support multiple channels
* Add more tests in QRCode test

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* * Change to have the consistent naming of the new added variables
* Fix the problem to add tests in TestQRCode.cpp
* Use a list to track the validation of the caller object.

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

* Cancel the subscription in destructor to avoid the use-after-free issue

Signed-off-by: Lo,Chin-Ran <[email protected]>

* Restyled by clang-format

---------

Signed-off-by: Lo,Chin-Ran <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
Co-authored-by: Karsten Sperling <[email protected]>
@jczhang777
Copy link
Contributor

I modified the src/platform/device.gni file. I changed chip_device_config_enable_wifipaf = false to chip_device_config_enable_wifipaf = true, and then compiled the chip tool. During the compilation, I encountered an error. The error log is as follows:

ERROR at //third_party/connectedhomeip/src/include/platform/ConnectivityManager.h:39:11: Include not allowed.
#include <transport/raw/WiFiPAF.h>
^----------------------
It is not in any dependency of
//third_party/connectedhomeip/src/platform:platform
The include file is in the target(s):
//third_party/connectedhomeip/src/transport/raw:raw
which should somehow be reachable.

Is there an issue with the way I made the modification?

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