diff options
author | Ron Rindjunsky <ron.rindjunsky@intel.com> | 2008-04-07 13:16:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-08 16:44:44 -0400 |
commit | 513a1025fd91008316a8e9b4803d1bfcbb2bf256 (patch) | |
tree | 8f39f9459932b1ec0da1e14b5c6d58a8d39422b6 /net/mac80211/ieee80211.c | |
parent | 8cf6a31e8d30cae1fbec8c782842f00472a4495c (diff) |
mac80211: BA session debug prints changes
This patch contains next issues:
1 - prevents "stop BA session" multiple warnings
2 - adds debug print to stop Rx BA session flow
3 - adds EOL in one debug print
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211.c')
-rw-r--r-- | net/mac80211/ieee80211.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index 5d30dd463f22..b3cf69edeed9 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c | |||
@@ -700,11 +700,6 @@ int ieee80211_stop_tx_ba_session(struct ieee80211_hw *hw, | |||
700 | if (tid >= STA_TID_NUM) | 700 | if (tid >= STA_TID_NUM) |
701 | return -EINVAL; | 701 | return -EINVAL; |
702 | 702 | ||
703 | #ifdef CONFIG_MAC80211_HT_DEBUG | ||
704 | printk(KERN_DEBUG "Stop a BA session requested for %s tid %u\n", | ||
705 | print_mac(mac, ra), tid); | ||
706 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | ||
707 | |||
708 | rcu_read_lock(); | 703 | rcu_read_lock(); |
709 | sta = sta_info_get(local, ra); | 704 | sta = sta_info_get(local, ra); |
710 | if (!sta) { | 705 | if (!sta) { |
@@ -717,14 +712,15 @@ int ieee80211_stop_tx_ba_session(struct ieee80211_hw *hw, | |||
717 | spin_lock_bh(&sta->ampdu_mlme.ampdu_tx); | 712 | spin_lock_bh(&sta->ampdu_mlme.ampdu_tx); |
718 | 713 | ||
719 | if (*state != HT_AGG_STATE_OPERATIONAL) { | 714 | if (*state != HT_AGG_STATE_OPERATIONAL) { |
720 | #ifdef CONFIG_MAC80211_HT_DEBUG | ||
721 | printk(KERN_DEBUG "Try to stop Tx aggregation on" | ||
722 | " non active TID\n"); | ||
723 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | ||
724 | ret = -ENOENT; | 715 | ret = -ENOENT; |
725 | goto stop_BA_exit; | 716 | goto stop_BA_exit; |
726 | } | 717 | } |
727 | 718 | ||
719 | #ifdef CONFIG_MAC80211_HT_DEBUG | ||
720 | printk(KERN_DEBUG "Tx BA session stop requested for %s tid %u\n", | ||
721 | print_mac(mac, ra), tid); | ||
722 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | ||
723 | |||
728 | ieee80211_stop_queue(hw, sta->tid_to_tx_q[tid]); | 724 | ieee80211_stop_queue(hw, sta->tid_to_tx_q[tid]); |
729 | 725 | ||
730 | *state = HT_AGG_STATE_REQ_STOP_BA_MSK | | 726 | *state = HT_AGG_STATE_REQ_STOP_BA_MSK | |
@@ -809,8 +805,10 @@ void ieee80211_stop_tx_ba_cb(struct ieee80211_hw *hw, u8 *ra, u8 tid) | |||
809 | return; | 805 | return; |
810 | } | 806 | } |
811 | 807 | ||
812 | printk(KERN_DEBUG "Stop a BA session requested on DA %s tid %d\n", | 808 | #ifdef CONFIG_MAC80211_HT_DEBUG |
809 | printk(KERN_DEBUG "Stopping Tx BA session for %s tid %d\n", | ||
813 | print_mac(mac, ra), tid); | 810 | print_mac(mac, ra), tid); |
811 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | ||
814 | 812 | ||
815 | rcu_read_lock(); | 813 | rcu_read_lock(); |
816 | sta = sta_info_get(local, ra); | 814 | sta = sta_info_get(local, ra); |