From: Lennert Buytenhek Date: Mon, 17 Aug 2009 21:59:40 +0000 (+0200) Subject: mwl8k: implement idle mode X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7595d67a06466cc00e3aae1b86544278b57481ee;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git mwl8k: implement idle mode Signed-off-by: Lennert Buytenhek Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index 177d92f0b877..65eefe835024 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c @@ -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;