diff options
Diffstat (limited to 'net/mac80211/agg-tx.c')
-rw-r--r-- | net/mac80211/agg-tx.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c index 87782a4bb541..c163d0a149f4 100644 --- a/net/mac80211/agg-tx.c +++ b/net/mac80211/agg-tx.c | |||
@@ -186,7 +186,7 @@ static void sta_addba_resp_timer_expired(unsigned long data) | |||
186 | spin_unlock_bh(&sta->lock); | 186 | spin_unlock_bh(&sta->lock); |
187 | #ifdef CONFIG_MAC80211_HT_DEBUG | 187 | #ifdef CONFIG_MAC80211_HT_DEBUG |
188 | printk(KERN_DEBUG "timer expired on tid %d but we are not " | 188 | printk(KERN_DEBUG "timer expired on tid %d but we are not " |
189 | "(or no longer) expecting addBA response there", | 189 | "(or no longer) expecting addBA response there\n", |
190 | tid); | 190 | tid); |
191 | #endif | 191 | #endif |
192 | return; | 192 | return; |
@@ -214,6 +214,8 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid) | |||
214 | int ret = 0; | 214 | int ret = 0; |
215 | u16 start_seq_num; | 215 | u16 start_seq_num; |
216 | 216 | ||
217 | trace_api_start_tx_ba_session(pubsta, tid); | ||
218 | |||
217 | if (WARN_ON(!local->ops->ampdu_action)) | 219 | if (WARN_ON(!local->ops->ampdu_action)) |
218 | return -EINVAL; | 220 | return -EINVAL; |
219 | 221 | ||
@@ -245,7 +247,7 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid) | |||
245 | return -EINVAL; | 247 | return -EINVAL; |
246 | } | 248 | } |
247 | 249 | ||
248 | if (test_sta_flags(sta, WLAN_STA_SUSPEND)) { | 250 | if (test_sta_flags(sta, WLAN_STA_BLOCK_BA)) { |
249 | #ifdef CONFIG_MAC80211_HT_DEBUG | 251 | #ifdef CONFIG_MAC80211_HT_DEBUG |
250 | printk(KERN_DEBUG "Suspend in progress. " | 252 | printk(KERN_DEBUG "Suspend in progress. " |
251 | "Denying BA session request\n"); | 253 | "Denying BA session request\n"); |
@@ -414,7 +416,7 @@ static void ieee80211_agg_tx_operational(struct ieee80211_local *local, | |||
414 | struct sta_info *sta, u16 tid) | 416 | struct sta_info *sta, u16 tid) |
415 | { | 417 | { |
416 | #ifdef CONFIG_MAC80211_HT_DEBUG | 418 | #ifdef CONFIG_MAC80211_HT_DEBUG |
417 | printk(KERN_DEBUG "Aggregation is on for tid %d \n", tid); | 419 | printk(KERN_DEBUG "Aggregation is on for tid %d\n", tid); |
418 | #endif | 420 | #endif |
419 | 421 | ||
420 | spin_lock(&local->ampdu_lock); | 422 | spin_lock(&local->ampdu_lock); |
@@ -440,6 +442,8 @@ void ieee80211_start_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u16 tid) | |||
440 | struct sta_info *sta; | 442 | struct sta_info *sta; |
441 | u8 *state; | 443 | u8 *state; |
442 | 444 | ||
445 | trace_api_start_tx_ba_cb(sdata, ra, tid); | ||
446 | |||
443 | if (tid >= STA_TID_NUM) { | 447 | if (tid >= STA_TID_NUM) { |
444 | #ifdef CONFIG_MAC80211_HT_DEBUG | 448 | #ifdef CONFIG_MAC80211_HT_DEBUG |
445 | printk(KERN_DEBUG "Bad TID value: tid = %d (>= %d)\n", | 449 | printk(KERN_DEBUG "Bad TID value: tid = %d (>= %d)\n", |
@@ -541,6 +545,8 @@ int ieee80211_stop_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, | |||
541 | struct ieee80211_sub_if_data *sdata = sta->sdata; | 545 | struct ieee80211_sub_if_data *sdata = sta->sdata; |
542 | struct ieee80211_local *local = sdata->local; | 546 | struct ieee80211_local *local = sdata->local; |
543 | 547 | ||
548 | trace_api_stop_tx_ba_session(pubsta, tid, initiator); | ||
549 | |||
544 | if (!local->ops->ampdu_action) | 550 | if (!local->ops->ampdu_action) |
545 | return -EINVAL; | 551 | return -EINVAL; |
546 | 552 | ||
@@ -558,6 +564,8 @@ void ieee80211_stop_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u8 tid) | |||
558 | struct sta_info *sta; | 564 | struct sta_info *sta; |
559 | u8 *state; | 565 | u8 *state; |
560 | 566 | ||
567 | trace_api_stop_tx_ba_cb(sdata, ra, tid); | ||
568 | |||
561 | if (tid >= STA_TID_NUM) { | 569 | if (tid >= STA_TID_NUM) { |
562 | #ifdef CONFIG_MAC80211_HT_DEBUG | 570 | #ifdef CONFIG_MAC80211_HT_DEBUG |
563 | printk(KERN_DEBUG "Bad TID value: tid = %d (>= %d)\n", | 571 | printk(KERN_DEBUG "Bad TID value: tid = %d (>= %d)\n", |
@@ -674,7 +682,7 @@ void ieee80211_process_addba_resp(struct ieee80211_local *local, | |||
674 | del_timer(&sta->ampdu_mlme.tid_tx[tid]->addba_resp_timer); | 682 | del_timer(&sta->ampdu_mlme.tid_tx[tid]->addba_resp_timer); |
675 | 683 | ||
676 | #ifdef CONFIG_MAC80211_HT_DEBUG | 684 | #ifdef CONFIG_MAC80211_HT_DEBUG |
677 | printk(KERN_DEBUG "switched off addBA timer for tid %d \n", tid); | 685 | printk(KERN_DEBUG "switched off addBA timer for tid %d\n", tid); |
678 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | 686 | #endif /* CONFIG_MAC80211_HT_DEBUG */ |
679 | 687 | ||
680 | if (le16_to_cpu(mgmt->u.action.u.addba_resp.status) | 688 | if (le16_to_cpu(mgmt->u.action.u.addba_resp.status) |