Search Linux Wireless

Re: [PATCH v6 11/13] wifi: ath11k: discard BSS_CHANGED_TXPOWER when EXT_TPC_REG_SUPPORT for 6 GHz

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/22/2023 5:04 PM, Aditya Kumar Singh wrote:
On 9/20/23 13:53, Wen Gong wrote:

[...]
@@ -3595,9 +3607,13 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw,
      if (changed & BSS_CHANGED_TXPOWER) {
          ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "vdev_id %i txpower %d\n",
                 arvif->vdev_id, info->txpower);
-
-        arvif->txpower = info->txpower;
-        ath11k_mac_txpower_recalc(ar);
+        if (ath11k_mac_supports_station_tpc(ar, arvif, &info->chandef)) {
So even if user wants to operate in low power value, we won't be allowing to do that in case of 6 GHz station mode? Only TPC power is valid?

You are right. I think I will drop this patch. Firmware will select the lowest TX power from multi-source.
+            ath11k_dbg(ar->ab, ATH11K_DBG_MAC,
+                   "discard tx power, change to set TPC power\n");
+        } else {
+            arvif->txpower = info->txpower;
+            ath11k_mac_txpower_recalc(ar);
+        }
      }
        if (changed & BSS_CHANGED_PS &&





[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux