diff options
| author | Lennert Buytenhek <buytenh@wantstofly.org> | 2010-01-12 07:47:32 -0500 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2010-01-12 14:21:08 -0500 |
| commit | 9189c10087a738c764046fa27651d332594cd8e6 (patch) | |
| tree | 5dd2798d0d43e45f73c6d2f36da75b05debed7da | |
| parent | c92d4edecf489dbcbb2e5dd3c513790e57e2ea0e (diff) | |
mwl8k: remove (mostly) write-only variable priv->current_channel
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
| -rw-r--r-- | drivers/net/wireless/mwl8k.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index 01cababfefa8..f2c4524888a8 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c | |||
| @@ -156,8 +156,6 @@ struct mwl8k_priv { | |||
| 156 | 156 | ||
| 157 | struct ieee80211_vif *vif; | 157 | struct ieee80211_vif *vif; |
| 158 | 158 | ||
| 159 | struct ieee80211_channel *current_channel; | ||
| 160 | |||
| 161 | /* power management status cookie from firmware */ | 159 | /* power management status cookie from firmware */ |
| 162 | u32 *cookie; | 160 | u32 *cookie; |
| 163 | dma_addr_t cookie_dma; | 161 | dma_addr_t cookie_dma; |
| @@ -3050,7 +3048,7 @@ static int mwl8k_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
| 3050 | int index = skb_get_queue_mapping(skb); | 3048 | int index = skb_get_queue_mapping(skb); |
| 3051 | int rc; | 3049 | int rc; |
| 3052 | 3050 | ||
| 3053 | if (priv->current_channel == NULL) { | 3051 | if (!priv->radio_on) { |
| 3054 | printk(KERN_DEBUG "%s: dropped TX frame since radio " | 3052 | printk(KERN_DEBUG "%s: dropped TX frame since radio " |
| 3055 | "disabled\n", wiphy_name(hw->wiphy)); | 3053 | "disabled\n", wiphy_name(hw->wiphy)); |
| 3056 | dev_kfree_skb(skb); | 3054 | dev_kfree_skb(skb); |
| @@ -3182,7 +3180,6 @@ static int mwl8k_add_interface(struct ieee80211_hw *hw, | |||
| 3182 | mwl8k_vif->seqno = 0; | 3180 | mwl8k_vif->seqno = 0; |
| 3183 | 3181 | ||
| 3184 | priv->vif = vif; | 3182 | priv->vif = vif; |
| 3185 | priv->current_channel = NULL; | ||
| 3186 | 3183 | ||
| 3187 | return 0; | 3184 | return 0; |
| 3188 | } | 3185 | } |
| @@ -3208,7 +3205,6 @@ static int mwl8k_config(struct ieee80211_hw *hw, u32 changed) | |||
| 3208 | 3205 | ||
| 3209 | if (conf->flags & IEEE80211_CONF_IDLE) { | 3206 | if (conf->flags & IEEE80211_CONF_IDLE) { |
| 3210 | mwl8k_cmd_radio_disable(hw); | 3207 | mwl8k_cmd_radio_disable(hw); |
| 3211 | priv->current_channel = NULL; | ||
| 3212 | return 0; | 3208 | return 0; |
| 3213 | } | 3209 | } |
| 3214 | 3210 | ||
| @@ -3224,8 +3220,6 @@ static int mwl8k_config(struct ieee80211_hw *hw, u32 changed) | |||
| 3224 | if (rc) | 3220 | if (rc) |
| 3225 | goto out; | 3221 | goto out; |
| 3226 | 3222 | ||
| 3227 | priv->current_channel = conf->channel; | ||
| 3228 | |||
| 3229 | if (conf->power_level > 18) | 3223 | if (conf->power_level > 18) |
| 3230 | conf->power_level = 18; | 3224 | conf->power_level = 18; |
| 3231 | rc = mwl8k_cmd_rf_tx_power(hw, conf->power_level); | 3225 | rc = mwl8k_cmd_rf_tx_power(hw, conf->power_level); |
