Users may want to know the ps_mode state change (e.g., diagnosing
connection issues). This commit adds the print when changing ps_mode.
Signed-off-by: Tsuchiya Yuto <[email protected]>
---
drivers/net/wireless/marvell/mwifiex/cfg80211.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
index 943bc1e8ceaee..a2eb8df8d3854 100644
--- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
@@ -451,6 +451,13 @@ mwifiex_cfg80211_set_power_mgmt(struct wiphy *wiphy,
return -EPERM;
}
+ if (ps_mode)
+ mwifiex_dbg(priv->adapter, MSG,
+ "Enabling ps_mode, disable if unstable.\n");
+ else
+ mwifiex_dbg(priv->adapter, MSG,
+ "Disabling ps_mode.\n");
+
return mwifiex_drv_set_power(priv, &ps_mode);
}
--
2.29.1