Commit d6f6b0d8 authored by Gregory Greenman's avatar Gregory Greenman Committed by Johannes Berg

wifi: iwlwifi: mvm: add fw link id allocation

Driver uses link_id as an index in the array. FW currently can
support only 2 concurrently active links per vif with the ids in the
range 0-3. Add a mapping of dirver link ids to fw link id and track the
number of active link ids.
Signed-off-by: default avatarGregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230328104949.a53e5df49c33.I02b25648d2d5ca370c0697bf19d0d34724eae8a1@changeidSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 62e0ccb2
...@@ -483,6 +483,12 @@ struct iwl_link_config_cmd { ...@@ -483,6 +483,12 @@ struct iwl_link_config_cmd {
__le32 reserved1[8]; __le32 reserved1[8];
} __packed; /* LINK_CONTEXT_CONFIG_CMD_API_S_VER_1 */ } __packed; /* LINK_CONTEXT_CONFIG_CMD_API_S_VER_1 */
/* Currently FW supports link ids in the range 0-3 and can have
* at most two active links for each vif.
*/
#define IWL_MVM_FW_MAX_ACTIVE_LINKS_NUM 2
#define IWL_MVM_FW_MAX_LINK_ID 3
/** /**
* enum iwl_fw_sta_type - FW station types * enum iwl_fw_sta_type - FW station types
* @STATION_TYPE_PEER: represents a peer - AP in BSS, a TDLS sta, a client in * @STATION_TYPE_PEER: represents a peer - AP in BSS, a TDLS sta, a client in
......
...@@ -1442,6 +1442,10 @@ static int _iwl_dbgfs_inject_beacon_ie(struct iwl_mvm *mvm, char *bin, int len) ...@@ -1442,6 +1442,10 @@ static int _iwl_dbgfs_inject_beacon_ie(struct iwl_mvm *mvm, char *bin, int len)
cpu_to_le16(iwl_mvm_mac_ctxt_get_beacon_flags(mvm->fw, cpu_to_le16(iwl_mvm_mac_ctxt_get_beacon_flags(mvm->fw,
rate)); rate));
beacon_cmd.byte_cnt = cpu_to_le16((u16)beacon->len); beacon_cmd.byte_cnt = cpu_to_le16((u16)beacon->len);
if (iwl_fw_lookup_cmd_ver(mvm->fw, BEACON_TEMPLATE_CMD, 0) > 12)
beacon_cmd.link_id =
cpu_to_le32(mvmvif->link[link_id]->fw_link_id);
else
beacon_cmd.link_id = cpu_to_le32((u32)mvmvif->id); beacon_cmd.link_id = cpu_to_le32((u32)mvmvif->id);
iwl_mvm_mac_ctxt_set_tim(mvm, &beacon_cmd.tim_idx, iwl_mvm_mac_ctxt_set_tim(mvm, &beacon_cmd.tim_idx,
......
...@@ -1573,6 +1573,8 @@ int iwl_mvm_up(struct iwl_mvm *mvm) ...@@ -1573,6 +1573,8 @@ int iwl_mvm_up(struct iwl_mvm *mvm)
for (i = 0; i < mvm->fw->ucode_capa.num_stations; i++) for (i = 0; i < mvm->fw->ucode_capa.num_stations; i++)
RCU_INIT_POINTER(mvm->fw_id_to_mac_id[i], NULL); RCU_INIT_POINTER(mvm->fw_id_to_mac_id[i], NULL);
memset(&mvm->fw_link_ids_map, 0, sizeof(mvm->fw_link_ids_map));
mvm->tdls_cs.peer.sta_id = IWL_MVM_INVALID_STA; mvm->tdls_cs.peer.sta_id = IWL_MVM_INVALID_STA;
/* reset quota debouncing buffer - 0xff will yield invalid data */ /* reset quota debouncing buffer - 0xff will yield invalid data */
......
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* /*
* Copyright (C) 2022 Intel Corporation * Copyright (C) 2022 - 2023 Intel Corporation
*/ */
#include "mvm.h" #include "mvm.h"
static u32 iwl_mvm_get_free_fw_link_id(struct iwl_mvm *mvm,
struct iwl_mvm_vif *mvm_vif)
{
u32 link_id;
lockdep_assert_held(&mvm->mutex);
link_id = ffz(mvm->fw_link_ids_map);
/* this case can happen if there're deactivated but not removed links */
if (link_id > IWL_MVM_FW_MAX_LINK_ID)
return IWL_MVM_FW_LINK_ID_INVALID;
mvm->fw_link_ids_map |= BIT(link_id);
return link_id;
}
static void iwl_mvm_release_fw_link_id(struct iwl_mvm *mvm, u32 link_id)
{
lockdep_assert_held(&mvm->mutex);
if (!WARN_ON(link_id > IWL_MVM_FW_MAX_LINK_ID))
mvm->fw_link_ids_map &= ~BIT(link_id);
}
static int iwl_mvm_link_cmd_send(struct iwl_mvm *mvm, static int iwl_mvm_link_cmd_send(struct iwl_mvm *mvm,
struct iwl_link_config_cmd *cmd, struct iwl_link_config_cmd *cmd,
enum iwl_ctxt_action action) enum iwl_ctxt_action action)
...@@ -25,11 +50,19 @@ int iwl_mvm_add_link(struct iwl_mvm *mvm, struct ieee80211_vif *vif, ...@@ -25,11 +50,19 @@ int iwl_mvm_add_link(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
{ {
struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
unsigned int link_id = link_conf->link_id; unsigned int link_id = link_conf->link_id;
struct iwl_mvm_vif_link_info *link_info = mvmvif->link[link_id];
struct iwl_link_config_cmd cmd = {}; struct iwl_link_config_cmd cmd = {};
struct iwl_mvm_phy_ctxt *phyctxt; struct iwl_mvm_phy_ctxt *phyctxt;
if (WARN_ON_ONCE(!mvmvif->link[link_id])) if (WARN_ON_ONCE(!link_info))
return -EINVAL;
if (link_info->fw_link_id == IWL_MVM_FW_LINK_ID_INVALID) {
link_info->fw_link_id = iwl_mvm_get_free_fw_link_id(mvm,
mvmvif);
if (link_info->fw_link_id == IWL_MVM_FW_LINK_ID_INVALID)
return -EINVAL; return -EINVAL;
}
/* Update SF - Disable if needed. if this fails, SF might still be on /* Update SF - Disable if needed. if this fails, SF might still be on
* while many macs are bound, which is forbidden - so fail the binding. * while many macs are bound, which is forbidden - so fail the binding.
...@@ -37,11 +70,10 @@ int iwl_mvm_add_link(struct iwl_mvm *mvm, struct ieee80211_vif *vif, ...@@ -37,11 +70,10 @@ int iwl_mvm_add_link(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
if (iwl_mvm_sf_update(mvm, vif, false)) if (iwl_mvm_sf_update(mvm, vif, false))
return -EINVAL; return -EINVAL;
/* FIXME: add proper link id allocation */ cmd.link_id = cpu_to_le32(link_info->fw_link_id);
cmd.link_id = cpu_to_le32(mvmvif->id);
cmd.mac_id = cpu_to_le32(mvmvif->id); cmd.mac_id = cpu_to_le32(mvmvif->id);
/* P2P-Device already has a valid PHY context during add */ /* P2P-Device already has a valid PHY context during add */
phyctxt = mvmvif->link[link_id]->phy_ctxt; phyctxt = link_info->phy_ctxt;
if (phyctxt) if (phyctxt)
cmd.phy_id = cpu_to_le32(phyctxt->id); cmd.phy_id = cpu_to_le32(phyctxt->id);
else else
...@@ -61,20 +93,27 @@ int iwl_mvm_link_changed(struct iwl_mvm *mvm, struct ieee80211_vif *vif, ...@@ -61,20 +93,27 @@ int iwl_mvm_link_changed(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
{ {
struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
unsigned int link_id = link_conf->link_id; unsigned int link_id = link_conf->link_id;
struct iwl_mvm_vif_link_info *link_info = mvmvif->link[link_id];
struct iwl_mvm_phy_ctxt *phyctxt; struct iwl_mvm_phy_ctxt *phyctxt;
struct iwl_link_config_cmd cmd = {}; struct iwl_link_config_cmd cmd = {};
u32 ht_flag, flags = 0, flags_mask = 0; u32 ht_flag, flags = 0, flags_mask = 0;
int ret;
if (WARN_ON_ONCE(!link_info ||
link_info->fw_link_id == IWL_MVM_FW_LINK_ID_INVALID))
return -EINVAL;
if (WARN_ON_ONCE(!mvmvif->link[link_id])) /* cannot activate third link */
if (!link_info->active && active &&
mvmvif->fw_active_links_num >= IWL_MVM_FW_MAX_ACTIVE_LINKS_NUM)
return -EINVAL; return -EINVAL;
/* FIXME: add proper link id allocation */ cmd.link_id = cpu_to_le32(link_info->fw_link_id);
cmd.link_id = cpu_to_le32(mvmvif->id);
/* The phy_id, link address and listen_lmac can be modified only until /* The phy_id, link address and listen_lmac can be modified only until
* the link becomes active, otherwise they will be ignored. * the link becomes active, otherwise they will be ignored.
*/ */
phyctxt = mvmvif->link[link_id]->phy_ctxt; phyctxt = link_info->phy_ctxt;
if (phyctxt) if (phyctxt)
cmd.phy_id = cpu_to_le32(phyctxt->id); cmd.phy_id = cpu_to_le32(phyctxt->id);
else else
...@@ -151,7 +190,7 @@ int iwl_mvm_link_changed(struct iwl_mvm *mvm, struct ieee80211_vif *vif, ...@@ -151,7 +190,7 @@ int iwl_mvm_link_changed(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
cmd.frame_time_rts_th = cpu_to_le16(link_conf->frame_time_rts_th); cmd.frame_time_rts_th = cpu_to_le16(link_conf->frame_time_rts_th);
/* Block 26-tone RU OFDMA transmissions */ /* Block 26-tone RU OFDMA transmissions */
if (mvmvif->deflink.he_ru_2mhz_block) { if (link_info->he_ru_2mhz_block) {
flags |= LINK_FLG_RU_2MHZ_BLOCK; flags |= LINK_FLG_RU_2MHZ_BLOCK;
flags_mask |= LINK_FLG_RU_2MHZ_BLOCK; flags_mask |= LINK_FLG_RU_2MHZ_BLOCK;
} }
...@@ -167,18 +206,40 @@ int iwl_mvm_link_changed(struct iwl_mvm *mvm, struct ieee80211_vif *vif, ...@@ -167,18 +206,40 @@ int iwl_mvm_link_changed(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
cmd.flags = cpu_to_le32(flags); cmd.flags = cpu_to_le32(flags);
cmd.flags_mask = cpu_to_le32(flags_mask); cmd.flags_mask = cpu_to_le32(flags_mask);
return iwl_mvm_link_cmd_send(mvm, &cmd, FW_CTXT_ACTION_MODIFY); ret = iwl_mvm_link_cmd_send(mvm, &cmd, FW_CTXT_ACTION_MODIFY);
if (!ret) {
/* the FW is updated, so now it's possible to update the
* activation status. If activating a link, it was already
* checked above that we didn't reach the FW limit.
*/
if (link_info->active && !active)
mvmvif->fw_active_links_num--;
else if (!link_info->active && active)
mvmvif->fw_active_links_num++;
link_info->active = active;
}
return ret;
} }
int iwl_mvm_remove_link(struct iwl_mvm *mvm, struct ieee80211_vif *vif, int iwl_mvm_remove_link(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
struct ieee80211_bss_conf *link_conf) struct ieee80211_bss_conf *link_conf)
{ {
struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
unsigned int link_id = link_conf->link_id;
struct iwl_mvm_vif_link_info *link_info = mvmvif->link[link_id];
struct iwl_link_config_cmd cmd = {}; struct iwl_link_config_cmd cmd = {};
int ret; int ret;
/* FIXME: add proper link id allocation */ if (WARN_ON(!link_info ||
cmd.link_id = cpu_to_le32(mvmvif->id); link_info->fw_link_id == IWL_MVM_FW_LINK_ID_INVALID))
return -EINVAL;
cmd.link_id = cpu_to_le32(link_info->fw_link_id);
iwl_mvm_release_fw_link_id(mvm, link_info->fw_link_id);
link_info->fw_link_id = IWL_MVM_FW_LINK_ID_INVALID;
ret = iwl_mvm_link_cmd_send(mvm, &cmd, FW_CTXT_ACTION_REMOVE); ret = iwl_mvm_link_cmd_send(mvm, &cmd, FW_CTXT_ACTION_REMOVE);
if (!ret) if (!ret)
......
...@@ -1078,6 +1078,10 @@ static int iwl_mvm_mac_ctxt_send_beacon_v9(struct iwl_mvm *mvm, ...@@ -1078,6 +1078,10 @@ static int iwl_mvm_mac_ctxt_send_beacon_v9(struct iwl_mvm *mvm,
beacon_cmd.flags = cpu_to_le16(flags); beacon_cmd.flags = cpu_to_le16(flags);
beacon_cmd.byte_cnt = cpu_to_le16((u16)beacon->len); beacon_cmd.byte_cnt = cpu_to_le16((u16)beacon->len);
if (iwl_fw_lookup_cmd_ver(mvm->fw, BEACON_TEMPLATE_CMD, 0) > 12)
beacon_cmd.link_id =
cpu_to_le32(mvmvif->link[link_conf->link_id]->fw_link_id);
else
beacon_cmd.link_id = cpu_to_le32((u32)mvmvif->id); beacon_cmd.link_id = cpu_to_le32((u32)mvmvif->id);
if (vif->type == NL80211_IFTYPE_AP) if (vif->type == NL80211_IFTYPE_AP)
......
...@@ -36,6 +36,7 @@ static int iwl_mvm_mld_mac_add_interface(struct ieee80211_hw *hw, ...@@ -36,6 +36,7 @@ static int iwl_mvm_mld_mac_add_interface(struct ieee80211_hw *hw,
mvmvif->features |= hw->netdev_features; mvmvif->features |= hw->netdev_features;
/* the first link always points to the default one */ /* the first link always points to the default one */
mvmvif->deflink.fw_link_id = IWL_MVM_FW_LINK_ID_INVALID;
mvmvif->link[0] = &mvmvif->deflink; mvmvif->link[0] = &mvmvif->deflink;
ret = iwl_mvm_mld_mac_ctxt_add(mvm, vif); ret = iwl_mvm_mld_mac_ctxt_add(mvm, vif);
......
...@@ -197,8 +197,8 @@ int iwl_mvm_mld_add_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif, ...@@ -197,8 +197,8 @@ int iwl_mvm_mld_add_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
return iwl_mvm_mld_add_int_sta(mvm, bsta, queue, return iwl_mvm_mld_add_int_sta(mvm, bsta, queue,
ieee80211_vif_type_p2p(vif), ieee80211_vif_type_p2p(vif),
STATION_TYPE_BCAST_MGMT, STATION_TYPE_BCAST_MGMT,
mvmvif->id, baddr, IWL_MAX_TID_COUNT, mvm_link->fw_link_id, baddr,
&wdg_timeout); IWL_MAX_TID_COUNT, &wdg_timeout);
} }
/* Allocate a new station entry for the broadcast station to the given vif, /* Allocate a new station entry for the broadcast station to the given vif,
...@@ -232,7 +232,8 @@ int iwl_mvm_mld_add_mcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif, ...@@ -232,7 +232,8 @@ int iwl_mvm_mld_add_mcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
return iwl_mvm_mld_add_int_sta(mvm, msta, &mvm_link->cab_queue, return iwl_mvm_mld_add_int_sta(mvm, msta, &mvm_link->cab_queue,
vif->type, STATION_TYPE_MCAST, vif->type, STATION_TYPE_MCAST,
mvmvif->id, maddr, 0, &timeout); mvm_link->fw_link_id, maddr, 0,
&timeout);
} }
/* Allocate a new station entry for the sniffer station to the given vif, /* Allocate a new station entry for the sniffer station to the given vif,
...@@ -242,13 +243,15 @@ int iwl_mvm_mld_add_snif_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif, ...@@ -242,13 +243,15 @@ int iwl_mvm_mld_add_snif_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
struct ieee80211_bss_conf *link_conf) struct ieee80211_bss_conf *link_conf)
{ {
struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
struct iwl_mvm_vif_link_info *mvm_link =
mvmvif->link[link_conf->link_id];
lockdep_assert_held(&mvm->mutex); lockdep_assert_held(&mvm->mutex);
return iwl_mvm_mld_add_int_sta(mvm, &mvm->snif_sta, &mvm->snif_queue, return iwl_mvm_mld_add_int_sta(mvm, &mvm->snif_sta, &mvm->snif_queue,
vif->type, STATION_TYPE_BCAST_MGMT, vif->type, STATION_TYPE_BCAST_MGMT,
mvmvif->id, NULL, IWL_MAX_TID_COUNT, mvm_link->fw_link_id, NULL,
NULL); IWL_MAX_TID_COUNT, NULL);
} }
int iwl_mvm_mld_add_aux_sta(struct iwl_mvm *mvm, u32 lmac_id) int iwl_mvm_mld_add_aux_sta(struct iwl_mvm *mvm, u32 lmac_id)
...@@ -380,15 +383,23 @@ static int iwl_mvm_mld_cfg_sta(struct iwl_mvm *mvm, struct ieee80211_sta *sta, ...@@ -380,15 +383,23 @@ static int iwl_mvm_mld_cfg_sta(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
struct ieee80211_vif *vif) struct ieee80211_vif *vif)
{ {
struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta);
struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); struct iwl_mvm_vif *mvm_vif = iwl_mvm_vif_from_mac80211(vif);
struct iwl_mvm_sta_cfg_cmd cmd = { struct iwl_mvm_sta_cfg_cmd cmd = {
.sta_id = cpu_to_le32(mvm_sta->deflink.sta_id), .sta_id = cpu_to_le32(mvm_sta->deflink.sta_id),
.link_id = cpu_to_le32(mvmvif->id),
.station_type = cpu_to_le32(mvm_sta->sta_type), .station_type = cpu_to_le32(mvm_sta->sta_type),
.mfp = cpu_to_le32(sta->mfp), .mfp = cpu_to_le32(sta->mfp),
}; };
/* FIXME: use proper link_id */
unsigned int link_id = 0;
struct iwl_mvm_vif_link_info *link_info = mvm_vif->link[link_id];
u32 agg_size = 0, mpdu_dens = 0; u32 agg_size = 0, mpdu_dens = 0;
/* when adding sta, link should exist in FW */
if (WARN_ON(link_info->fw_link_id == IWL_MVM_FW_LINK_ID_INVALID))
return -EINVAL;
cmd.link_id = cpu_to_le32(link_info->fw_link_id);
/* For now the link addr is the same as the mld addr */ /* For now the link addr is the same as the mld addr */
memcpy(&cmd.peer_mld_address, sta->addr, ETH_ALEN); memcpy(&cmd.peer_mld_address, sta->addr, ETH_ALEN);
memcpy(&cmd.peer_link_address, sta->addr, ETH_ALEN); memcpy(&cmd.peer_link_address, sta->addr, ETH_ALEN);
......
...@@ -73,6 +73,9 @@ ...@@ -73,6 +73,9 @@
/* offchannel queue towards mac80211 */ /* offchannel queue towards mac80211 */
#define IWL_MVM_OFFCHANNEL_QUEUE 0 #define IWL_MVM_OFFCHANNEL_QUEUE 0
/* invalid value for FW link id */
#define IWL_MVM_FW_LINK_ID_INVALID 0xff
extern const struct ieee80211_ops iwl_mvm_hw_ops; extern const struct ieee80211_ops iwl_mvm_hw_ops;
extern const struct ieee80211_ops iwl_mvm_mld_hw_ops; extern const struct ieee80211_ops iwl_mvm_mld_hw_ops;
...@@ -283,6 +286,7 @@ struct iwl_probe_resp_data { ...@@ -283,6 +286,7 @@ struct iwl_probe_resp_data {
/** /**
* struct iwl_mvm_vif_link_info - per link data in Virtual Interface * struct iwl_mvm_vif_link_info - per link data in Virtual Interface
* @ap_sta_id: the sta_id of the AP - valid only if VIF type is STA * @ap_sta_id: the sta_id of the AP - valid only if VIF type is STA
* @fw_link_id: the id of the link according to the FW API
* @bssid: BSSID for this (client) interface * @bssid: BSSID for this (client) interface
* @bcast_sta: station used for broadcast packets. Used by the following * @bcast_sta: station used for broadcast packets. Used by the following
* vifs: P2P_DEVICE, GO and AP. * vifs: P2P_DEVICE, GO and AP.
...@@ -299,6 +303,7 @@ struct iwl_probe_resp_data { ...@@ -299,6 +303,7 @@ struct iwl_probe_resp_data {
struct iwl_mvm_vif_link_info { struct iwl_mvm_vif_link_info {
u8 bssid[ETH_ALEN]; u8 bssid[ETH_ALEN];
u8 ap_sta_id; u8 ap_sta_id;
u8 fw_link_id;
struct iwl_mvm_int_sta bcast_sta; struct iwl_mvm_int_sta bcast_sta;
struct iwl_mvm_int_sta mcast_sta; struct iwl_mvm_int_sta mcast_sta;
...@@ -312,6 +317,7 @@ struct iwl_mvm_vif_link_info { ...@@ -312,6 +317,7 @@ struct iwl_mvm_vif_link_info {
struct iwl_probe_resp_data __rcu *probe_resp_data; struct iwl_probe_resp_data __rcu *probe_resp_data;
bool he_ru_2mhz_block; bool he_ru_2mhz_block;
bool active;
u16 cab_queue; u16 cab_queue;
/* Assigned while mac80211 has the link in a channel context, /* Assigned while mac80211 has the link in a channel context,
...@@ -349,6 +355,7 @@ struct iwl_mvm_vif_link_info { ...@@ -349,6 +355,7 @@ struct iwl_mvm_vif_link_info {
* @csa_failed: CSA failed to schedule time event, report an error later * @csa_failed: CSA failed to schedule time event, report an error later
* @csa_bcn_pending: indicates that we are waiting for a beacon on a new channel * @csa_bcn_pending: indicates that we are waiting for a beacon on a new channel
* @features: hw features active for this vif * @features: hw features active for this vif
* @fw_active_links_num: the number of activated links
*/ */
struct iwl_mvm_vif { struct iwl_mvm_vif {
struct iwl_mvm *mvm; struct iwl_mvm *mvm;
...@@ -432,6 +439,8 @@ struct iwl_mvm_vif { ...@@ -432,6 +439,8 @@ struct iwl_mvm_vif {
struct ieee80211_key_conf __rcu *keys[2]; struct ieee80211_key_conf __rcu *keys[2];
} bcn_prot; } bcn_prot;
u32 fw_active_links_num;
struct iwl_mvm_vif_link_info deflink; struct iwl_mvm_vif_link_info deflink;
struct iwl_mvm_vif_link_info *link[IEEE80211_MLD_MAX_NUM_LINKS]; struct iwl_mvm_vif_link_info *link[IEEE80211_MLD_MAX_NUM_LINKS];
}; };
...@@ -896,6 +905,7 @@ struct iwl_mvm { ...@@ -896,6 +905,7 @@ struct iwl_mvm {
/* data related to data path */ /* data related to data path */
struct iwl_rx_phy_info last_phy_info; struct iwl_rx_phy_info last_phy_info;
struct ieee80211_sta __rcu *fw_id_to_mac_id[IWL_MVM_STATION_COUNT_MAX]; struct ieee80211_sta __rcu *fw_id_to_mac_id[IWL_MVM_STATION_COUNT_MAX];
unsigned long fw_link_ids_map;
u8 rx_ba_sessions; u8 rx_ba_sessions;
/* configured by mac80211 */ /* configured by mac80211 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment