aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 091ac0d634a5..07686bda26cd 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -329,7 +329,7 @@ __le16 ieee80211_generic_frame_duration(struct ieee80211_hw *hw, int if_id,
329 sdata = IEEE80211_DEV_TO_SUB_IF(bdev); 329 sdata = IEEE80211_DEV_TO_SUB_IF(bdev);
330 erp = ieee80211_is_erp_rate(hw->conf.phymode, rate); 330 erp = ieee80211_is_erp_rate(hw->conf.phymode, rate);
331 dur = ieee80211_frame_duration(local, frame_len, rate, 331 dur = ieee80211_frame_duration(local, frame_len, rate,
332 erp, sdata->short_preamble); 332 erp, sdata->flags & IEEE80211_SDATA_SHORT_PREAMBLE);
333 333
334 dev_put(bdev); 334 dev_put(bdev);
335 return cpu_to_le16(dur); 335 return cpu_to_le16(dur);
@@ -352,7 +352,7 @@ __le16 ieee80211_rts_duration(struct ieee80211_hw *hw, int if_id,
352 return 0; 352 return 0;
353 353
354 sdata = IEEE80211_DEV_TO_SUB_IF(bdev); 354 sdata = IEEE80211_DEV_TO_SUB_IF(bdev);
355 short_preamble = sdata->short_preamble; 355 short_preamble = sdata->flags & IEEE80211_SDATA_SHORT_PREAMBLE;
356 356
357 rate = frame_txctl->rts_rate; 357 rate = frame_txctl->rts_rate;
358 erp = !!(rate->flags & IEEE80211_RATE_ERP); 358 erp = !!(rate->flags & IEEE80211_RATE_ERP);
@@ -388,7 +388,7 @@ __le16 ieee80211_ctstoself_duration(struct ieee80211_hw *hw, int if_id,
388 return 0; 388 return 0;
389 389
390 sdata = IEEE80211_DEV_TO_SUB_IF(bdev); 390 sdata = IEEE80211_DEV_TO_SUB_IF(bdev);
391 short_preamble = sdata->short_preamble; 391 short_preamble = sdata->flags & IEEE80211_SDATA_SHORT_PREAMBLE;
392 392
393 rate = frame_txctl->rts_rate; 393 rate = frame_txctl->rts_rate;
394 erp = !!(rate->flags & IEEE80211_RATE_ERP); 394 erp = !!(rate->flags & IEEE80211_RATE_ERP);