wifi: mac80211: allow disabling SMPS debugfs controls
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Thu, 8 Jun 2023 13:36:06 +0000 (16:36 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 14 Jun 2023 10:20:08 +0000 (12:20 +0200)
commitbc1be54d7eb4ab4c6bd44e9f73d5b44b6c8e761c
treed80370a3301d73a48be4f352edcf1176e97d2e2e
parent0e966d9a35fa5a3967a4900654fa925b8fb8e71b
wifi: mac80211: allow disabling SMPS debugfs controls

There are cases in which we don't want the user to override the
smps mode, e.g. when SMPS should be disabled due to EMLSR. Add
a driver flag to disable SMPS overriding and don't override if
it is set.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230608163202.ef129e80556c.I74a298fdc86b87074c95228d3916739de1400597@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/debugfs_netdev.c