* [PATCH 1/2] compat-wireless: disable SKB TX status stamping in mac80211
@ 2011-11-14 16:14 Johannes Berg
2011-11-14 16:58 ` [PATCH 2/2] compat: add skb_complete_wifi_ack & feature flag Johannes Berg
2011-11-14 20:39 ` [PATCH 1/2] compat-wireless: disable SKB TX status stamping in mac80211 Luis R. Rodriguez
0 siblings, 2 replies; 4+ messages in thread
From: Johannes Berg @ 2011-11-14 16:14 UTC (permalink / raw)
To: Luis R. Rodriguez; +Cc: Hauke Mehrtens, linux-wireless
From: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
diff --git a/patches/12-mac80211-disable-tx-status.patch b/patches/12-mac80211-disable-tx-status.patch
new file mode 100644
index 0000000..522cb8c
--- /dev/null
+++ b/patches/12-mac80211-disable-tx-status.patch
@@ -0,0 +1,24 @@
+We can't possibly backport the wifi TX status since
+skb_shinfo()->tx_flags used to be a union and there
+is no way to make the & work properly in that case.
+So we need to just ifdef this part out.
+
+
+--- a/net/mac80211/tx.c 2011-11-14 16:46:04.000000000 +0100
++++ b/net/mac80211/tx.c 2011-11-14 17:04:09.000000000 +0100
+@@ -1915,6 +1915,7 @@ netdev_tx_t ieee80211_subif_start_xmit(s
+ goto fail;
+ }
+
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
+ if (unlikely(!multicast && skb->sk &&
+ skb_shinfo(skb)->tx_flags & SKBTX_WIFI_STATUS)) {
+ struct sk_buff *orig_skb = skb;
+@@ -1953,6 +1954,7 @@ netdev_tx_t ieee80211_subif_start_xmit(s
+ skb = orig_skb;
+ }
+ }
++#endif
+
+ /*
+ * If the skb is shared we need to obtain our own copy.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] compat: add skb_complete_wifi_ack & feature flag
2011-11-14 16:14 [PATCH 1/2] compat-wireless: disable SKB TX status stamping in mac80211 Johannes Berg
@ 2011-11-14 16:58 ` Johannes Berg
2011-11-14 20:39 ` Luis R. Rodriguez
2011-11-14 20:39 ` [PATCH 1/2] compat-wireless: disable SKB TX status stamping in mac80211 Luis R. Rodriguez
1 sibling, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2011-11-14 16:58 UTC (permalink / raw)
To: Luis R. Rodriguez; +Cc: Hauke Mehrtens, linux-wireless
This just needs to be empty -- older kernels don't
have the necessary infrastructure for this.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
diff --git a/include/linux/compat-2.6.h b/include/linux/compat-2.6.h
index d933602..c23e94a 100644
--- a/include/linux/compat-2.6.h
+++ b/include/linux/compat-2.6.h
@@ -35,5 +35,6 @@
#include <linux/compat-3.0.h>
#include <linux/compat-3.1.h>
#include <linux/compat-3.2.h>
+#include <linux/compat-3.3.h>
#endif /* LINUX_26_COMPAT_H */
diff --git a/include/linux/compat-3.3.h b/include/linux/compat-3.3.h
new file mode 100644
index 0000000..2e1e6d3
--- /dev/null
+++ b/include/linux/compat-3.3.h
@@ -0,0 +1,20 @@
+#ifndef LINUX_3_3_COMPAT_H
+#define LINUX_3_3_COMPAT_H
+
+#include <linux/version.h>
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0))
+
+/* include to override NL80211_FEATURE_SK_TX_STATUS */
+#include <linux/nl80211.h>
+
+
+static inline void skb_complete_wifi_ack(struct sk_buff *skb, bool acked)
+{
+ WARN_ON(1);
+}
+#define NL80211_FEATURE_SK_TX_STATUS 0
+
+#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)) */
+
+#endif /* LINUX_3_3_COMPAT_H */
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] compat: add skb_complete_wifi_ack & feature flag
2011-11-14 16:58 ` [PATCH 2/2] compat: add skb_complete_wifi_ack & feature flag Johannes Berg
@ 2011-11-14 20:39 ` Luis R. Rodriguez
0 siblings, 0 replies; 4+ messages in thread
From: Luis R. Rodriguez @ 2011-11-14 20:39 UTC (permalink / raw)
To: Johannes Berg; +Cc: Hauke Mehrtens, linux-wireless
On Mon, Nov 14, 2011 at 8:58 AM, Johannes Berg
<johannes@sipsolutions.net> wrote:
> This just needs to be empty -- older kernels don't
> have the necessary infrastructure for this.
>
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Applied and pushed, thanks!
Luis
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] compat-wireless: disable SKB TX status stamping in mac80211
2011-11-14 16:14 [PATCH 1/2] compat-wireless: disable SKB TX status stamping in mac80211 Johannes Berg
2011-11-14 16:58 ` [PATCH 2/2] compat: add skb_complete_wifi_ack & feature flag Johannes Berg
@ 2011-11-14 20:39 ` Luis R. Rodriguez
1 sibling, 0 replies; 4+ messages in thread
From: Luis R. Rodriguez @ 2011-11-14 20:39 UTC (permalink / raw)
To: Johannes Berg; +Cc: Hauke Mehrtens, linux-wireless
On Mon, Nov 14, 2011 at 8:14 AM, Johannes Berg
<johannes@sipsolutions.net> wrote:
> From: Johannes Berg <johannes.berg@intel.com>
>
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Applied and pushed, thanks!
Luis
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-14 20:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-14 16:14 [PATCH 1/2] compat-wireless: disable SKB TX status stamping in mac80211 Johannes Berg
2011-11-14 16:58 ` [PATCH 2/2] compat: add skb_complete_wifi_ack & feature flag Johannes Berg
2011-11-14 20:39 ` Luis R. Rodriguez
2011-11-14 20:39 ` [PATCH 1/2] compat-wireless: disable SKB TX status stamping in mac80211 Luis R. Rodriguez
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).