summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/txrx.c
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2015-11-18 06:59:18 +0100
committerKalle Valo <kvalo@qca.qualcomm.com>2015-11-23 17:12:24 +0200
commite0813d34b553d8335c39b37475f32f1e49271c40 (patch)
tree92d17122404cfdd4239962a14e2f98f5daa52146 /drivers/net/wireless/ath/ath10k/txrx.c
parent8a933964e8a4da3f28b46ac43d2e57eecfd833f6 (diff)
downloadop-kernel-dev-e0813d34b553d8335c39b37475f32f1e49271c40.zip
op-kernel-dev-e0813d34b553d8335c39b37475f32f1e49271c40.tar.gz
ath10k: remove is_offchan
It was wasteful to keep it in the struct. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/txrx.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/txrx.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/txrx.c b/drivers/net/wireless/ath/ath10k/txrx.c
index 6d1105a..9e14c04 100644
--- a/drivers/net/wireless/ath/ath10k/txrx.c
+++ b/drivers/net/wireless/ath/ath10k/txrx.c
@@ -23,7 +23,12 @@
static void ath10k_report_offchan_tx(struct ath10k *ar, struct sk_buff *skb)
{
- if (!ATH10K_SKB_CB(skb)->htt.is_offchan)
+ struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
+
+ if (likely(!(info->flags & IEEE80211_TX_CTL_TX_OFFCHAN)))
+ return;
+
+ if (ath10k_mac_tx_frm_has_freq(ar))
return;
/* If the original wait_for_completion() timed out before
OpenPOWER on IntegriCloud