pull request: wireless 2011-11-30
Subsystems (6)
commit 3b95e9c089d932c11f9ec03f7493f02cceff04ba
Dave,
This is a batch of fixes intended for 3.2.
There is an nl80211 fix for validating user input to prevent a buffer underrun, a mac80211 race fix to prevent a WARN_ON, a mac80211 fix to avoid trying to stop a single aggregation session twice, a mac80211 fix for a race condition that could cause a crash when an addBA response came late, the partial reversion of an ath9k change that broke wireless on Ferrari One laptops, and a fix for an rtlwifi deadlock.
Please let me know if there are problems!
Thanks,
John
---
The following changes since commit 5dc5503f5a400be5a7dc611745a034f04b0679b8:
isdn: avoid copying too long drvid (2011-11-29 18:39:37 -0500)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git for-davem
Eliad Peller (1):
nl80211: fix MAC address validation
Emmanuel Grumbach (1):
mac80211: fix race between the AGG SM and the Tx data path
Johannes Berg (1):
mac80211: don't stop a single aggregation session twice
John W. Linville (1):
Merge branch 'master' of git://git.kernel.org/.../linville/wireless into for-davem
Nikolay Martynov (1):
mac80211: fix race condition caused by late addBA response
Rafael J. Wysocki (1):
ath9k: Revert change that broke AR928X on Acer Ferrari One
Stanislaw Gruszka (1):
rtlwifi: fix lps_lock deadlock
drivers/net/wireless/ath/ath9k/hw.c | 3 +- drivers/net/wireless/rtlwifi/ps.c | 17 +++++++------ net/mac80211/agg-tx.c | 42 ++++++++++++++++++++++++++++++++-- net/wireless/nl80211.c | 4 +- 4 files changed, 52 insertions(+), 14 deletions(-)
drivers/net/wireless/ath/ath9k/hw.c +2 -1
@@ -1827,7 +1827,8 @@ static void ath9k_set_power_sleep(struct ath_hw *ah, int setChip) }/* Clear Bit 14 of AR_WA after putting chip into Full Sleep mode. */ -REG_WRITE (ah,AR_WA , ah->WARegVal & ~AR_WA_D3_L1_DISABLE ); +if (AR_SREV_9300_20_OR_LATER (ah)) +REG_WRITE (ah,AR_WA , ah->WARegVal & ~AR_WA_D3_L1_DISABLE ); }/*
drivers/net/wireless/rtlwifi/ps.c +9 -8
@@ -395,7 +395,7 @@ void rtl_lps_enter(struct ieee80211_hw *hw)if (mac->link_state !=MAC80211_LINKED )return ; -spin_lock (&rtlpriv->locks.lps_lock); +spin_lock_irq (&rtlpriv->locks.lps_lock);/* Idle for a while if we connect to AP a while ago. */ if (mac->cnt_after_linked >=2 ) {
@@ -407,7 +407,7 @@ void rtl_lps_enter(struct ieee80211_hw *hw) } } -spin_unlock (&rtlpriv->locks.lps_lock); +spin_unlock_irq (&rtlpriv->locks.lps_lock); }/*Leave the leisure power save mode.*/
@@ -416,8 +416,9 @@ void rtl_lps_leave(struct ieee80211_hw *hw)struct rtl_priv *rtlpriv =rtl_priv (hw);struct rtl_ps_ctl *ppsc =rtl_psc (rtl_priv (hw));struct rtl_hal *rtlhal =rtl_hal (rtl_priv (hw)); +unsigned long flags; -spin_lock (&rtlpriv->locks.lps_lock); +spin_lock_irqsave (&rtlpriv->locks.lps_lock, flags);if (ppsc->fwctrl_lps) {if (ppsc->dot11_psmode !=EACTIVE ) {
@@ -438,7 +439,7 @@ void rtl_lps_leave(struct ieee80211_hw *hw)rtl_lps_set_psmode (hw,EACTIVE ); } } -spin_unlock (&rtlpriv->locks.lps_lock); +spin_unlock_irqrestore (&rtlpriv->locks.lps_lock, flags); }/* For sw LPS*/
@@ -539,9 +540,9 @@ void rtl_swlps_rf_awake(struct ieee80211_hw *hw)RT_CLEAR_PS_LEVEL (ppsc,RT_PS_LEVEL_ASPM ); } -spin_lock (&rtlpriv->locks.lps_lock); +spin_lock_irq (&rtlpriv->locks.lps_lock);rtl_ps_set_rf_state (hw,ERFON ,RF_CHANGE_BY_PS ); -spin_unlock (&rtlpriv->locks.lps_lock); +spin_unlock_irq (&rtlpriv->locks.lps_lock); }void rtl_swlps_rfon_wq_callback (void *data)
@@ -574,9 +575,9 @@ void rtl_swlps_rf_sleep(struct ieee80211_hw *hw)if (rtlpriv->link_info.busytraffic)return ; -spin_lock (&rtlpriv->locks.lps_lock); +spin_lock_irq (&rtlpriv->locks.lps_lock);rtl_ps_set_rf_state (hw,ERFSLEEP ,RF_CHANGE_BY_PS ); -spin_unlock (&rtlpriv->locks.lps_lock); +spin_unlock_irq (&rtlpriv->locks.lps_lock);if (ppsc->reg_rfps_level &RT_RF_OFF_LEVL_ASPM && !RT_IN_PS_LEVEL (ppsc,RT_PS_LEVEL_ASPM )) {
net/mac80211/agg-tx.c +39 -3
76 lines not on this page · raw message
net/wireless/nl80211.c +2 -2
@@ -89,8 +89,8 @@ static const struct nla_policy nl80211_policy[NL80211_ATTR_MAX+1] = { [NL80211_ATTR_IFINDEX] = { .type = NLA_U32 }, [NL80211_ATTR_IFNAME] = { .type = NLA_NUL_STRING, .len = IFNAMSIZ-1 }, - [NL80211_ATTR_MAC] = { .type = NLA_BINARY, .len = ETH_ALEN }, - [NL80211_ATTR_PREV_BSSID] = { .type = NLA_BINARY, .len = ETH_ALEN }, + [NL80211_ATTR_MAC] = { .len = ETH_ALEN }, + [NL80211_ATTR_PREV_BSSID] = { .len = ETH_ALEN }, [NL80211_ATTR_KEY] = { .type = NLA_NESTED, }, [NL80211_ATTR_KEY_DATA] = { .type = NLA_BINARY,
Signature · 2 lines
John W. Linville Someday the world will need a hero, and you [email protected] might be all we have. Be ready.
From: "John W. Linville" <[email protected]>
Date: Wed, 30 Nov 2011 14:39:07 -0500
Quoted 8 lines
There is an nl80211 fix for validating user input to prevent a buffer underrun, a mac80211 race fix to prevent a
WARN_ON, a mac80211 fix to avoid trying to stop a single aggregation session twice, a mac80211 fix for a race condition that could cause a crash when an addBA response came late, the partial reversion of an ath9k change that broke wireless on Ferrari One laptops, and a fix for an rtlwifi deadlock.Please let me know if there are problems!
Applied, thanks.