]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: ieee80211/ath11k: remove IEEE80211_MAX_NUM_PWR_LEVEL
authorJohannes Berg <johannes.berg@intel.com>
Mon, 6 May 2024 19:37:54 +0000 (21:37 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 23 May 2024 08:34:59 +0000 (10:34 +0200)
commit8592fd7ccc95a7cf222985e6297041463e8b4e9d
tree32f79660a27d5313d62e5991b2e20d791d4fe684
parente3bae9b22873338d1a7989a2568c5aca2c44bde7
wifi: ieee80211/ath11k: remove IEEE80211_MAX_NUM_PWR_LEVEL

The define IEEE80211_MAX_NUM_PWR_LEVEL doesn't make much
sense. Yes, that table has a maximum value of 8, and the
table will actually remain that way, but EHT introduced
a way to encode more levels for 320 MHz channels.

Remove IEEE80211_MAX_NUM_PWR_LEVEL and, for ath11k being
the only user, add ATH11K_NUM_PWR_LEVELS, where it makes
sense since it cannot support 320 MHz channels.

Acked-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240506214536.9818e5471055.Icece7e47e963d6b68e0d97ba13c102b37fbaa689@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/mac.c
include/linux/ieee80211.h