From: Luis R. Rodriguez Date: Wed, 14 Mar 2012 23:13:39 +0000 (-0700) Subject: compat-wireless: fix patches/40-netdev-hw-features.patch X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c21050e01f968495d24d10102ccde949dc35c7e9;p=openwrt%2Fstaging%2Fblogic.git compat-wireless: fix patches/40-netdev-hw-features.patch Signed-off-by: Luis R. Rodriguez --- diff --git a/patches/40-netdev-hw-features.patch b/patches/40-netdev-hw-features.patch index 981336c1c6db..5d6f3312b768 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; + }