diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2014-12-20 17:27:00 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-12-21 16:11:55 +0100 |
commit | 62c3293c554ad0f1bbef6b20eea10551748fc4d0 (patch) | |
tree | b28100fa4b962cc4fd2892f9f9a869b52ca35df4 | |
parent | 598980d33e264a9b49702f84a7c061272ee59853 (diff) |
patches: disable tx status support in mwifiex
This feature is not support with older kernels, just deactivate it.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | patches/collateral-evolutions/network/0011-mac80211-disable-tx-status/mwifiex.patch | 28 |
1 files changed, 28 insertions, 0 deletions
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 new file mode 100644 index 00000000..551ae4e6 --- /dev/null +++ b/patches/collateral-evolutions/network/0011-mac80211-disable-tx-status/mwifiex.patch @@ -0,0 +1,28 @@ +--- a/drivers/net/wireless/mwifiex/main.c ++++ b/drivers/net/wireless/mwifiex/main.c +@@ -659,7 +659,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); +@@ -700,6 +702,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 && +@@ -708,6 +711,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 |