Messages in this thread Patch in this message | | | From | Tsuchiya Yuto <> | Subject | [PATCH 3/3] mwifiex: print message when changing ps_mode | Date | Wed, 28 Oct 2020 23:24:33 +0900 |
| |
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 <kitakar@gmail.com> --- 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
| |