pull request: wireless-2.6 2010-04-07
Subsystems (5)
Dave,
Here is a batch of fixes intended for 2.6.34. Included is a variable initialization required for some ath9k hardware to function reliably, some RCU annotation to avoid some warnings in mac80211, and a fix for a regression relating to 802.11s mesh networking. Also included are several iwlwifi fixes, include the elimination of an order-4 allocation during resume, avoidance of a the BUG_ON in the rate scaling routines, and the elimination of a DMA API warning during module removal. The iwlwifi patches are a little larger than I would like, but the fixes seem legitimate and worthwhile to me.
Please let me know if there are problems!
Thanks,
John
---
The following changes since commit fb9e2d887243499b8d28efcf80821c4f6a092395:
Ken Kawasaki (1):
smc91c92_cs: fix the problem of "Unable to find hardware address"
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git master
Felix Fietkau (1):
ath9k: fix double calls to ath_radio_enable
Javier Cardona (1):
mac80211: Handle mesh action frames in ieee80211_rx_h_action
Johannes Berg (1):
mac80211: annotate station rcu dereferences
Shanyu Zhao (1):
iwlwifi: use consistent table for tx data collect
Zhu Yi (2):
iwlwifi: fix DMA allocation warnings
iwlwifi: avoid Tx queue memory allocation in interface down
drivers/net/wireless/ath/ath9k/main.c | 3 +- drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 55 +++++++-------- drivers/net/wireless/iwlwifi/iwl-core.c | 11 ++- drivers/net/wireless/iwlwifi/iwl-core.h | 5 +- drivers/net/wireless/iwlwifi/iwl-tx.c | 107 +++++++++++++++++++++++++---- net/mac80211/main.c | 4 +- net/mac80211/mesh.c | 3 - net/mac80211/rx.c | 5 ++ net/mac80211/sta_info.c | 20 ++++- 9 files changed, 153 insertions(+), 60 deletions(-)
drivers/net/wireless/ath/ath9k/main.c +1 -2
@@ -1532,8 +1532,7 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed) all_wiphys_idle =ath9k_all_wiphys_idle (sc);ath9k_set_wiphy_idle (aphy, idle); -if (!idle && all_wiphys_idle) - enable_radio = true; + enable_radio = (!idle && all_wiphys_idle);/* * After we unlock here its possible another wiphy
drivers/net/wireless/iwlwifi/iwl-agn-rs.c +24 -31
111 lines not on this page · raw message
drivers/net/wireless/iwlwifi/iwl-core.c +7 -4
@@ -307,10 +307,13 @@ int iwl_hw_nic_init(struct iwl_priv *priv)spin_unlock_irqrestore (&priv->lock, flags); -/* Allocate and init all Tx and Command queues */ - ret =iwl_txq_ctx_reset (priv); -if (ret) -return ret; +/* Allocate or reset and init all Tx and Command queues */ +if (!priv->txq) { + ret =iwl_txq_ctx_alloc (priv); +if (ret) +return ret; + }else +iwl_txq_ctx_reset (priv);set_bit (STATUS_INIT , &priv->status);
drivers/net/wireless/iwlwifi/iwl-core.h +4 -1
@@ -442,7 +442,8 @@ void iwl_rx_csa(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb);/***************************************************** * TX ******************************************************/ -int iwl_txq_ctx_reset (struct iwl_priv *priv); +int iwl_txq_ctx_alloc (struct iwl_priv *priv); +void iwl_txq_ctx_reset (struct iwl_priv *priv);void iwl_hw_txq_free_tfd (struct iwl_priv *priv,struct iwl_tx_queue *txq); int iwl_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, struct iwl_tx_queue *txq,
@@ -456,6 +457,8 @@ void iwl_free_tfds_in_queue(struct iwl_priv *priv,void iwl_txq_update_write_ptr (struct iwl_priv *priv,struct iwl_tx_queue *txq);int iwl_tx_queue_init (struct iwl_priv *priv,struct iwl_tx_queue *txq,int slots_num,u32 txq_id); +void iwl_tx_queue_reset (struct iwl_priv *priv,struct iwl_tx_queue *txq, +int slots_num,u32 txq_id);void iwl_tx_queue_free (struct iwl_priv *priv,int txq_id);int iwl_tx_agg_start (struct iwl_priv *priv,const u8 *ra,u16 tid,u16 *ssn);int iwl_tx_agg_stop (struct iwl_priv *priv ,const u8 *ra,u16 tid);
drivers/net/wireless/iwlwifi/iwl-tx.c +94 -13
177 lines not on this page · raw message
net/mac80211/main.c +2 -2
@@ -225,11 +225,11 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata,switch (sdata->vif.type) {case NL80211_IFTYPE_AP : sdata->vif.bss_conf.enable_beacon = - !!rcu_dereference (sdata->u.ap.beacon); + !!sdata->u.ap.beacon;break ;case NL80211_IFTYPE_ADHOC : sdata->vif.bss_conf.enable_beacon = - !!rcu_dereference (sdata->u.ibss.presp); + !!sdata->u.ibss.presp;break ;case NL80211_IFTYPE_MESH_POINT : sdata->vif.bss_conf.enable_beacon = true;
net/mac80211/mesh.c +0 -3
@@ -749,9 +749,6 @@ ieee80211_mesh_rx_mgmt(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb)switch (fc &IEEE80211_FCTL_STYPE ) {case IEEE80211_STYPE_ACTION : -if (skb->len <IEEE80211_MIN_ACTION_SIZE ) -return RX_DROP_MONITOR ; -/* fall through */ case IEEE80211_STYPE_PROBE_RESP :case IEEE80211_STYPE_BEACON :skb_queue_tail (&ifmsh->skb_queue, skb);
net/mac80211/rx.c +5 -0
@@ -1973,6 +1973,11 @@ ieee80211_rx_h_action(struct ieee80211_rx_data *rx) goto handled; }break ; +case MESH_PLINK_CATEGORY : +case MESH_PATH_SEL_CATEGORY : +if (ieee80211_vif_is_mesh (&sdata->vif)) +return ieee80211_mesh_rx_mgmt (sdata, rx->skb); +break ; }/*
net/mac80211/sta_info.c +16 -4
@@ -93,12 +93,18 @@ struct sta_info *sta_info_get(struct ieee80211_sub_if_data *sdata,struct ieee80211_local *local = sdata->local;struct sta_info *sta; - sta =rcu_dereference (local->sta_hash[STA_HASH (addr)]); + sta =rcu_dereference_check (local->sta_hash[STA_HASH (addr)], +rcu_read_lock_held () || +lockdep_is_held (&local->sta_lock) || +lockdep_is_held (&local->sta_mtx));while (sta) {if (sta->sdata == sdata &&memcmp (sta->sta.addr, addr,ETH_ALEN ) ==0 )break ; - sta =rcu_dereference (sta->hnext); + sta =rcu_dereference_check (sta->hnext, +rcu_read_lock_held () || +lockdep_is_held (&local->sta_lock) || +lockdep_is_held (&local->sta_mtx)); }return sta; }
@@ -113,13 +119,19 @@ struct sta_info *sta_info_get_bss(struct ieee80211_sub_if_data *sdata,struct ieee80211_local *local = sdata->local;struct sta_info *sta; - sta =rcu_dereference (local->sta_hash[STA_HASH (addr)]); + sta =rcu_dereference_check (local->sta_hash[STA_HASH (addr)], +rcu_read_lock_held () || +lockdep_is_held (&local->sta_lock) || +lockdep_is_held (&local->sta_mtx));while (sta) {if ((sta->sdata == sdata || sta->sdata->bss == sdata->bss) &&memcmp (sta->sta.addr, addr,ETH_ALEN ) ==0 )break ; - sta =rcu_dereference (sta->hnext); + sta =rcu_dereference_check (sta->hnext, +rcu_read_lock_held () || +lockdep_is_held (&local->sta_lock) || +lockdep_is_held (&local->sta_mtx)); }return sta; }
Signature · 6 lines
John W. Linville Someday the world will need a hero, and you [email protected] might be all we have. Be ready. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
David Miller
maintainerFrom: "John W. Linville" <[email protected]>
Date: Wed, 7 Apr 2010 14:28:32 -0400
Quoted 9 lines
Here is a batch of fixes intended for 2.6.34. Included is a variable initialization required for some ath9k hardware to function reliably, some RCU annotation to avoid some warnings in mac80211, and a fix for a regression relating to 802.11s mesh networking. Also included are several iwlwifi fixes, include the elimination of an order-4 allocation during resume, avoidance of a the
BUG_ONin the rate scaling routines, and the elimination of a DMA API warning during module removal. The iwlwifi patches are a little larger than I would like, but the fixes seem legitimate and worthwhile to me.
I guess nobody takes me seriously when I say tone down the rate of fixes to the absolute minimum.
Oh well, what can I do, if even the most core people can't be bothered to listen to my requests.
And people wonder why we need 8 or 9 RCs to get a release out.
Pulled.
David Miller
maintainerFrom: David Miller <[email protected]>
Date: Wed, 07 Apr 2010 16:42:24 -0700 (PDT)
Quoted 5 lines
I guess nobody takes me seriously when I say tone down the rate of fixes to the absolute minimum.
Oh well, what can I do, if even the most core people can't be bothered to listen to my requests.
Sorry, I take back this rant.
The set of fixes actually looks quite reasonable.
:-)