From b38999b42636f20da4c5398073d0378302240651 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 19 Aug 2013 01:37:54 +0200 Subject: [PATCH] backports: do not access hw_features in wil6210 wil6210 now uses netdev->hw_features which is not available in all kernel versions, do not set it then. Signed-off-by: Hauke Mehrtens Signed-off-by: Luis R. Rodriguez --- .../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 000000000000..5f3e6362740e --- /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; -- 2.30.2