wl12xx: init CMD_TEMPL_KLV to sizeof(ieee80211_qos_hdr)
The keep alive template should have a max size of sizeof(struct ieee80211_qos_hdr). Additionally, Remove the redundant wl12xx_qos_null_data_template struct. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
This commit is contained in:
committed by
Luciano Coelho
parent
9c1b190b10
commit
97127e6721
@@ -65,7 +65,7 @@ int wl1271_init_templates_config(struct wl1271 *wl)
|
|||||||
|
|
||||||
ret = wl1271_cmd_template_set(wl, CMD_TEMPL_QOS_NULL_DATA, NULL,
|
ret = wl1271_cmd_template_set(wl, CMD_TEMPL_QOS_NULL_DATA, NULL,
|
||||||
sizeof
|
sizeof
|
||||||
(struct wl12xx_qos_null_data_template),
|
(struct ieee80211_qos_hdr),
|
||||||
0, WL1271_RATE_AUTOMATIC);
|
0, WL1271_RATE_AUTOMATIC);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
@@ -114,8 +114,8 @@ int wl1271_init_templates_config(struct wl1271 *wl)
|
|||||||
|
|
||||||
for (i = 0; i < CMD_TEMPL_KLV_IDX_MAX; i++) {
|
for (i = 0; i < CMD_TEMPL_KLV_IDX_MAX; i++) {
|
||||||
ret = wl1271_cmd_template_set(wl, CMD_TEMPL_KLV, NULL,
|
ret = wl1271_cmd_template_set(wl, CMD_TEMPL_KLV, NULL,
|
||||||
WL1271_CMD_TEMPL_DFLT_SIZE, i,
|
sizeof(struct ieee80211_qos_hdr),
|
||||||
WL1271_RATE_AUTOMATIC);
|
i, WL1271_RATE_AUTOMATIC);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@@ -116,11 +116,6 @@ struct wl12xx_ps_poll_template {
|
|||||||
u8 ta[ETH_ALEN];
|
u8 ta[ETH_ALEN];
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
struct wl12xx_qos_null_data_template {
|
|
||||||
struct ieee80211_header header;
|
|
||||||
__le16 qos_ctl;
|
|
||||||
} __packed;
|
|
||||||
|
|
||||||
struct wl12xx_arp_rsp_template {
|
struct wl12xx_arp_rsp_template {
|
||||||
struct ieee80211_hdr_3addr hdr;
|
struct ieee80211_hdr_3addr hdr;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user