Permalink
Browse files

wl18xx: use vif-init HW op setting netdev features (INTERNAL)

Use the vif_init op in the 18xx family to indicate support for
Tx HW-checksum in the netdev features.

Note: will be replaced with a HW init op

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information...
1 parent f71796f commit 6ad429fedca597c04c078833d4f19a90662e1c48 @ariknem ariknem committed Dec 13, 2011
Showing with 11 additions and 0 deletions.
  1. +11 −0 drivers/net/wireless/ti/wl18xx/main.c
View
11 drivers/net/wireless/ti/wl18xx/main.c
@@ -1293,6 +1293,16 @@ static u32 wl18xx_pre_pkt_send(struct wl1271 *wl,
return buf_offset;
}
+static int wl18xx_init_vif(struct wl1271* wl, struct wl12xx_vif *wlvif)
+{
+ struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif);
+
+ if (vif && checksum_param)
+ ieee80211_set_netdev_features(vif, NETIF_F_IP_CSUM);
+
+ return 0;
+}
+
static struct wlcore_ops wl18xx_ops = {
.identify_chip = wl18xx_identify_chip,
.boot = wl18xx_boot,
@@ -1318,6 +1328,7 @@ static struct wlcore_ops wl18xx_ops = {
.get_spare_blocks = wl18xx_get_spare_blocks,
.set_key = wl18xx_set_key,
.pre_pkt_send = wl18xx_pre_pkt_send,
+ .init_vif = wl18xx_init_vif,
};
/* HT cap appropriate for wide channels in 2Ghz */

0 comments on commit 6ad429f

Please sign in to comment.