summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2009-08-17 21:59:40 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2009-08-20 15:38:07 (GMT)
commit7595d67a06466cc00e3aae1b86544278b57481ee (patch)
tree5db4d9b2174ad9bb4390940e92141ad6f7315085 /drivers/net
parent361c55cfaddaa36f0997c5a96948ba5888bfb992 (diff)
downloadlinux-fsl-qoriq-7595d67a06466cc00e3aae1b86544278b57481ee.tar.xz
mwl8k: implement idle mode
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/mwl8k.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index 177d92f..65eefe8 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;