wifi: iwlwifi: limit EHT capabilities based on PCIe link speed
[platform/kernel/linux-starfive.git] / drivers / net / wireless / intel / iwlwifi / iwl-trans.h
index 1fa035d..d02943d 100644 (file)
@@ -1067,6 +1067,8 @@ struct iwl_trans_txqs {
  * @iwl_trans_txqs: transport tx queues data.
  * @mbx_addr_0_step: step address data 0
  * @mbx_addr_1_step: step address data 1
+ * @pcie_link_speed: current PCIe link speed (%PCI_EXP_LNKSTA_CLS_*),
+ *     only valid for discrete (not integrated) NICs
  */
 struct iwl_trans {
        bool csme_own;
@@ -1129,6 +1131,8 @@ struct iwl_trans {
        u32 mbx_addr_0_step;
        u32 mbx_addr_1_step;
 
+       u8 pcie_link_speed;
+
        /* pointer to trans specific struct */
        /*Ensure that this pointer will always be aligned to sizeof pointer */
        char trans_specific[] __aligned(sizeof(void *));