@@ -1043,7 +1043,15 @@ static void ath12k_wmi_put_wmi_channel(struct ath12k_wmi_channel_params *chan,
chan->mhz = cpu_to_le32(arg->freq);
chan->band_center_freq1 = cpu_to_le32(arg->band_center_freq1);
- if (arg->mode == MODE_11BE_EHT160) {
+ if (arg->mode == MODE_11BE_EHT320) {
+ if (arg->freq > arg->band_center_freq1)
+ chan->band_center_freq1 = cpu_to_le32(center_freq1 + 80);
+ else
+ chan->band_center_freq1 = cpu_to_le32(center_freq1 - 80);
+
+ chan->band_center_freq2 = cpu_to_le32(arg->band_center_freq1);
+
+ } else if (arg->mode == MODE_11BE_EHT160) {
if (arg->freq > arg->band_center_freq1)
chan->band_center_freq1 = cpu_to_le32(center_freq1 + 40);
else