提交 5ff46f79 编写于 作者: A Avinash Patil 提交者: Kalle Valo

mwifiex: stop command path in suspend handler

Cancel all pending commands including scan commands and stop CAC
during cfg80211 suspend handler.
Signed-off-by: NAvinash Patil <patila@marvell.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 2d7defb0
...@@ -2942,15 +2942,23 @@ static int mwifiex_cfg80211_suspend(struct wiphy *wiphy, ...@@ -2942,15 +2942,23 @@ static int mwifiex_cfg80211_suspend(struct wiphy *wiphy,
{ {
struct mwifiex_adapter *adapter = mwifiex_cfg80211_get_adapter(wiphy); struct mwifiex_adapter *adapter = mwifiex_cfg80211_get_adapter(wiphy);
struct mwifiex_ds_hs_cfg hs_cfg; struct mwifiex_ds_hs_cfg hs_cfg;
int ret = 0; int i, ret = 0;
struct mwifiex_private *priv = struct mwifiex_private *priv;
mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_STA);
for (i = 0; i < adapter->priv_num; i++) {
priv = adapter->priv[i];
mwifiex_abort_cac(priv);
}
mwifiex_cancel_all_pending_cmd(adapter);
if (!wowlan) { if (!wowlan) {
dev_warn(adapter->dev, "None of the WOWLAN triggers enabled\n"); dev_warn(adapter->dev, "None of the WOWLAN triggers enabled\n");
return 0; return 0;
} }
priv = mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_STA);
if (!priv->media_connected) { if (!priv->media_connected) {
dev_warn(adapter->dev, dev_warn(adapter->dev,
"Can not configure WOWLAN in disconnected state\n"); "Can not configure WOWLAN in disconnected state\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册