Skip to content

Commit 4a41ec6

Browse files
kitakar5525qzed
authored andcommitted
mwifiex: cfg80211: print message when changing ps_mode
Notify user of ps_mode status change. Especially, print a warning when user enabled ps_mode.
1 parent c75702b commit 4a41ec6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/net/wireless/marvell/mwifiex/cfg80211.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,14 @@ mwifiex_cfg80211_set_power_mgmt(struct wiphy *wiphy,
457457
return -1;
458458
}
459459

460+
if (ps_mode)
461+
dev_warn(priv->adapter->dev,
462+
"WARN: Request to enable ps_mode received. Enabling it. "
463+
"Disable it if you encounter connection instability.\n");
464+
else
465+
dev_info(priv->adapter->dev,
466+
"Request to disable ps_mode received. Disabling it.\n");
467+
460468
return mwifiex_drv_set_power(priv, &ps_mode);
461469
}
462470

0 commit comments

Comments
 (0)