v3: 1. added "ath11k: fix a possible dead lock caused by ab->base_lock". 3. deleted "ath11k: add support for extended wmi service bit" which is alreay upstream. v2: 1. change some minor comments by Kalle. 2. rebased to ath.git ath-202112220603 Depends on one patch: [v5] cfg80211: save power spectral density(psd) of regulatory rule https://patchwork.kernel.org/project/linux-wireless/patch/20210928085211.26186-1-wgong@xxxxxxxxxxxxxx/ It introduced some new concept: power type of AP(STANDARD_POWER_AP, INDOOR_AP, VERY_LOW_POWER_AP) power type of STATION(DEFAULT_CLIENT, SUBORDINATE_CLIENT) power spectral density(psd) This patchset is to implement the new rules for 6 GHz band in ath11k. ath11k parsed the reg rules from new wmi event WMI_REG_CHAN_LIST_CC_EXT_EVENTID and parse the transmit power envelope element in beacon of AP and then set new wmi cmd WMI_VDEV_SET_TPC_POWER_CMDID to firmware when connect to 6G AP, also support backward compatibility with firmware which not support new wmi cmd WMI_VDEV_SET_TPC_POWER_CMDID. Baochen Qiang (1): wifi: ath11k: fix a possible dead lock caused by ab->base_lock Wen Gong (14): wifi: ath11k: Add support to parse new wmi event for 6 GHz regulatory wifi: ath11k: add support to select 6 GHz Regulatory type wifi: ath11k: allow only one interface up simultaneously for WCN6855 wifi: ath11k: store cur_regulatory_info for each radio wifi: ath11k: update regulatory rules when interface added wifi: ath11k: update regulatory rules when connect to AP on 6 GHz band for station wifi: ath11k: save power spectral density(psd) of regulatory rule wifi: ath11k: add parse of transmit power envelope element wifi: ath11k: save max tx power in vdev start response event from firmware wifi: ath11k: fill parameters for vdev_set_tpc_power wmi command wifi: ath11k: add WMI_TLV_SERVICE_EXT_TPC_REG_SUPPORT service bit wifi: ath11k: discard BSS_CHANGED_TXPOWER when EXT_TPC_REG_SUPPORT for 6 GHz wifi: ath11k: add handler for WMI_VDEV_SET_TPC_POWER_CMDID wifi: ath11k: send TPC power to firmware for 6 GHz station drivers/net/wireless/ath/ath11k/core.c | 6 + drivers/net/wireless/ath/ath11k/core.h | 40 ++ drivers/net/wireless/ath/ath11k/hw.c | 17 + drivers/net/wireless/ath/ath11k/hw.h | 5 + drivers/net/wireless/ath/ath11k/mac.c | 539 +++++++++++++++++- drivers/net/wireless/ath/ath11k/mac.h | 5 +- drivers/net/wireless/ath/ath11k/reg.c | 105 +++- drivers/net/wireless/ath/ath11k/reg.h | 6 +- drivers/net/wireless/ath/ath11k/wmi.c | 728 +++++++++++++++++++++++-- drivers/net/wireless/ath/ath11k/wmi.h | 210 +++++++ 10 files changed, 1608 insertions(+), 53 deletions(-) base-commit: e5da5e8c54e27d8fa86765cd733c1a05aee53ae9 prerequisite-patch-id: d0941cb1e08f82e9bd5feaf01b160807b4b0faa9 prerequisite-patch-id: 8ed14a45e891683ebc28d3fe1c9405430561b09f -- 2.31.1