提交 4705b703 编写于 作者: V Vasanthakumar Thiagarajan 提交者: Kalle Valo

ath6kl: Initialize netdev hw_features for every interface

Move netdev->hw_features setting from ath6kl_core_init() to
init_netdev() so that it is done for every interface.
Signed-off-by: NVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 f2afdac7
...@@ -156,8 +156,6 @@ int ath6kl_core_init(struct ath6kl *ar) ...@@ -156,8 +156,6 @@ int ath6kl_core_init(struct ath6kl *ar)
set_bit(FIRST_BOOT, &ar->flag); set_bit(FIRST_BOOT, &ar->flag);
ndev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_RXCSUM;
ret = ath6kl_init_hw_start(ar); ret = ath6kl_init_hw_start(ar);
if (ret) { if (ret) {
ath6kl_err("Failed to start hardware: %d\n", ret); ath6kl_err("Failed to start hardware: %d\n", ret);
......
...@@ -1212,5 +1212,7 @@ void init_netdev(struct net_device *dev) ...@@ -1212,5 +1212,7 @@ void init_netdev(struct net_device *dev)
sizeof(struct wmi_data_hdr) + HTC_HDR_LENGTH sizeof(struct wmi_data_hdr) + HTC_HDR_LENGTH
+ WMI_MAX_TX_META_SZ + ATH6KL_HTC_ALIGN_BYTES; + WMI_MAX_TX_META_SZ + ATH6KL_HTC_ALIGN_BYTES;
dev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_RXCSUM;
return; return;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册