linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 015-mac80211-tx-info-skb-cb.patch
@ 2008-05-08 13:03 Ivo van Doorn
  2008-05-08 14:43 ` 015-mac80211-tx-info-skb-cb.patch Johannes Berg
  0 siblings, 1 reply; 8+ messages in thread
From: Ivo van Doorn @ 2008-05-08 13:03 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

Hi Johannes,

The following patch is intended to be ontop or integrated into your patch:
http://johannes.sipsolutions.net/patches/kernel/all/LATEST/015-mac80211-tx-info-skb-cb.patch
This fixes a compilation error when mac80211 debug output is disabled.

Ivo
---
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 3b3592f..50edc9d 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -223,10 +223,9 @@ static ieee80211_tx_result
 ieee80211_tx_h_check_assoc(struct ieee80211_tx_data *tx)
 {
 #ifdef CONFIG_MAC80211_VERBOSE_DEBUG
-	struct sk_buff *skb = tx->skb;
-	struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
+	struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) tx->skb->data;
 #endif /* CONFIG_MAC80211_VERBOSE_DEBUG */
-	struct ieee80211_tx_info *info = (void *)skb->cb;
+	struct ieee80211_tx_info *info = (void *)tx->skb->cb;
 	u32 sta_flags;
 
 	if (unlikely(info->flags & IEEE80211_TX_CTL_INJECTED))

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-05-08 15:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-08 13:03 015-mac80211-tx-info-skb-cb.patch Ivo van Doorn
2008-05-08 14:43 ` 015-mac80211-tx-info-skb-cb.patch Johannes Berg
2008-05-08 14:57   ` 015-mac80211-tx-info-skb-cb.patch Ivo van Doorn
2008-05-08 14:50     ` 015-mac80211-tx-info-skb-cb.patch Johannes Berg
2008-05-08 15:10       ` 015-mac80211-tx-info-skb-cb.patch Ivo van Doorn
2008-05-08 15:05         ` 015-mac80211-tx-info-skb-cb.patch Johannes Berg
2008-05-08 15:34           ` 015-mac80211-tx-info-skb-cb.patch Ivo van Doorn
2008-05-08 15:28             ` 015-mac80211-tx-info-skb-cb.patch Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).