diff options
Diffstat (limited to 'net/mac80211/agg-tx.c')
| -rw-r--r-- | net/mac80211/agg-tx.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c index 3195a6307f50..eb9df22418f0 100644 --- a/net/mac80211/agg-tx.c +++ b/net/mac80211/agg-tx.c | |||
| @@ -445,10 +445,10 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, | |||
| 445 | 445 | ||
| 446 | trace_api_start_tx_ba_session(pubsta, tid); | 446 | trace_api_start_tx_ba_session(pubsta, tid); |
| 447 | 447 | ||
| 448 | if (WARN_ON(!local->ops->ampdu_action)) | 448 | if (WARN_ON_ONCE(!local->ops->ampdu_action)) |
| 449 | return -EINVAL; | 449 | return -EINVAL; |
| 450 | 450 | ||
| 451 | if ((tid >= STA_TID_NUM) || | 451 | if ((tid >= IEEE80211_NUM_TIDS) || |
| 452 | !(local->hw.flags & IEEE80211_HW_AMPDU_AGGREGATION) || | 452 | !(local->hw.flags & IEEE80211_HW_AMPDU_AGGREGATION) || |
| 453 | (local->hw.flags & IEEE80211_HW_TX_AMPDU_SETUP_IN_HW)) | 453 | (local->hw.flags & IEEE80211_HW_TX_AMPDU_SETUP_IN_HW)) |
| 454 | return -EINVAL; | 454 | return -EINVAL; |
| @@ -605,9 +605,9 @@ void ieee80211_start_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u16 tid) | |||
| 605 | 605 | ||
| 606 | trace_api_start_tx_ba_cb(sdata, ra, tid); | 606 | trace_api_start_tx_ba_cb(sdata, ra, tid); |
| 607 | 607 | ||
| 608 | if (tid >= STA_TID_NUM) { | 608 | if (tid >= IEEE80211_NUM_TIDS) { |
| 609 | ht_dbg(sdata, "Bad TID value: tid = %d (>= %d)\n", | 609 | ht_dbg(sdata, "Bad TID value: tid = %d (>= %d)\n", |
| 610 | tid, STA_TID_NUM); | 610 | tid, IEEE80211_NUM_TIDS); |
| 611 | return; | 611 | return; |
| 612 | } | 612 | } |
| 613 | 613 | ||
| @@ -687,7 +687,7 @@ int ieee80211_stop_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid) | |||
| 687 | if (!local->ops->ampdu_action) | 687 | if (!local->ops->ampdu_action) |
| 688 | return -EINVAL; | 688 | return -EINVAL; |
| 689 | 689 | ||
| 690 | if (tid >= STA_TID_NUM) | 690 | if (tid >= IEEE80211_NUM_TIDS) |
| 691 | return -EINVAL; | 691 | return -EINVAL; |
| 692 | 692 | ||
| 693 | spin_lock_bh(&sta->lock); | 693 | spin_lock_bh(&sta->lock); |
| @@ -722,9 +722,9 @@ void ieee80211_stop_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u8 tid) | |||
| 722 | 722 | ||
| 723 | trace_api_stop_tx_ba_cb(sdata, ra, tid); | 723 | trace_api_stop_tx_ba_cb(sdata, ra, tid); |
| 724 | 724 | ||
| 725 | if (tid >= STA_TID_NUM) { | 725 | if (tid >= IEEE80211_NUM_TIDS) { |
| 726 | ht_dbg(sdata, "Bad TID value: tid = %d (>= %d)\n", | 726 | ht_dbg(sdata, "Bad TID value: tid = %d (>= %d)\n", |
| 727 | tid, STA_TID_NUM); | 727 | tid, IEEE80211_NUM_TIDS); |
| 728 | return; | 728 | return; |
| 729 | } | 729 | } |
| 730 | 730 | ||
