backports: do not access hw_features in wil6210
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 18 Aug 2013 23:37:54 +0000 (01:37 +0200)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 27 Aug 2013 18:43:04 +0000 (11:43 -0700)
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>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
patches/collateral-evolutions/network/40-netdev-hw-features/drivers_net_wireless_ath_wil6210_netdev.patch [new file with mode: 0644]

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 (file)
index 0000000..5f3e636
--- /dev/null
@@ -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;