mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
wifi: cfg80211: Add support for 6GHz AP role not relevant AP type
Add IEEE80211_6GHZ_CTRL_REG_AP_ROLE_NOT_RELEVANT and map it to IEEE80211_REG_LPI_AP for safe regulatory compliance when AP role classification is not applicable. Use LPI as safe fallback to prevent power limit violations. Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20251112110828.856283677cc7.I36138a34847c3b4e680974bf347dde844448f3bc@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
c99ebb6132
commit
a77f0ad44f
@@ -548,6 +548,7 @@ static inline bool ieee80211_he_capa_size_ok(const u8 *data, u8 len)
|
||||
#define IEEE80211_6GHZ_CTRL_REG_VLP_AP 2
|
||||
#define IEEE80211_6GHZ_CTRL_REG_INDOOR_LPI_AP 3
|
||||
#define IEEE80211_6GHZ_CTRL_REG_INDOOR_SP_AP_OLD 4
|
||||
#define IEEE80211_6GHZ_CTRL_REG_AP_ROLE_NOT_RELEVANT 7
|
||||
#define IEEE80211_6GHZ_CTRL_REG_INDOOR_SP_AP 8
|
||||
|
||||
/**
|
||||
|
||||
@@ -10148,6 +10148,7 @@ cfg80211_6ghz_power_type(u8 control, u32 client_flags)
|
||||
switch (u8_get_bits(control, IEEE80211_HE_6GHZ_OPER_CTRL_REG_INFO)) {
|
||||
case IEEE80211_6GHZ_CTRL_REG_LPI_AP:
|
||||
case IEEE80211_6GHZ_CTRL_REG_INDOOR_LPI_AP:
|
||||
case IEEE80211_6GHZ_CTRL_REG_AP_ROLE_NOT_RELEVANT:
|
||||
return IEEE80211_REG_LPI_AP;
|
||||
case IEEE80211_6GHZ_CTRL_REG_SP_AP:
|
||||
case IEEE80211_6GHZ_CTRL_REG_INDOOR_SP_AP_OLD:
|
||||
|
||||
Reference in New Issue
Block a user