mirror of https://gitee.com/openkylin/linux.git
wl12xx: increase max probe-req template size to WL1271_CMD_TEMPL_MAX_SIZE
Increase max scan IEs to allow big probe-req frames Report a correct max-length for the scan IEs we can support, according to the now larger size of the probe-req template. Signed-off-by: Ido Reis <idor@ti.com> Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
This commit is contained in:
parent
35d7742ff3
commit
c08e371a68
|
@ -42,14 +42,14 @@ int wl1271_init_templates_config(struct wl1271 *wl)
|
||||||
/* send empty templates for fw memory reservation */
|
/* send empty templates for fw memory reservation */
|
||||||
ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID,
|
ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID,
|
||||||
CMD_TEMPL_CFG_PROBE_REQ_2_4, NULL,
|
CMD_TEMPL_CFG_PROBE_REQ_2_4, NULL,
|
||||||
WL1271_CMD_TEMPL_DFLT_SIZE,
|
WL1271_CMD_TEMPL_MAX_SIZE,
|
||||||
0, WL1271_RATE_AUTOMATIC);
|
0, WL1271_RATE_AUTOMATIC);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID,
|
ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID,
|
||||||
CMD_TEMPL_CFG_PROBE_REQ_5,
|
CMD_TEMPL_CFG_PROBE_REQ_5,
|
||||||
NULL, WL1271_CMD_TEMPL_DFLT_SIZE, 0,
|
NULL, WL1271_CMD_TEMPL_MAX_SIZE, 0,
|
||||||
WL1271_RATE_AUTOMATIC);
|
WL1271_RATE_AUTOMATIC);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
@ -5063,10 +5063,10 @@ static int wl1271_init_ieee80211(struct wl1271 *wl)
|
||||||
* should be the maximum length possible for a template, without
|
* should be the maximum length possible for a template, without
|
||||||
* the IEEE80211 header of the template
|
* the IEEE80211 header of the template
|
||||||
*/
|
*/
|
||||||
wl->hw->wiphy->max_scan_ie_len = WL1271_CMD_TEMPL_DFLT_SIZE -
|
wl->hw->wiphy->max_scan_ie_len = WL1271_CMD_TEMPL_MAX_SIZE -
|
||||||
sizeof(struct ieee80211_header);
|
sizeof(struct ieee80211_header);
|
||||||
|
|
||||||
wl->hw->wiphy->max_sched_scan_ie_len = WL1271_CMD_TEMPL_DFLT_SIZE -
|
wl->hw->wiphy->max_sched_scan_ie_len = WL1271_CMD_TEMPL_MAX_SIZE -
|
||||||
sizeof(struct ieee80211_header);
|
sizeof(struct ieee80211_header);
|
||||||
|
|
||||||
wl->hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD;
|
wl->hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD;
|
||||||
|
|
Loading…
Reference in New Issue