diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2009-08-17 17:59:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-20 11:38:07 -0400 |
commit | 7595d67a06466cc00e3aae1b86544278b57481ee (patch) | |
tree | 5db4d9b2174ad9bb4390940e92141ad6f7315085 /drivers/net/wireless/mwl8k.c | |
parent | 361c55cfaddaa36f0997c5a96948ba5888bfb992 (diff) |
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/wireless/mwl8k.c')
-rw-r--r-- | drivers/net/wireless/mwl8k.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index 177d92f0b87..65eefe83502 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) | |||
2854 | struct mwl8k_priv *priv = hw->priv; | 2854 | struct mwl8k_priv *priv = hw->priv; |
2855 | int rc = 0; | 2855 | int rc = 0; |
2856 | 2856 | ||
2857 | if (conf->flags & IEEE80211_CONF_IDLE) { | ||
2858 | mwl8k_cmd_802_11_radio_disable(hw); | ||
2859 | priv->current_channel = NULL; | ||
2860 | goto mwl8k_config_exit; | ||
2861 | } | ||
2862 | |||
2857 | if (mwl8k_cmd_802_11_radio_enable(hw)) { | 2863 | if (mwl8k_cmd_802_11_radio_enable(hw)) { |
2858 | rc = -EINVAL; | 2864 | rc = -EINVAL; |
2859 | goto mwl8k_config_exit; | 2865 | goto mwl8k_config_exit; |