wl12xx: add auto-arp support
[pandora-kernel.git] / drivers / net / wireless / wl12xx / init.c
index 7949d34..0392e37 100644 (file)
@@ -102,6 +102,13 @@ int wl1271_init_templates_config(struct wl1271 *wl)
        if (ret < 0)
                return ret;
 
+       ret = wl1271_cmd_template_set(wl, CMD_TEMPL_ARP_RSP, NULL,
+                                     sizeof
+                                     (struct wl12xx_arp_rsp_template),
+                                     0, WL1271_RATE_AUTOMATIC);
+       if (ret < 0)
+               return ret;
+
        for (i = 0; i < CMD_TEMPL_KLV_IDX_MAX; i++) {
                ret = wl1271_cmd_template_set(wl, CMD_TEMPL_KLV, NULL,
                                              WL1271_CMD_TEMPL_MAX_SIZE, i,