Commit 0f17ae43 authored by Wen Gong's avatar Wen Gong Committed by Kalle Valo
Browse files

ath11k: copy cap info of 6G band under WMI_HOST_WLAN_5G_CAP for WCN6855



WCN6855 has 2 phys, one is 2G, another is 5G/6G, so it should copy the
cap info of 6G band under the check of WMI_HOST_WLAN_5G_CAP as well as
for the 5G band. Some chips like QCN9074 only have 6G, not have 2G and
5G, and this 6G capability is also under WMI_HOST_WLAN_5G_CAP, so this
change will not disturb it.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1

Signed-off-by: default avatarWen Gong <wgong@codeaurora.org>
Signed-off-by: default avatarJouni Malinen <jouni@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210804181217.88751-4-jouni@codeaurora.org
parent 74bba5e5
Loading
Loading
Loading
Loading
+11 −11
Original line number Original line Diff line number Diff line
@@ -407,7 +407,6 @@ ath11k_pull_mac_phy_cap_svc_ready_ext(struct ath11k_pdev_wmi *wmi_handle,
		       sizeof(u32) * PSOC_HOST_MAX_PHY_SIZE);
		       sizeof(u32) * PSOC_HOST_MAX_PHY_SIZE);
		memcpy(&cap_band->he_ppet, &mac_phy_caps->he_ppet5g,
		memcpy(&cap_band->he_ppet, &mac_phy_caps->he_ppet5g,
		       sizeof(struct ath11k_ppe_threshold));
		       sizeof(struct ath11k_ppe_threshold));
	}


		cap_band = &pdev_cap->band[NL80211_BAND_6GHZ];
		cap_band = &pdev_cap->band[NL80211_BAND_6GHZ];
		cap_band->max_bw_supported = mac_phy_caps->max_bw_supported_5g;
		cap_band->max_bw_supported = mac_phy_caps->max_bw_supported_5g;
@@ -419,6 +418,7 @@ ath11k_pull_mac_phy_cap_svc_ready_ext(struct ath11k_pdev_wmi *wmi_handle,
		       sizeof(u32) * PSOC_HOST_MAX_PHY_SIZE);
		       sizeof(u32) * PSOC_HOST_MAX_PHY_SIZE);
		memcpy(&cap_band->he_ppet, &mac_phy_caps->he_ppet5g,
		memcpy(&cap_band->he_ppet, &mac_phy_caps->he_ppet5g,
		       sizeof(struct ath11k_ppe_threshold));
		       sizeof(struct ath11k_ppe_threshold));
	}


	return 0;
	return 0;
}
}