提交 a6f0f048 编写于 作者: D Dan Carpenter 提交者: John W. Linville

iwlegacy: fix up brokenness caused by cleanup

Patch 7f1f9742 "iwlegacy: refactor iwl4965_mac_channel_switch"
reversed a test and also it changed a spin_lock_irq() to
spin_lock().  I assume the spin_lock change was a mistake because
the unlock was left as spin_unlock_irq().
Signed-off-by: NDan Carpenter <error27@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 d4bb17c4
......@@ -2526,7 +2526,7 @@ void iwl4965_mac_channel_switch(struct ieee80211_hw *hw,
if (!iwl_legacy_is_associated_ctx(ctx))
goto out;
if (priv->cfg->ops->lib->set_channel_switch)
if (!priv->cfg->ops->lib->set_channel_switch)
goto out;
ch = channel->hw_value;
......@@ -2539,7 +2539,7 @@ void iwl4965_mac_channel_switch(struct ieee80211_hw *hw,
goto out;
}
spin_lock(&priv->lock);
spin_lock_irq(&priv->lock);
priv->current_ht_config.smps = conf->smps_mode;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册