Commit 9189c100 authored by Lennert Buytenhek's avatar Lennert Buytenhek Committed by John W. Linville

mwl8k: remove (mostly) write-only variable priv->current_channel

Signed-off-by: default avatarLennert Buytenhek <buytenh@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c92d4ede
...@@ -156,8 +156,6 @@ struct mwl8k_priv { ...@@ -156,8 +156,6 @@ struct mwl8k_priv {
struct ieee80211_vif *vif; struct ieee80211_vif *vif;
struct ieee80211_channel *current_channel;
/* power management status cookie from firmware */ /* power management status cookie from firmware */
u32 *cookie; u32 *cookie;
dma_addr_t cookie_dma; dma_addr_t cookie_dma;
...@@ -3050,7 +3048,7 @@ static int mwl8k_tx(struct ieee80211_hw *hw, struct sk_buff *skb) ...@@ -3050,7 +3048,7 @@ static int mwl8k_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
int index = skb_get_queue_mapping(skb); int index = skb_get_queue_mapping(skb);
int rc; int rc;
if (priv->current_channel == NULL) { if (!priv->radio_on) {
printk(KERN_DEBUG "%s: dropped TX frame since radio " printk(KERN_DEBUG "%s: dropped TX frame since radio "
"disabled\n", wiphy_name(hw->wiphy)); "disabled\n", wiphy_name(hw->wiphy));
dev_kfree_skb(skb); dev_kfree_skb(skb);
...@@ -3182,7 +3180,6 @@ static int mwl8k_add_interface(struct ieee80211_hw *hw, ...@@ -3182,7 +3180,6 @@ static int mwl8k_add_interface(struct ieee80211_hw *hw,
mwl8k_vif->seqno = 0; mwl8k_vif->seqno = 0;
priv->vif = vif; priv->vif = vif;
priv->current_channel = NULL;
return 0; return 0;
} }
...@@ -3208,7 +3205,6 @@ static int mwl8k_config(struct ieee80211_hw *hw, u32 changed) ...@@ -3208,7 +3205,6 @@ static int mwl8k_config(struct ieee80211_hw *hw, u32 changed)
if (conf->flags & IEEE80211_CONF_IDLE) { if (conf->flags & IEEE80211_CONF_IDLE) {
mwl8k_cmd_radio_disable(hw); mwl8k_cmd_radio_disable(hw);
priv->current_channel = NULL;
return 0; return 0;
} }
...@@ -3224,8 +3220,6 @@ static int mwl8k_config(struct ieee80211_hw *hw, u32 changed) ...@@ -3224,8 +3220,6 @@ static int mwl8k_config(struct ieee80211_hw *hw, u32 changed)
if (rc) if (rc)
goto out; goto out;
priv->current_channel = conf->channel;
if (conf->power_level > 18) if (conf->power_level > 18)
conf->power_level = 18; conf->power_level = 18;
rc = mwl8k_cmd_rf_tx_power(hw, conf->power_level); rc = mwl8k_cmd_rf_tx_power(hw, conf->power_level);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment