Message ID | 20201028142433.18501-4-kitakar@gmail.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Kalle Valo |
Headers | show |
Series | mwifiex: disable ps_mode by default for stability | expand |
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); }
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(+)