Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7595d67a authored by Lennert Buytenhek's avatar Lennert Buytenhek Committed by John W. Linville
Browse files

mwl8k: implement idle mode

parent 361c55cf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2854,6 +2854,12 @@ static int mwl8k_config_wt(struct work_struct *wt)
	struct mwl8k_priv *priv = hw->priv;
	int rc = 0;

	if (conf->flags & IEEE80211_CONF_IDLE) {
		mwl8k_cmd_802_11_radio_disable(hw);
		priv->current_channel = NULL;
		goto mwl8k_config_exit;
	}

	if (mwl8k_cmd_802_11_radio_enable(hw)) {
		rc = -EINVAL;
		goto mwl8k_config_exit;