diff --git a/examples/chef/linux/main.cpp b/examples/chef/linux/main.cpp index 35cc7a242afcbd..af41f8b6588a1d 100644 --- a/examples/chef/linux/main.cpp +++ b/examples/chef/linux/main.cpp @@ -20,7 +20,9 @@ #include #include +#include #include +#include #include @@ -28,8 +30,21 @@ using namespace chip; using namespace chip::Shell; +using namespace chip::app; -void ApplicationInit() {} +#if CHIP_DEVICE_CONFIG_ENABLE_WPA +namespace { +DeviceLayer::NetworkCommissioning::LinuxWiFiDriver sLinuxWiFiDriver; +Clusters::NetworkCommissioning::Instance sWiFiNetworkCommissioningInstance(0, &sLinuxWiFiDriver); +} // namespace +#endif + +void ApplicationInit() +{ +#if CHIP_DEVICE_CONFIG_ENABLE_WPA + sWiFiNetworkCommissioningInstance.Init(); +#endif +} int main(int argc, char * argv[]) {