]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
wifi: iwlwifi: rename iwl_datapath_monitor_notif::mac_id to link_id
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Tue, 31 Dec 2024 11:59:15 +0000 (13:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 13 Jan 2025 14:34:07 +0000 (15:34 +0100)
The FW really sends the link_id here. Rename it, while leaving a FIXME
in iwlmvm.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://patch.msgid.link/20241231135726.a3d07be17fb1.Ib8a623af099b9b0f2b8d552fca546c476a69a82d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/datapath.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c

index 2ab38eaeb290be14cd740b55b3e1ea3ff77f3202..570a3f72251039df72286db6afe7b886aa8b7651 100644 (file)
@@ -391,7 +391,7 @@ enum iwl_datapath_monitor_notif_type {
 
 struct iwl_datapath_monitor_notif {
        __le32 type;
-       u8 mac_id;
+       u8 link_id;
        u8 reserved[3];
 } __packed; /* MONITOR_NTF_API_S_VER_1 */
 
index f5ff700d06650e6198f3758c07a1af2a8e4d49a0..984f407f70272ab8d329012e6acec6426ebacde9 100644 (file)
@@ -208,7 +208,8 @@ static void iwl_mvm_rx_monitor_notif(struct iwl_mvm *mvm,
        if (notif->type != cpu_to_le32(IWL_DP_MON_NOTIF_TYPE_EXT_CCA))
                return;
 
-       vif = iwl_mvm_get_vif_by_macid(mvm, notif->mac_id);
+       /* FIXME: should fetch the link and not the vif */
+       vif = iwl_mvm_get_vif_by_macid(mvm, notif->link_id);
        if (!vif || vif->type != NL80211_IFTYPE_STATION)
                return;