All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hauke Mehrtens <hauke@hauke-m.de>
To: mcgrof@gmail.com
Cc: backports@vger.kernel.org, Hauke Mehrtens <hauke@hauke-m.de>
Subject: [PATCH 10/13] backports: do not access hw_features in wil6210
Date: Fri, 16 Aug 2013 19:26:40 +0200	[thread overview]
Message-ID: <1376674003-5801-10-git-send-email-hauke@hauke-m.de> (raw)
In-Reply-To: <1376674003-5801-1-git-send-email-hauke@hauke-m.de>

wil6210 now uses netdev->hw_features which is not available in all
kernel versions, do not set it then.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 .../drivers_net_wireless_ath_wil6210_netdev.patch          |   12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 patches/collateral-evolutions/network/40-netdev-hw-features/drivers_net_wireless_ath_wil6210_netdev.patch

diff --git a/patches/collateral-evolutions/network/40-netdev-hw-features/drivers_net_wireless_ath_wil6210_netdev.patch b/patches/collateral-evolutions/network/40-netdev-hw-features/drivers_net_wireless_ath_wil6210_netdev.patch
new file mode 100644
index 0000000..5f3e636
--- /dev/null
+++ b/patches/collateral-evolutions/network/40-netdev-hw-features/drivers_net_wireless_ath_wil6210_netdev.patch
@@ -0,0 +1,12 @@
+--- a/drivers/net/wireless/ath/wil6210/netdev.c
++++ b/drivers/net/wireless/ath/wil6210/netdev.c
+@@ -127,7 +127,9 @@ void *wil_if_alloc(struct device *dev, v
+ 
+ 	netdev_attach_ops(ndev, &wil_netdev_ops);
+ 	ndev->ieee80211_ptr = wdev;
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
+ 	ndev->hw_features = NETIF_F_HW_CSUM | NETIF_F_RXCSUM;
++#endif
+ 	ndev->features |= NETIF_F_HW_CSUM | NETIF_F_RXCSUM;
+ 	SET_NETDEV_DEV(ndev, wiphy_dev(wdev->wiphy));
+ 	wdev->netdev = ndev;
-- 
1.7.10.4


  parent reply	other threads:[~2013-08-16 17:27 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-16 17:26 [PATCH 01/13] backports: cw1200 needs get_random_int() exported Hauke Mehrtens
2013-08-16 17:26 ` [PATCH 02/13] backports: fix conditional include of arch_phys_wc_add() Hauke Mehrtens
2013-08-16 19:32   ` Arik Nemtsov
2013-08-18  7:05     ` Arik Nemtsov
2013-08-18 23:04       ` Hauke Mehrtens
2013-08-16 17:26 ` [PATCH 03/13] backports: usb_translate_errors() is needed for < 3.2 Hauke Mehrtens
2013-08-16 17:26 ` [PATCH 04/13] backports: add missing include for is_valid_ether_addr() Hauke Mehrtens
2013-08-16 17:47   ` Johannes Berg
2013-08-16 17:26 ` [PATCH 05/13] backports: do not copy wrong header files for regulators Hauke Mehrtens
2013-08-16 17:26 ` [PATCH 06/13] backports: add hid_alloc_report_buf() Hauke Mehrtens
2013-08-16 17:26 ` [PATCH 07/13] backports: add include/linux/regulator/pfuze100.h Hauke Mehrtens
2013-08-16 17:26 ` [PATCH 08/13] backports: revert the sysfs api change Hauke Mehrtens
2013-08-16 17:35   ` Johannes Berg
2013-08-16 18:04     ` Hauke Mehrtens
2013-08-16 19:22       ` Johannes Berg
2013-08-16 17:26 ` [PATCH 09/13] backports: add some new regulator drivers to default config Hauke Mehrtens
2013-08-16 17:26 ` Hauke Mehrtens [this message]
2013-08-16 17:26 ` [PATCH 11/13] backports: backport pci power save for mwifiex Hauke Mehrtens
2013-08-16 17:26 ` [PATCH 12/13] backports: refresh on next-20130726 Hauke Mehrtens
2013-08-16 17:26 ` [PATCH 13/13] backports: add defconfig for cw1200 Hauke Mehrtens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1376674003-5801-10-git-send-email-hauke@hauke-m.de \
    --to=hauke@hauke-m.de \
    --cc=backports@vger.kernel.org \
    --cc=mcgrof@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.