]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: iwlwifi: s/IWL_MVM_STATION_COUNT_MAX/IWL_STATION_COUNT_MAX
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Sun, 1 Sep 2024 04:17:52 +0000 (07:17 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 3 Sep 2024 09:55:26 +0000 (11:55 +0200)
This isn't mvm specific.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://patch.msgid.link/20240901071542.5d71a0a2b56c.I7e0fe636d914852963e7a2f5e6037d0c3e367145@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/mac.h
drivers/net/wireless/intel/iwlwifi/fw/api/stats.h
drivers/net/wireless/intel/iwlwifi/iwl-drv.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.h

index 490215e71e5d66c6fcf59245146efc3d959ab508..977ca4ac166d8ceaef3e3a5a09ee6b07d3cb6b0e 100644 (file)
@@ -16,7 +16,7 @@
 #define NUM_MAC_INDEX          (NUM_MAC_INDEX_DRIVER + 1)
 #define NUM_MAC_INDEX_CDB      (NUM_MAC_INDEX_DRIVER + 2)
 
-#define IWL_MVM_STATION_COUNT_MAX      16
+#define IWL_STATION_COUNT_MAX  16
 #define IWL_MVM_INVALID_STA            0xFF
 
 enum iwl_ac {
index 659cb40ecfb46bc855c883658f8cb7c29e4e655b..0a9f14fb04bef5aabc4d8a3799552cacac2ba68c 100644 (file)
@@ -327,14 +327,14 @@ struct mvm_statistics_load {
        __le32 air_time[MAC_INDEX_AUX];
        __le32 byte_count[MAC_INDEX_AUX];
        __le32 pkt_count[MAC_INDEX_AUX];
-       u8 avg_energy[IWL_MVM_STATION_COUNT_MAX];
+       u8 avg_energy[IWL_STATION_COUNT_MAX];
 } __packed; /* STATISTICS_RX_MAC_STATION_S_VER_3 */
 
 struct mvm_statistics_load_v1 {
        __le32 air_time[NUM_MAC_INDEX];
        __le32 byte_count[NUM_MAC_INDEX];
        __le32 pkt_count[NUM_MAC_INDEX];
-       u8 avg_energy[IWL_MVM_STATION_COUNT_MAX];
+       u8 avg_energy[IWL_STATION_COUNT_MAX];
 } __packed; /* STATISTICS_RX_MAC_STATION_S_VER_1 */
 
 struct mvm_statistics_rx {
@@ -608,7 +608,7 @@ struct iwl_system_statistics_notif_oper {
        __le32 time_stamp;
        struct iwl_stats_ntfy_per_link per_link[IWL_STATS_MAX_FW_LINKS];
        struct iwl_stats_ntfy_per_phy per_phy[IWL_STATS_MAX_PHY_OPERATIONAL];
-       struct iwl_stats_ntfy_per_sta per_sta[IWL_MVM_STATION_COUNT_MAX];
+       struct iwl_stats_ntfy_per_sta per_sta[IWL_STATION_COUNT_MAX];
 } __packed; /* STATISTICS_FW_NTFY_OPERATIONAL_API_S_VER_3 */
 
 /**
@@ -651,7 +651,7 @@ struct iwl_statistics_operational_ntfy {
        __le32 flags;
        struct iwl_stats_ntfy_per_mac per_mac[MAC_INDEX_AUX];
        struct iwl_stats_ntfy_per_phy per_phy[IWL_STATS_MAX_PHY_OPERATIONAL];
-       struct iwl_stats_ntfy_per_sta per_sta[IWL_MVM_STATION_COUNT_MAX];
+       struct iwl_stats_ntfy_per_sta per_sta[IWL_STATION_COUNT_MAX];
        __le64 rx_time;
        __le64 tx_time;
        __le64 on_time_rf;
@@ -699,7 +699,7 @@ struct iwl_statistics_operational_ntfy_ver_14 {
        __le64 tx_time;
        __le64 on_time_rf;
        __le64 on_time_scan;
-       __le32 average_energy[IWL_MVM_STATION_COUNT_MAX];
+       __le32 average_energy[IWL_STATION_COUNT_MAX];
        __le32 reserved;
 } __packed; /* STATISTICS_OPERATIONAL_NTFY_API_S_VER_14 */
 
index aaaabd67f9593c1a524b154b4a868f2df8e7135d..2abfc986701f8efa7012d45d4d1ec85469a692f5 100644 (file)
@@ -1205,7 +1205,7 @@ static int iwl_parse_tlv_firmware(struct iwl_drv *drv,
                        if (tlv_len != sizeof(u32))
                                goto invalid_tlv_len;
                        if (le32_to_cpup((const __le32 *)tlv_data) >
-                           IWL_MVM_STATION_COUNT_MAX) {
+                           IWL_STATION_COUNT_MAX) {
                                IWL_ERR(drv,
                                        "%d is an invalid number of station\n",
                                        le32_to_cpup((const __le32 *)tlv_data));
@@ -1479,7 +1479,7 @@ static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context)
        fw->ucode_capa.standard_phy_calibration_size =
                        IWL_DEFAULT_STANDARD_PHY_CALIBRATE_TBL_SIZE;
        fw->ucode_capa.n_scan_channels = IWL_DEFAULT_SCAN_CHANNELS;
-       fw->ucode_capa.num_stations = IWL_MVM_STATION_COUNT_MAX;
+       fw->ucode_capa.num_stations = IWL_STATION_COUNT_MAX;
        fw->ucode_capa.num_beacons = 1;
        /* dump all fw memory areas by default */
        fw->dbg.dump_mask = 0xffffffff;
index 26adf9f9b8c3475d241e626df89352f75eaf515b..ec9b8be127662a31a571c3ac14bf8425b4ba95ae 100644 (file)
@@ -1078,8 +1078,8 @@ struct iwl_mvm {
 
        /* data related to data path */
        struct iwl_rx_phy_info last_phy_info;
-       struct ieee80211_sta __rcu *fw_id_to_mac_id[IWL_MVM_STATION_COUNT_MAX];
-       struct ieee80211_link_sta __rcu *fw_id_to_link_sta[IWL_MVM_STATION_COUNT_MAX];
+       struct ieee80211_sta __rcu *fw_id_to_mac_id[IWL_STATION_COUNT_MAX];
+       struct ieee80211_link_sta __rcu *fw_id_to_link_sta[IWL_STATION_COUNT_MAX];
        u8 rx_ba_sessions;
 
        /* configured by mac80211 */
index 273767b074b83eae82f625cfbfb7abfef85128d8..d3ab959f497ab9c148c350781514048ea2c09cb5 100644 (file)
@@ -1285,12 +1285,12 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg,
        struct iwl_mvm_csme_conn_info *csme_conn_info __maybe_unused;
 
        /*
-        * We use IWL_MVM_STATION_COUNT_MAX to check the validity of the station
+        * We use IWL_STATION_COUNT_MAX to check the validity of the station
         * index all over the driver - check that its value corresponds to the
         * array size.
         */
        BUILD_BUG_ON(ARRAY_SIZE(mvm->fw_id_to_mac_id) !=
-                    IWL_MVM_STATION_COUNT_MAX);
+                    IWL_STATION_COUNT_MAX);
 
        /********************************
         * 1. Allocating and configuring HW data
index 3b5bbece63f6279b16f094bbd4bc7210d40fa6dd..047c020f8efa1878dd1a61968454db169a7ceab2 100644 (file)
@@ -738,8 +738,8 @@ static void iwl_mvm_stats_energy_iter(void *_data,
        u8 *energy = _data;
        u32 sta_id = mvmsta->deflink.sta_id;
 
-       if (WARN_ONCE(sta_id >= IWL_MVM_STATION_COUNT_MAX, "sta_id %d >= %d",
-                     sta_id, IWL_MVM_STATION_COUNT_MAX))
+       if (WARN_ONCE(sta_id >= IWL_STATION_COUNT_MAX, "sta_id %d >= %d",
+                     sta_id, IWL_STATION_COUNT_MAX))
                return;
 
        if (energy[sta_id])
@@ -1042,7 +1042,7 @@ static void iwl_mvm_update_esr_mode_tpt(struct iwl_mvm *mvm)
 void iwl_mvm_handle_rx_system_oper_stats(struct iwl_mvm *mvm,
                                         struct iwl_rx_cmd_buffer *rxb)
 {
-       u8 average_energy[IWL_MVM_STATION_COUNT_MAX];
+       u8 average_energy[IWL_STATION_COUNT_MAX];
        struct iwl_rx_packet *pkt = rxb_addr(rxb);
        struct iwl_system_statistics_notif_oper *stats;
        int i;
@@ -1101,7 +1101,7 @@ static void
 iwl_mvm_handle_rx_statistics_tlv(struct iwl_mvm *mvm,
                                 struct iwl_rx_packet *pkt)
 {
-       u8 average_energy[IWL_MVM_STATION_COUNT_MAX];
+       u8 average_energy[IWL_STATION_COUNT_MAX];
        __le32 air_time[MAC_INDEX_AUX];
        __le32 rx_bytes[MAC_INDEX_AUX];
        __le32 flags = 0;
index 1a210d0c22b3c57895c98fdbc3d8c31df4883207..ae0f2aabddc32d4ac1a2f0e38f21942a0b93886d 100644 (file)
@@ -2542,7 +2542,7 @@ void iwl_mvm_rx_bar_frame_release(struct iwl_mvm *mvm, struct napi_struct *napi,
                goto out;
        }
 
-       if (WARN(tid != baid_data->tid || sta_id > IWL_MVM_STATION_COUNT_MAX ||
+       if (WARN(tid != baid_data->tid || sta_id > IWL_STATION_COUNT_MAX ||
                 !(baid_data->sta_mask & BIT(sta_id)),
                 "baid 0x%x is mapped to sta_mask:0x%x tid:%d, but BAR release received for sta:%d tid:%d\n",
                 baid, baid_data->sta_mask, baid_data->tid, sta_id,
index 74bbeebe69d55f41fdd4898bc1dbc3120f2dd277..b6c99cd6d9e5df3bc0d4a249a1c55e82fc171fd7 100644 (file)
@@ -29,7 +29,7 @@ int iwl_mvm_find_free_sta_id(struct iwl_mvm *mvm, enum nl80211_iftype iftype)
        int sta_id;
        u32 reserved_ids = 0;
 
-       BUILD_BUG_ON(IWL_MVM_STATION_COUNT_MAX > 32);
+       BUILD_BUG_ON(IWL_STATION_COUNT_MAX > 32);
        WARN_ON_ONCE(test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status));
 
        lockdep_assert_held(&mvm->mutex);
index 193a1edc38d2c96cba6bd2608c817817d3cca927..4a3799ae7c184d4e39872f5aea71cba826139e4a 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/wait.h>
 
 #include "iwl-trans.h" /* for IWL_MAX_TID_COUNT */
-#include "fw-api.h" /* IWL_MVM_STATION_COUNT_MAX */
+#include "fw-api.h" /* IWL_STATION_COUNT_MAX */
 #include "rs.h"
 
 struct iwl_mvm;