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

Fix the Segmentation fault if wifi name not initialized #19439

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

TE-N-ElvenWang
Copy link
Contributor

@TE-N-ElvenWang TE-N-ElvenWang commented Jun 10, 2022

The WiFi name is configured when WiFi init successfuly.
Sometime, the WiFi interface is not up in some Linux platform and instead
the platform use ethernet like eth0.
In this condition, eth0 will have the IP update event and this update listerner
will be called.
On this condition, the GetWiFiIfName() will report a nullptr and cause a Segmentation fault.

This patch will ignore the event and prevent the Segmentation fault.

Signed-off-by: Haoran Wang elven.wang@nxp.com

@github-actions
Copy link

github-actions bot commented Jun 10, 2022

PR #19439: Size comparison from 3522f9a to e48dbab

Increases (3 builds for linux, nrfconnect)
platform target config section 3522f9a e48dbab change % change
linux chip-tool-no-interactive-ipv6only arm64 (read only) 9558780 9558860 80 0.0
.rodata 468828 468876 48 0.0
.text 7514548 7514580 32 0.0
thermostat-no-ble arm64 (read only) 2545340 2545420 80 0.0
.rodata 160516 160564 48 0.0
.text 2147968 2148000 32 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 text 817528 817532 4 0.0
Decreases (1 build for esp32)
platform target config section 3522f9a e48dbab change % change
esp32 all-clusters-app c3devkit (read only) 1008084 1008082 -2 -0.0
.flash.text 1008084 1008082 -2 -0.0
Full report (30 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 3522f9a e48dbab change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 691167 691167 0 0.0
(read/write) 159688 159688 0 0.0
.bss 73748 73748 0 0.0
.data 3392 3392 0 0.0
.rodata 112391 112391 0 0.0
.text 578464 578464 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 641815 641815 0 0.0
(read/write) 157220 157220 0 0.0
.bss 72972 72972 0 0.0
.data 3332 3332 0 0.0
.rodata 89439 89439 0 0.0
.text 552056 552056 0 0.0
lock-ftd LP_CC2652R7 (read only) 684679 684679 0 0.0
(read/write) 157240 157240 0 0.0
.bss 71700 71700 0 0.0
.data 3256 3256 0 0.0
.rodata 98255 98255 0 0.0
.text 585940 585940 0 0.0
lock-mtd LP_CC2652R7 (read only) 634095 634095 0 0.0
(read/write) 144808 144808 0 0.0
.bss 67436 67436 0 0.0
.data 3256 3256 0 0.0
.rodata 98143 98143 0 0.0
.text 535460 535460 0 0.0
pump-app LP_CC2652R7 (read only) 666035 666035 0 0.0
(read/write) 176796 176796 0 0.0
.bss 71844 71844 0 0.0
.data 3292 3292 0 0.0
.rodata 86363 86363 0 0.0
.text 579188 579188 0 0.0
pump-controller-app LP_CC2652R7 (read only) 656603 656603 0 0.0
(read/write) 186332 186332 0 0.0
.bss 71948 71948 0 0.0
.data 3252 3252 0 0.0
.rodata 84251 84251 0 0.0
.text 571868 571868 0 0.0
shell LP_CC2652R7 (read only) 683454 683454 0 0.0
(read/write) 162896 162896 0 0.0
.bss 76044 76044 0 0.0
.data 3396 3396 0 0.0
.rodata 108990 108990 0 0.0
.text 574152 574152 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 604098 604098 0 0.0
.app_xip_area 462668 462668 0 0.0
.bss 84384 84384 0 0.0
.data 732 732 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 601198 601198 0 0.0
.app_xip_area 459632 459632 0 0.0
.bss 84552 84552 0 0.0
.data 700 700 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 600966 600966 0 0.0
.app_xip_area 460516 460516 0 0.0
.bss 83516 83516 0 0.0
.data 616 616 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 915672 915672 0 0.0
(read/write) 133368 133368 0 0.0
.bss 131280 131280 0 0.0
.data 2088 2088 0 0.0
.text 915664 915664 0 0.0
BRD4161A+rpc (read only) 949876 949876 0 0.0
(read/write) 150060 150060 0 0.0
.bss 147768 147768 0 0.0
.data 2292 2292 0 0.0
.text 949868 949868 0 0.0
BRD4161A+rs911x (read only) 790788 790788 0 0.0
(read/write) 129652 129652 0 0.0
.bss 127556 127556 0 0.0
.data 2096 2096 0 0.0
.text 790780 790780 0 0.0
lock-app BRD4161A+wf200 (read only) 959612 959612 0 0.0
(read/write) 129996 129996 0 0.0
.bss 127932 127932 0 0.0
.data 2064 2064 0 0.0
.text 959604 959604 0 0.0
window-app BRD4161A (read only) 900728 900728 0 0.0
(read/write) 133456 133456 0 0.0
.bss 131368 131368 0 0.0
.data 2084 2084 0 0.0
.text 900720 900720 0 0.0
esp32 all-clusters-app c3devkit (read only) 1008084 1008082 -2 -0.0
(read/write) 1482098 1482098 0 0.0
.dram0.bss 69360 69360 0 0.0
.dram0.data 14656 14656 0 0.0
.flash.rodata 212656 212656 0 0.0
.flash.text 1008084 1008082 -2 -0.0
.iram0.text 62902 62902 0 0.0
m5stack (read only) 1062899 1062899 0 0.0
(read/write) 484232 484232 0 0.0
.dram0.bss 74880 74880 0 0.0
.dram0.data 34200 34200 0 0.0
.flash.rodata 243156 243156 0 0.0
.flash.text 1057515 1057515 0 0.0
.iram0.text 123267 123267 0 0.0
k32w light k32w061+release (read/write) 654608 654608 0 0.0
.bss 69700 69700 0 0.0
.data 2004 2004 0 0.0
.text 577104 577104 0 0.0
lock k32w061+release (read/write) 715804 715804 0 0.0
.bss 70140 70140 0 0.0
.data 1976 1976 0 0.0
.text 637888 637888 0 0.0
linux chip-tool-no-interactive-ipv6only arm64 (read only) 9558780 9558860 80 0.0
(read/write) 689553 689553 0 0.0
.bss 43681 43681 0 0.0
.data 1152 1152 0 0.0
.data.rel.ro 625888 625888 0 0.0
.dynamic 528 528 0 0.0
.got 15032 15032 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 468828 468876 48 0.0
.text 7514548 7514580 32 0.0
thermostat-no-ble arm64 (read only) 2545340 2545420 80 0.0
(read/write) 190961 190961 0 0.0
.bss 99313 99313 0 0.0
.data 1512 1512 0 0.0
.data.rel.ro 82120 82120 0 0.0
.dynamic 528 528 0 0.0
.got 4992 4992 0 0.0
.init 24 24 0 0.0
.init_array 400 400 0 0.0
.rodata 160516 160564 48 0.0
.text 2147968 2148000 32 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2430136 2430136 0 0.0
.bss 208956 208956 0 0.0
.data 5872 5872 0 0.0
.text 1392780 1392780 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1192683 1192683 0 0.0
bss 141554 141554 0 0.0
rodata 154732 154732 0 0.0
text 817528 817532 4 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1140423 1140423 0 0.0
bss 140771 140771 0 0.0
rodata 131224 131224 0 0.0
text 789612 789612 0 0.0
p6 all-clusters-app default (read/write) 2545728 2545728 0 0.0
.bss 143384 143384 0 0.0
.data 2808 2808 0 0.0
.text 1503992 1503992 0 0.0
all-clusters-minimal-app default (read/write) 2490536 2490536 0 0.0
.bss 142592 142592 0 0.0
.data 2752 2752 0 0.0
.text 1448800 1448800 0 0.0
light-app default (read/write) 2421904 2421904 0 0.0
.bss 135696 135696 0 0.0
.data 2600 2600 0 0.0
.text 1380168 1380168 0 0.0
lock-app default (read/write) 2442296 2442296 0 0.0
.bss 135520 135520 0 0.0
.data 2576 2576 0 0.0
.text 1400560 1400560 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 783120 783120 0 0.0
bss 70828 70828 0 0.0
noinit 40416 40416 0 0.0
text 553734 553734 0 0.0
lighting-app tlsr9518adk80d (read/write) 803132 803132 0 0.0
bss 71080 71080 0 0.0
noinit 40416 40416 0 0.0
text 570454 570454 0 0.0

@TE-N-ElvenWang TE-N-ElvenWang changed the title Fix the Segmentation fault if wifi device not init Fix the Segmentation fault if wifi name not initialized Jun 15, 2022
@github-actions
Copy link

github-actions bot commented Jun 15, 2022

PR #19439: Size comparison from f3247ba to 6c5e0d6

Increases (14 builds for linux, nrfconnect)
platform target config section f3247ba 6c5e0d6 change % change
linux all-clusters-app debug (read only) 2920729 2920841 112 0.0
.rodata 258461 258525 64 0.0
.text 2486834 2486882 48 0.0
all-clusters-minimal-app debug (read only) 2774561 2774673 112 0.0
.rodata 259901 259965 64 0.0
.text 2341474 2341522 48 0.0
bridge-app debug+rpc (read only) 2255969 2256049 80 0.0
.rodata 193280 193312 32 0.0
.text 1902562 1902610 48 0.0
chip-tool debug (read only) 9763141 9763253 112 0.0
.rodata 507093 507157 64 0.0
.text 7820773 7820821 48 0.0
chip-tool-no-interactive-ipv6only arm64 (read only) 9533340 9533420 80 0.0
.rodata 469868 469916 48 0.0
.text 7492932 7492964 32 0.0
lighting-app debug+rpc (read only) 2511329 2511409 80 0.0
.rodata 209160 209192 32 0.0
.text 2133426 2133474 48 0.0
lock-app debug (read only) 2449905 2450017 112 0.0
.rodata 222984 223048 64 0.0
.text 2063650 2063698 48 0.0
ota-provider-app debug (read only) 2287809 2287921 112 0.0
.rodata 199064 199128 64 0.0
.text 1927602 1927650 48 0.0
ota-requestor-app debug (read only) 2403601 2403713 112 0.0
.rodata 202816 202880 64 0.0
.text 2031410 2031458 48 0.0
shell debug (read only) 2598153 2598233 80 0.0
.rodata 229426 229458 32 0.0
.text 2209714 2209762 48 0.0
thermostat-no-ble arm64 (read only) 2563180 2563260 80 0.0
.rodata 162828 162876 48 0.0
.text 2162592 2162624 32 0.0
tv-app debug (read only) 3059337 3059449 112 0.0
.rodata 244800 244864 64 0.0
.text 2628610 2628658 48 0.0
tv-casting-app debug (read only) 5278601 5278713 112 0.0
.rodata 340576 340640 64 0.0
.text 4593714 4593762 48 0.0
nrfconnect all-clusters-minimal-app nrf52840dk_nrf52840 text 793016 793020 4 0.0
Decreases (1 build for telink)
platform target config section f3247ba 6c5e0d6 change % change
telink lighting-app tlsr9518adk80d text 574324 574322 -2 -0.0
Full report (41 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section f3247ba 6c5e0d6 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 657531 657531 0 0.0
(read/write) 193284 193284 0 0.0
.bss 73708 73708 0 0.0
.data 3380 3380 0 0.0
.rodata 86883 86883 0 0.0
.text 570336 570336 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 646063 646063 0 0.0
(read/write) 157260 157260 0 0.0
.bss 72988 72988 0 0.0
.data 3356 3356 0 0.0
.rodata 90191 90191 0 0.0
.text 555552 555552 0 0.0
lock-ftd LP_CC2652R7 (read only) 688495 688495 0 0.0
(read/write) 152424 152424 0 0.0
.bss 70700 70700 0 0.0
.data 3280 3280 0 0.0
.rodata 98911 98911 0 0.0
.text 589100 589100 0 0.0
lock-mtd LP_CC2652R7 (read only) 637903 637903 0 0.0
(read/write) 143832 143832 0 0.0
.bss 66436 66436 0 0.0
.data 3280 3280 0 0.0
.rodata 98791 98791 0 0.0
.text 538620 538620 0 0.0
pump-app LP_CC2652R7 (read only) 669719 669719 0 0.0
(read/write) 172088 172088 0 0.0
.bss 70820 70820 0 0.0
.data 3316 3316 0 0.0
.rodata 87007 87007 0 0.0
.text 582228 582228 0 0.0
pump-controller-app LP_CC2652R7 (read only) 660443 660443 0 0.0
(read/write) 181492 181492 0 0.0
.bss 70948 70948 0 0.0
.data 3276 3276 0 0.0
.rodata 84931 84931 0 0.0
.text 575028 575028 0 0.0
shell LP_CC2652R7 (read only) 686890 686890 0 0.0
(read/write) 159420 159420 0 0.0
.bss 76004 76004 0 0.0
.data 3384 3384 0 0.0
.rodata 109442 109442 0 0.0
.text 577136 577136 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 611090 611090 0 0.0
.app_xip_area 467780 467780 0 0.0
.bss 86232 86232 0 0.0
.data 764 764 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 608182 608182 0 0.0
.app_xip_area 464728 464728 0 0.0
.bss 86408 86408 0 0.0
.data 732 732 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 614274 614274 0 0.0
.app_xip_area 471884 471884 0 0.0
.bss 85400 85400 0 0.0
.data 672 672 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 920548 920548 0 0.0
(read/write) 132396 132396 0 0.0
.bss 130280 130280 0 0.0
.data 2116 2116 0 0.0
.text 920540 920540 0 0.0
BRD4161A+rpc (read only) 956188 956188 0 0.0
(read/write) 149272 149272 0 0.0
.bss 146952 146952 0 0.0
.data 2320 2320 0 0.0
.text 956180 956180 0 0.0
BRD4161A+rs911x (read only) 795648 795648 0 0.0
(read/write) 128676 128676 0 0.0
.bss 126548 126548 0 0.0
.data 2124 2124 0 0.0
.text 795640 795640 0 0.0
lock-app BRD4161A+wf200 (read only) 963576 963576 0 0.0
(read/write) 129012 129012 0 0.0
.bss 126924 126924 0 0.0
.data 2088 2088 0 0.0
.text 963568 963568 0 0.0
window-app BRD4161A (read only) 905420 905420 0 0.0
(read/write) 132468 132468 0 0.0
.bss 130360 130360 0 0.0
.data 2108 2108 0 0.0
.text 905412 905412 0 0.0
esp32 all-clusters-app c3devkit (read only) 1011848 1011848 0 0.0
(read/write) 1482698 1482698 0 0.0
.dram0.bss 69344 69344 0 0.0
.dram0.data 14656 14656 0 0.0
.flash.rodata 213272 213272 0 0.0
.flash.text 1011848 1011848 0 0.0
.iram0.text 62902 62902 0 0.0
m5stack (read only) 1066047 1066047 0 0.0
(read/write) 484800 484800 0 0.0
.dram0.bss 74864 74864 0 0.0
.dram0.data 34176 34176 0 0.0
.flash.rodata 243764 243764 0 0.0
.flash.text 1060663 1060663 0 0.0
.iram0.text 123267 123267 0 0.0
k32w light k32w061+release (read/write) 657192 657192 0 0.0
.bss 68708 68708 0 0.0
.data 2028 2028 0 0.0
.text 580656 580656 0 0.0
lock k32w061+release (read/write) 718848 718848 0 0.0
.bss 69140 69140 0 0.0
.data 2000 2000 0 0.0
.text 641908 641908 0 0.0
linux all-clusters-app debug (read only) 2920729 2920841 112 0.0
(read/write) 188168 188168 0 0.0
.bss 95648 95648 0 0.0
.data 2080 2080 0 0.0
.data.rel.ro 84264 84264 0 0.0
.dynamic 608 608 0 0.0
.got 4536 4536 0 0.0
.init 27 27 0 0.0
.init_array 1024 1024 0 0.0
.rodata 258461 258525 64 0.0
.text 2486834 2486882 48 0.0
all-clusters-minimal-app debug (read only) 2774561 2774673 112 0.0
(read/write) 180008 180008 0 0.0
.bss 94944 94944 0 0.0
.data 2016 2016 0 0.0
.data.rel.ro 76904 76904 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 1024 1024 0 0.0
.rodata 259901 259965 64 0.0
.text 2341474 2341522 48 0.0
bridge-app debug+rpc (read only) 2255969 2256049 80 0.0
(read/write) 157848 157848 0 0.0
.bss 81920 81920 0 0.0
.data 3856 3856 0 0.0
.data.rel.ro 66312 66312 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 193280 193312 32 0.0
.text 1902562 1902610 48 0.0
chip-tool debug (read only) 9763141 9763253 112 0.0
(read/write) 620352 620352 0 0.0
.bss 24352 24352 0 0.0
.data 1088 1088 0 0.0
.data.rel.ro 588616 588616 0 0.0
.dynamic 624 624 0 0.0
.got 5008 5008 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 507093 507157 64 0.0
.text 7820773 7820821 48 0.0
chip-tool-no-interactive-ipv6only arm64 (read only) 9533340 9533420 80 0.0
(read/write) 686561 686561 0 0.0
.bss 42625 42625 0 0.0
.data 1152 1152 0 0.0
.data.rel.ro 624056 624056 0 0.0
.dynamic 528 528 0 0.0
.got 14912 14912 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 469868 469916 48 0.0
.text 7492932 7492964 32 0.0
lighting-app debug+rpc (read only) 2511329 2511409 80 0.0
(read/write) 162960 162960 0 0.0
.bss 83520 83520 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 71464 71464 0 0.0
.dynamic 608 608 0 0.0
.got 4424 4424 0 0.0
.init 27 27 0 0.0
.init_array 808 808 0 0.0
.rodata 209160 209192 32 0.0
.text 2133426 2133474 48 0.0
lock-app debug (read only) 2449905 2450017 112 0.0
(read/write) 157520 157520 0 0.0
.bss 81888 81888 0 0.0
.data 1648 1648 0 0.0
.data.rel.ro 68152 68152 0 0.0
.dynamic 608 608 0 0.0
.got 4424 4424 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 222984 223048 64 0.0
.text 2063650 2063698 48 0.0
ota-provider-app debug (read only) 2287809 2287921 112 0.0
(read/write) 151656 151656 0 0.0
.bss 81568 81568 0 0.0
.data 1880 1880 0 0.0
.data.rel.ro 62424 62424 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 672 672 0 0.0
.rodata 199064 199128 64 0.0
.text 1927602 1927650 48 0.0
ota-requestor-app debug (read only) 2403601 2403713 112 0.0
(read/write) 158432 158432 0 0.0
.bss 83872 83872 0 0.0
.data 2168 2168 0 0.0
.data.rel.ro 66536 66536 0 0.0
.dynamic 608 608 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 728 728 0 0.0
.rodata 202816 202880 64 0.0
.text 2031410 2031458 48 0.0
shell debug (read only) 2598153 2598233 80 0.0
(read/write) 218992 218992 0 0.0
.bss 134440 134440 0 0.0
.data 1296 1296 0 0.0
.data.rel.ro 77512 77512 0 0.0
.dynamic 608 608 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 928 928 0 0.0
.rodata 229426 229458 32 0.0
.text 2209714 2209762 48 0.0
thermostat-no-ble arm64 (read only) 2563180 2563260 80 0.0
(read/write) 191505 191505 0 0.0
.bss 99361 99361 0 0.0
.data 1672 1672 0 0.0
.data.rel.ro 82416 82416 0 0.0
.dynamic 528 528 0 0.0
.got 5040 5040 0 0.0
.init 24 24 0 0.0
.init_array 400 400 0 0.0
.rodata 162828 162876 48 0.0
.text 2162592 2162624 32 0.0
tv-app debug (read only) 3059337 3059449 112 0.0
(read/write) 288960 288960 0 0.0
.bss 199144 199144 0 0.0
.data 4784 4784 0 0.0
.data.rel.ro 78592 78592 0 0.0
.dynamic 608 608 0 0.0
.got 4840 4840 0 0.0
.init 27 27 0 0.0
.init_array 944 944 0 0.0
.rodata 244800 244864 64 0.0
.text 2628610 2628658 48 0.0
tv-casting-app debug (read only) 5278601 5278713 112 0.0
(read/write) 229232 229232 0 0.0
.bss 87976 87976 0 0.0
.data 2512 2512 0 0.0
.data.rel.ro 132520 132520 0 0.0
.dynamic 608 608 0 0.0
.got 4712 4712 0 0.0
.init 27 27 0 0.0
.init_array 864 864 0 0.0
.rodata 340576 340640 64 0.0
.text 4593714 4593762 48 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2434912 2434912 0 0.0
.bss 208148 208148 0 0.0
.data 5864 5864 0 0.0
.text 1397556 1397556 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1196567 1196567 0 0.0
bss 141554 141554 0 0.0
rodata 155456 155456 0 0.0
text 820700 820700 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1144615 1144615 0 0.0
bss 140794 140794 0 0.0
rodata 131984 131984 0 0.0
text 793016 793020 4 0.0
p6 all-clusters-app default (read/write) 2549968 2549968 0 0.0
.bss 143344 143344 0 0.0
.data 2800 2800 0 0.0
.text 1508232 1508232 0 0.0
all-clusters-minimal-app default (read/write) 2495912 2495912 0 0.0
.bss 142608 142608 0 0.0
.data 2776 2776 0 0.0
.text 1454176 1454176 0 0.0
light-app default (read/write) 2426776 2426776 0 0.0
.bss 134688 134688 0 0.0
.data 2624 2624 0 0.0
.text 1385040 1385040 0 0.0
lock-app default (read/write) 2447192 2447192 0 0.0
.bss 134512 134512 0 0.0
.data 2600 2600 0 0.0
.text 1405456 1405456 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 786732 786732 0 0.0
bss 69836 69836 0 0.0
noinit 40416 40416 0 0.0
text 557632 557632 0 0.0
lighting-app tlsr9518adk80d (read/write) 806720 806720 0 0.0
bss 70088 70088 0 0.0
noinit 40416 40416 0 0.0
text 574324 574322 -2 -0.0

The WiFi name is configured when WiFi init successfuly.
Sometime, the WiFi interface is not up in some Linux platform and instead
the platform use ethernet like eth0.
In this condition, eth0 will have the IP update event and this update listerner
will be called.
On this condition, the GetWiFiIfName() will report a nullptr and cause a Segmentation fault.

This patch will ignore the event and prevent the Segmentation fault.

Signed-off-by: Haoran Wang <elven.wang@nxp.com>
@woody-apple
Copy link
Contributor

Fast tracking platform changes.

@woody-apple woody-apple merged commit 2582daf into project-chip:master Jun 16, 2022
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.

4 participants