Skip to content

Commit a9c91ea

Browse files
committed
xr819s: use the proper macro IEEE80211_MAX_AMPDU_BUF_HE
1 parent 64bb53f commit a9c91ea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/net/wireless/xr819s/umac/agg-rx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ void mac80211_process_addba_request(struct ieee80211_local *local,
238238
/* XXX: check own ht delayed BA capability?? */
239239
if (((ba_policy != 1) &&
240240
(!(sta->sta.ht_cap.cap & IEEE80211_HT_CAP_DELAY_BA))) ||
241-
(buf_size > IEEE80211_MAX_AMPDU_BUF)) {
241+
(buf_size > IEEE80211_MAX_AMPDU_BUF_HE)) {
242242
status = WLAN_STATUS_INVALID_QOS_PARAM;
243243
#ifdef CONFIG_XRMAC_HT_DEBUG
244244
if (net_ratelimit())
@@ -251,7 +251,7 @@ void mac80211_process_addba_request(struct ieee80211_local *local,
251251
}
252252
/* determine default buffer size */
253253
if (buf_size == 0)
254-
buf_size = IEEE80211_MAX_AMPDU_BUF;
254+
buf_size = IEEE80211_MAX_AMPDU_BUF_HE;
255255

256256
/* make sure the size doesn't exceed the maximum supported by the hw */
257257
if (buf_size > local->hw.max_rx_aggregation_subframes)

drivers/net/wireless/xr819s/umac/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,8 @@ struct ieee80211_hw *xr_mac80211_alloc_hw(size_t priv_data_len,
792792
local->hw.queues = 1;
793793
local->hw.max_rates = 1;
794794
local->hw.max_report_rates = 0;
795-
local->hw.max_rx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF;
796-
local->hw.max_tx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF;
795+
local->hw.max_rx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HE;
796+
local->hw.max_tx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HE;
797797
local->hw.offchannel_tx_hw_queue = IEEE80211_INVAL_HW_QUEUE;
798798
local->user_power_level = -1;
799799
local->uapsd_queues = IEEE80211_DEFAULT_UAPSD_QUEUES;

0 commit comments

Comments
 (0)