struct ieee80211_vif *vif;
- struct ieee80211_channel *current_channel;
-
/* power management status cookie from firmware */
u32 *cookie;
dma_addr_t cookie_dma;
int index = skb_get_queue_mapping(skb);
int rc;
- if (priv->current_channel == NULL) {
+ if (!priv->radio_on) {
printk(KERN_DEBUG "%s: dropped TX frame since radio "
"disabled\n", wiphy_name(hw->wiphy));
dev_kfree_skb(skb);
mwl8k_vif->seqno = 0;
priv->vif = vif;
- priv->current_channel = NULL;
return 0;
}
if (conf->flags & IEEE80211_CONF_IDLE) {
mwl8k_cmd_radio_disable(hw);
- priv->current_channel = NULL;
return 0;
}
if (rc)
goto out;
- priv->current_channel = conf->channel;
-
if (conf->power_level > 18)
conf->power_level = 18;
rc = mwl8k_cmd_rf_tx_power(hw, conf->power_level);