Skip to content

Commit

Permalink
Pull request project-chip#1982: Cherry-pick "Pull request project-chi…
Browse files Browse the repository at this point in the history
…p#1972: [MATTER-2982] Disconnecting the Wi-Fi on factory reset"

Merge in WMN_TOOLS/matter from cherry_pick/PR_1972 to silabs_slc_1.3

Squashed commit of the following:

commit d855f312d64119b17ec1825cdd7fd49ecd18c94d
Author: chbansal <[email protected]>
Date:   Tue Jun 25 10:43:03 2024 +0530

    moving the disconnect to existing wifi condition

commit 245688bd750827381ebf58bf3b8e707d3987f464
Author: Chirag Bansal <[email protected]>
Date:   Mon Jun 17 19:28:05 2024 +0000

    Pull request project-chip#1972: [MATTER-2982] Disconnecting the Wi-Fi on factory reset

    Merge in WMN_TOOLS/matter from bugfix/adding_disconnect_on_reset to certification_slc_1.3

    Squashed commit of the following:

    commit 796685505ede9d5102f9453fa76cad5bf064e3a9
    Author: chbansal <[email protected]>
    Date:   Mon Jun 17 19:58:27 2024 +0530

        removing the is provisioned condition

    commit 5f7f3541b086a102490289257b258d11bb2b16fa
    Author: chbansal <[email protected]>
    Date:   Thu Jun 13 16:15:10 2024 +0530

        Disconnecting the wifi on factory reset
  • Loading branch information
chirag-silabs committed Jun 25, 2024
1 parent 7dae0ce commit fea0e80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/platform/silabs/ConfigurationManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ void ConfigurationManagerImpl::DoFactoryReset(intptr_t arg)
PersistedStorage::KeyValueStoreMgrImpl().ErasePartition();

#if CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION
sl_status_t status = wfx_sta_discon();
if (status != SL_STATUS_OK)
{
ChipLogError(DeviceLayer, "wfx_sta_discon() failed: %lx", status);
}

ChipLogProgress(DeviceLayer, "Clearing WiFi provision");
wfx_clear_wifi_provision();
#endif // CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION
Expand Down

0 comments on commit fea0e80

Please sign in to comment.