|
@@ -53,6 +53,7 @@ static int wl1271_init_hwenc_config(struct wl1271 *wl)
|
|
|
int wl1271_init_templates_config(struct wl1271 *wl)
|
|
|
{
|
|
|
int ret, i;
|
|
|
+ size_t size;
|
|
|
|
|
|
/* send empty templates for fw memory reservation */
|
|
|
ret = wl1271_cmd_template_set(wl, CMD_TEMPL_CFG_PROBE_REQ_2_4, NULL,
|
|
@@ -61,14 +62,12 @@ int wl1271_init_templates_config(struct wl1271 *wl)
|
|
|
if (ret < 0)
|
|
|
return ret;
|
|
|
|
|
|
- if (wl->enable_11a) {
|
|
|
- size_t size = sizeof(struct wl12xx_probe_req_template);
|
|
|
- ret = wl1271_cmd_template_set(wl, CMD_TEMPL_CFG_PROBE_REQ_5,
|
|
|
- NULL, size, 0,
|
|
|
- WL1271_RATE_AUTOMATIC);
|
|
|
- if (ret < 0)
|
|
|
- return ret;
|
|
|
- }
|
|
|
+ size = sizeof(struct wl12xx_probe_req_template);
|
|
|
+ ret = wl1271_cmd_template_set(wl, CMD_TEMPL_CFG_PROBE_REQ_5,
|
|
|
+ NULL, size, 0,
|
|
|
+ WL1271_RATE_AUTOMATIC);
|
|
|
+ if (ret < 0)
|
|
|
+ return ret;
|
|
|
|
|
|
ret = wl1271_cmd_template_set(wl, CMD_TEMPL_NULL_DATA, NULL,
|
|
|
sizeof(struct wl12xx_null_data_template),
|