mwl8k: implement idle mode
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
361c55cfad
commit
7595d67a06
@@ -2854,6 +2854,12 @@ static int mwl8k_config_wt(struct work_struct *wt)
|
|||||||
struct mwl8k_priv *priv = hw->priv;
|
struct mwl8k_priv *priv = hw->priv;
|
||||||
int rc = 0;
|
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)) {
|
if (mwl8k_cmd_802_11_radio_enable(hw)) {
|
||||||
rc = -EINVAL;
|
rc = -EINVAL;
|
||||||
goto mwl8k_config_exit;
|
goto mwl8k_config_exit;
|
||||||
|
Reference in New Issue
Block a user