Comment 3 for bug 1391940

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote : Re: Indicator wifi switch does not follow enabling/disabling wifi in system battery settings

Never mind. found this from Battery plugin:

void Battery::setWifiEnabled(bool enabled)
{
    nm_client_wireless_set_enabled (m_nm_client, enabled);
}

System Settings _must not_ try to control the wifi through NM dbus-api directly. For short term, please see how the Wi-Fi panel does this inside plugins/wifi/PageComponent.qml

Simply trying to control the Wi-Fi through NM API will not power down the wifi chipset. This needs to be fixed ASAP.