summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@frijolero.org>2012-03-14 16:13:39 -0700
committerLuis R. Rodriguez <mcgrof@frijolero.org>2012-03-14 16:13:39 -0700
commitc21050e01f968495d24d10102ccde949dc35c7e9 (patch)
tree2dd4cabba61fb35bbc5055129f2eb4788946201f
parentf3e8d285fdf48589fcb0b628ea0449ee8a82ab67 (diff)
compat-wireless: fix patches/40-netdev-hw-features.patch
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
-rw-r--r--patches/40-netdev-hw-features.patch14
1 files changed, 6 insertions, 8 deletions
diff --git a/patches/40-netdev-hw-features.patch b/patches/40-netdev-hw-features.patch
index 981336c1..5d6f3312 100644
--- a/patches/40-netdev-hw-features.patch
+++ b/patches/40-netdev-hw-features.patch
@@ -358,17 +358,15 @@ Date: Thu Apr 7 07:32:18 2011 +0000
.ndo_set_rx_mode = ath6kl_set_multicast_list,
};
---- a/drivers/net/wireless/ath/ath6kl/core.c
-+++ b/drivers/net/wireless/ath/ath6kl/core.c
-@@ -173,7 +173,11 @@ int ath6kl_core_init(struct ath6kl *ar)
-
- set_bit(FIRST_BOOT, &ar->flag);
+@@ -1210,7 +1214,11 @@ void init_netdev(struct net_device *dev)
+ sizeof(struct wmi_data_hdr) + HTC_HDR_LENGTH
+ + WMI_MAX_TX_META_SZ + ATH6KL_HTC_ALIGN_BYTES;
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
- ndev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_RXCSUM;
+ dev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_RXCSUM;
+#else
+ ndev->features |= NETIF_F_IP_CSUM;
+#endif
- ret = ath6kl_init_hw_start(ar);
- if (ret) {
+ return;
+ }