diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-06-10 04:21:46 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-14 15:39:28 -0400 |
commit | a93e364430de7f7a5f4eedd604ad1ab3d825dde5 (patch) | |
tree | 441f0f69dc5b08d79c5f5f4e7adae88ad18dbd86 /net/mac80211/sta_info.h | |
parent | f955ebb44798e0058c987a0817810d2542e87349 (diff) |
mac80211: change RX aggregation locking
To prepare for allowing drivers to sleep in
ampdu_action, change the locking in the RX
aggregation code to use a mutex, so that it
would already allow drivers to sleep. But
explicitly disable BHs around the callback
for now since the TX part cannot yet sleep,
and drivers' locking might require it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/sta_info.h')
-rw-r--r-- | net/mac80211/sta_info.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h index 500bafe0a0bb..10d0fcb417ae 100644 --- a/net/mac80211/sta_info.h +++ b/net/mac80211/sta_info.h | |||
@@ -142,8 +142,11 @@ struct tid_ampdu_rx { | |||
142 | * @work: work struct for starting/stopping aggregation | 142 | * @work: work struct for starting/stopping aggregation |
143 | * @tid_rx_timer_expired: bitmap indicating on which TIDs the | 143 | * @tid_rx_timer_expired: bitmap indicating on which TIDs the |
144 | * RX timer expired until the work for it runs | 144 | * RX timer expired until the work for it runs |
145 | * @mtx: mutex to protect all TX data (except non-NULL assignments | ||
146 | * to tid_tx[idx], which are protected by the sta spinlock) | ||
145 | */ | 147 | */ |
146 | struct sta_ampdu_mlme { | 148 | struct sta_ampdu_mlme { |
149 | struct mutex mtx; | ||
147 | /* rx */ | 150 | /* rx */ |
148 | struct tid_ampdu_rx *tid_rx[STA_TID_NUM]; | 151 | struct tid_ampdu_rx *tid_rx[STA_TID_NUM]; |
149 | unsigned long tid_rx_timer_expired[BITS_TO_LONGS(STA_TID_NUM)]; | 152 | unsigned long tid_rx_timer_expired[BITS_TO_LONGS(STA_TID_NUM)]; |