Commit 9557d9f2 authored by Brian Norris's avatar Brian Norris Committed by Kalle Valo

mwifiex: ensure "disable auto DS" struct is initialized

The .idle_time field *should* be unused, but technically, we're allowing
unitialized stack garbage to pass all the way through to the firmware
host command. Let's zero it out instead.
Signed-off-by: default avatarBrian Norris <briannorris@chromium.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent c253a62d
...@@ -654,9 +654,9 @@ int mwifiex_get_bss_info(struct mwifiex_private *priv, ...@@ -654,9 +654,9 @@ int mwifiex_get_bss_info(struct mwifiex_private *priv,
*/ */
int mwifiex_disable_auto_ds(struct mwifiex_private *priv) int mwifiex_disable_auto_ds(struct mwifiex_private *priv)
{ {
struct mwifiex_ds_auto_ds auto_ds; struct mwifiex_ds_auto_ds auto_ds = {
.auto_ds = DEEP_SLEEP_OFF,
auto_ds.auto_ds = DEEP_SLEEP_OFF; };
return mwifiex_send_cmd(priv, HostCmd_CMD_802_11_PS_MODE_ENH, return mwifiex_send_cmd(priv, HostCmd_CMD_802_11_PS_MODE_ENH,
DIS_AUTO_PS, BITMAP_AUTO_DS, &auto_ds, true); DIS_AUTO_PS, BITMAP_AUTO_DS, &auto_ds, true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment