diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-04-15 16:21:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-15 16:21:34 -0400 |
commit | 5c01d5669356e13f0fb468944c1dd4c6a7e978ad (patch) | |
tree | fa43345288d7b25fac92b3b35360a177c4947313 /net/mac80211/agg-tx.c | |
parent | fea069152614cdeefba4b2bf80afcddb9c217fc8 (diff) | |
parent | a5e944f1d955f3819503348426763e21e0413ba6 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts:
Documentation/feature-removal-schedule.txt
drivers/net/wireless/ath/ath5k/phy.c
drivers/net/wireless/wl12xx/wl1271_main.c
Diffstat (limited to 'net/mac80211/agg-tx.c')
-rw-r--r-- | net/mac80211/agg-tx.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c index 96d25348aa59..608063f11797 100644 --- a/net/mac80211/agg-tx.c +++ b/net/mac80211/agg-tx.c | |||
@@ -215,6 +215,8 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid) | |||
215 | int ret = 0; | 215 | int ret = 0; |
216 | u16 start_seq_num; | 216 | u16 start_seq_num; |
217 | 217 | ||
218 | trace_api_start_tx_ba_session(pubsta, tid); | ||
219 | |||
218 | if (WARN_ON(!local->ops->ampdu_action)) | 220 | if (WARN_ON(!local->ops->ampdu_action)) |
219 | return -EINVAL; | 221 | return -EINVAL; |
220 | 222 | ||
@@ -246,7 +248,7 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid) | |||
246 | return -EINVAL; | 248 | return -EINVAL; |
247 | } | 249 | } |
248 | 250 | ||
249 | if (test_sta_flags(sta, WLAN_STA_SUSPEND)) { | 251 | if (test_sta_flags(sta, WLAN_STA_BLOCK_BA)) { |
250 | #ifdef CONFIG_MAC80211_HT_DEBUG | 252 | #ifdef CONFIG_MAC80211_HT_DEBUG |
251 | printk(KERN_DEBUG "Suspend in progress. " | 253 | printk(KERN_DEBUG "Suspend in progress. " |
252 | "Denying BA session request\n"); | 254 | "Denying BA session request\n"); |
@@ -415,7 +417,7 @@ static void ieee80211_agg_tx_operational(struct ieee80211_local *local, | |||
415 | struct sta_info *sta, u16 tid) | 417 | struct sta_info *sta, u16 tid) |
416 | { | 418 | { |
417 | #ifdef CONFIG_MAC80211_HT_DEBUG | 419 | #ifdef CONFIG_MAC80211_HT_DEBUG |
418 | printk(KERN_DEBUG "Aggregation is on for tid %d \n", tid); | 420 | printk(KERN_DEBUG "Aggregation is on for tid %d\n", tid); |
419 | #endif | 421 | #endif |
420 | 422 | ||
421 | spin_lock(&local->ampdu_lock); | 423 | spin_lock(&local->ampdu_lock); |
@@ -441,6 +443,8 @@ void ieee80211_start_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u16 tid) | |||
441 | struct sta_info *sta; | 443 | struct sta_info *sta; |
442 | u8 *state; | 444 | u8 *state; |
443 | 445 | ||
446 | trace_api_start_tx_ba_cb(sdata, ra, tid); | ||
447 | |||
444 | if (tid >= STA_TID_NUM) { | 448 | if (tid >= STA_TID_NUM) { |
445 | #ifdef CONFIG_MAC80211_HT_DEBUG | 449 | #ifdef CONFIG_MAC80211_HT_DEBUG |
446 | printk(KERN_DEBUG "Bad TID value: tid = %d (>= %d)\n", | 450 | printk(KERN_DEBUG "Bad TID value: tid = %d (>= %d)\n", |
@@ -542,6 +546,8 @@ int ieee80211_stop_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, | |||
542 | struct ieee80211_sub_if_data *sdata = sta->sdata; | 546 | struct ieee80211_sub_if_data *sdata = sta->sdata; |
543 | struct ieee80211_local *local = sdata->local; | 547 | struct ieee80211_local *local = sdata->local; |
544 | 548 | ||
549 | trace_api_stop_tx_ba_session(pubsta, tid, initiator); | ||
550 | |||
545 | if (!local->ops->ampdu_action) | 551 | if (!local->ops->ampdu_action) |
546 | return -EINVAL; | 552 | return -EINVAL; |
547 | 553 | ||
@@ -559,6 +565,8 @@ void ieee80211_stop_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u8 tid) | |||
559 | struct sta_info *sta; | 565 | struct sta_info *sta; |
560 | u8 *state; | 566 | u8 *state; |
561 | 567 | ||
568 | trace_api_stop_tx_ba_cb(sdata, ra, tid); | ||
569 | |||
562 | if (tid >= STA_TID_NUM) { | 570 | if (tid >= STA_TID_NUM) { |
563 | #ifdef CONFIG_MAC80211_HT_DEBUG | 571 | #ifdef CONFIG_MAC80211_HT_DEBUG |
564 | printk(KERN_DEBUG "Bad TID value: tid = %d (>= %d)\n", | 572 | printk(KERN_DEBUG "Bad TID value: tid = %d (>= %d)\n", |
@@ -675,7 +683,7 @@ void ieee80211_process_addba_resp(struct ieee80211_local *local, | |||
675 | del_timer(&sta->ampdu_mlme.tid_tx[tid]->addba_resp_timer); | 683 | del_timer(&sta->ampdu_mlme.tid_tx[tid]->addba_resp_timer); |
676 | 684 | ||
677 | #ifdef CONFIG_MAC80211_HT_DEBUG | 685 | #ifdef CONFIG_MAC80211_HT_DEBUG |
678 | printk(KERN_DEBUG "switched off addBA timer for tid %d \n", tid); | 686 | printk(KERN_DEBUG "switched off addBA timer for tid %d\n", tid); |
679 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | 687 | #endif /* CONFIG_MAC80211_HT_DEBUG */ |
680 | 688 | ||
681 | if (le16_to_cpu(mgmt->u.action.u.addba_resp.status) | 689 | if (le16_to_cpu(mgmt->u.action.u.addba_resp.status) |