diff options
author | Eliad Peller <eliad@wizery.com> | 2011-11-09 06:12:45 -0500 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-12-01 08:55:49 -0500 |
commit | 97127e67218e5970a5a7df0513ded730b19a67e9 (patch) | |
tree | d42b7f7e294f790692ede6e74cd07c53b6eb825b | |
parent | 9c1b190b10972be9c0d53c658e537c54de530b7f (diff) |
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>
-rw-r--r-- | drivers/net/wireless/wl12xx/init.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl12xx_80211.h | 5 |
2 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/wireless/wl12xx/init.c b/drivers/net/wireless/wl12xx/init.c index c413abd26d1c..88891cdfdd4a 100644 --- a/drivers/net/wireless/wl12xx/init.c +++ b/drivers/net/wireless/wl12xx/init.c | |||
@@ -65,7 +65,7 @@ int wl1271_init_templates_config(struct wl1271 *wl) | |||
65 | 65 | ||
66 | ret = wl1271_cmd_template_set(wl, CMD_TEMPL_QOS_NULL_DATA, NULL, | 66 | ret = wl1271_cmd_template_set(wl, CMD_TEMPL_QOS_NULL_DATA, NULL, |
67 | sizeof | 67 | sizeof |
68 | (struct wl12xx_qos_null_data_template), | 68 | (struct ieee80211_qos_hdr), |
69 | 0, WL1271_RATE_AUTOMATIC); | 69 | 0, WL1271_RATE_AUTOMATIC); |
70 | if (ret < 0) | 70 | if (ret < 0) |
71 | return ret; | 71 | return ret; |
@@ -114,8 +114,8 @@ int wl1271_init_templates_config(struct wl1271 *wl) | |||
114 | 114 | ||
115 | for (i = 0; i < CMD_TEMPL_KLV_IDX_MAX; i++) { | 115 | for (i = 0; i < CMD_TEMPL_KLV_IDX_MAX; i++) { |
116 | ret = wl1271_cmd_template_set(wl, CMD_TEMPL_KLV, NULL, | 116 | ret = wl1271_cmd_template_set(wl, CMD_TEMPL_KLV, NULL, |
117 | WL1271_CMD_TEMPL_DFLT_SIZE, i, | 117 | sizeof(struct ieee80211_qos_hdr), |
118 | WL1271_RATE_AUTOMATIC); | 118 | i, WL1271_RATE_AUTOMATIC); |
119 | if (ret < 0) | 119 | if (ret < 0) |
120 | return ret; | 120 | return ret; |
121 | } | 121 | } |
diff --git a/drivers/net/wireless/wl12xx/wl12xx_80211.h b/drivers/net/wireless/wl12xx/wl12xx_80211.h index f7971d3b0898..8f0ffaf62309 100644 --- a/drivers/net/wireless/wl12xx/wl12xx_80211.h +++ b/drivers/net/wireless/wl12xx/wl12xx_80211.h | |||
@@ -116,11 +116,6 @@ struct wl12xx_ps_poll_template { | |||
116 | u8 ta[ETH_ALEN]; | 116 | u8 ta[ETH_ALEN]; |
117 | } __packed; | 117 | } __packed; |
118 | 118 | ||
119 | struct wl12xx_qos_null_data_template { | ||
120 | struct ieee80211_header header; | ||
121 | __le16 qos_ctl; | ||
122 | } __packed; | ||
123 | |||
124 | struct wl12xx_arp_rsp_template { | 119 | struct wl12xx_arp_rsp_template { |
125 | struct ieee80211_hdr_3addr hdr; | 120 | struct ieee80211_hdr_3addr hdr; |
126 | 121 | ||