diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-01-30 18:23:25 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2015-02-22 01:59:49 +0100 |
commit | 2df2cd84909468744ffc153b5b2eee70b384ce3a (patch) | |
tree | 041c36bf4e47e82080ec081b0a89c838a662df27 /patches/collateral-evolutions | |
parent | ccbd503ca0e6c23d8627058683be2d8635c68bfc (diff) |
backports: remove patches for SKBTX_WIFI_STATUS
The tx_flags haven't been a union since 2.6.37, so since we
no longer support that kernel the '&' operation will now be
possible on all supported kernels. Use that fact to get rid
of the patch by defining SKBTX_WIFI_STATUS to 0 so the code
also disappears, but doesn't have to be patched.
While at it, clean up a double #if.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'patches/collateral-evolutions')
3 files changed, 0 insertions, 52 deletions
diff --git a/patches/collateral-evolutions/network/0011-mac80211-disable-tx-status/INFO b/patches/collateral-evolutions/network/0011-mac80211-disable-tx-status/INFO deleted file mode 100644 index 760ed440..00000000 --- a/patches/collateral-evolutions/network/0011-mac80211-disable-tx-status/INFO +++ /dev/null @@ -1,6 +0,0 @@ -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. - - diff --git a/patches/collateral-evolutions/network/0011-mac80211-disable-tx-status/mwifiex.patch b/patches/collateral-evolutions/network/0011-mac80211-disable-tx-status/mwifiex.patch deleted file mode 100644 index 6646f3e0..00000000 --- a/patches/collateral-evolutions/network/0011-mac80211-disable-tx-status/mwifiex.patch +++ /dev/null @@ -1,28 +0,0 @@ ---- a/drivers/net/wireless/mwifiex/main.c -+++ b/drivers/net/wireless/mwifiex/main.c -@@ -660,7 +660,9 @@ mwifiex_hard_start_xmit(struct sk_buff * - struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev); - struct sk_buff *new_skb; - struct mwifiex_txinfo *tx_info; -+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)) - bool multicast; -+#endif - - dev_dbg(priv->adapter->dev, "data: %lu BSS(%d-%d): Data <= kernel\n", - jiffies, priv->bss_type, priv->bss_num); -@@ -701,6 +703,7 @@ mwifiex_hard_start_xmit(struct sk_buff * - tx_info->bss_type = priv->bss_type; - tx_info->pkt_len = skb->len; - -+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)) - multicast = is_multicast_ether_addr(skb->data); - - if (unlikely(!multicast && skb->sk && -@@ -709,6 +712,7 @@ mwifiex_hard_start_xmit(struct sk_buff * - skb = mwifiex_clone_skb_for_tx_status(priv, - skb, - MWIFIEX_BUF_FLAG_EAPOL_TX_STATUS, NULL); -+#endif - - /* Record the current time the packet was queued; used to - * determine the amount of time the packet was queued in diff --git a/patches/collateral-evolutions/network/0011-mac80211-disable-tx-status/net_mac80211_tx.patch b/patches/collateral-evolutions/network/0011-mac80211-disable-tx-status/net_mac80211_tx.patch deleted file mode 100644 index 5f9228bc..00000000 --- a/patches/collateral-evolutions/network/0011-mac80211-disable-tx-status/net_mac80211_tx.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/net/mac80211/tx.c -+++ b/net/mac80211/tx.c -@@ -2093,6 +2093,7 @@ static struct sk_buff *ieee80211_build_h - goto free; - } - -+#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 *ack_skb = skb_clone_sk(skb); -@@ -2114,6 +2115,7 @@ static struct sk_buff *ieee80211_build_h - } - } - } -+#endif - - /* - * If the skb is shared we need to obtain our own copy. |