mirror_ubuntu-kernels/drivers/net/wireless/intel/iwlwifi/mvm
Sriram R 046d2e7c50 mac80211: prepare sta handling for MLO support
Currently in mac80211 each STA object is represented
using sta_info datastructure with the associated
STA specific information and drivers access ieee80211_sta
part of it.

With MLO (Multi Link Operation) support being added
in 802.11be standard, though the association is logically
with a single Multi Link capable STA, at the physical level
communication can happen via different advertised
links (uniquely identified by Channel, operating class,
BSSID) and hence the need to handle multiple link
STA parameters within a composite sta_info object
called the MLD STA. The different link STA part of
MLD STA are identified using the link address which can
be same or different as the MLD STA address and unique
link id based on the link vif.

To support extension of such a model, the sta_info
datastructure is modified to hold multiple link STA
objects with link specific params currently within
sta_info moved to this new structure. Similarly this is
done for ieee80211_sta as well which will be accessed
within mac80211 as well as by drivers, hence trivial
driver changes are expected to support this.

For current non MLO supported drivers, only one link STA
is present and link information is accessed via 'deflink'
member.

For MLO drivers, we still need to define the APIs etc. to
get the correct link ID and access the correct part of
the station info.

Currently in mac80211, all link STA info are accessed directly
via deflink. These will be updated to access via link pointers
indexed by link id with MLO support patches, with link id
being 0 for non MLO supported cases.

Except for couple of macro related changes, below spatch takes
care of updating mac80211 and driver code to access to the
link STA info via deflink.

  @ieee80211_sta@
  struct ieee80211_sta *s;
  struct sta_info *si;
  identifier var = {supp_rates, ht_cap, vht_cap, he_cap, he_6ghz_capa, eht_cap, rx_nss, bandwidth, txpwr};
  @@

  (
    s->
  -    var
  +    deflink.var
  |
   si->sta.
  -    var
  +    deflink.var
  )

  @sta_info@
  struct sta_info *si;
  identifier var = {gtk, pcpu_rx_stats, rx_stats, rx_stats_avg, status_stats, tx_stats, cur_max_bandwidth};
  @@

  (
    si->
  -    var
  +    deflink.var
  )

Signed-off-by: Sriram R <quic_srirrama@quicinc.com>
Link: https://lore.kernel.org/r/1649086883-13246-1-git-send-email-quic_srirrama@quicinc.com
[remove MLO-drivers notes from commit message, not clear yet; run spatch]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2022-04-11 16:42:03 +02:00
..
binding.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
coex.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
constants.h iwlwifi: mvm: change old-SN drop threshold 2021-12-21 12:35:06 +02:00
d3.c mac80211: prepare sta handling for MLO support 2022-04-11 16:42:03 +02:00
debugfs-vif.c iwlwifi: mvm: pass the clock type to iwl_mvm_get_sync_time() 2021-06-22 15:11:09 +03:00
debugfs.c brcmfmac 2022-03-11 13:00:17 -08:00
debugfs.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
ftm-initiator.c iwlwifi: make iwl_fw_lookup_cmd_ver() take a cmd_id 2022-02-18 10:40:50 +02:00
ftm-responder.c iwlwifi: make iwl_fw_lookup_cmd_ver() take a cmd_id 2022-02-18 10:40:50 +02:00
fw-api.h iwlwifi: mvm/api: define system control command 2021-12-07 20:06:45 +02:00
fw.c iwlwifi: mvm: Don't fail if PPAG isn't supported 2022-03-22 16:18:27 -07:00
led.c iwlwifi: mvm: Fix fall-through warnings for Clang 2020-12-11 20:20:24 +02:00
mac80211.c mac80211: prepare sta handling for MLO support 2022-04-11 16:42:03 +02:00
mac-ctxt.c iwlwifi: make iwl_fw_lookup_cmd_ver() take a cmd_id 2022-02-18 10:40:50 +02:00
Makefile iwlwifi: mvm: add vendor commands needed for iwlmei 2021-11-26 18:31:48 +02:00
mvm.h brcmfmac 2022-03-11 13:00:17 -08:00
nvm.c iwlwifi: mvm: fix WGDS table print in iwl_mvm_chub_update_mcc() 2021-10-28 12:04:11 +03:00
offloading.c iwlwifi: make iwl_fw_lookup_cmd_ver() take a cmd_id 2022-02-18 10:40:50 +02:00
ops.c brcmfmac 2022-03-11 13:00:17 -08:00
phy-ctxt.c iwlwifi: mvm: move only to an enabled channel 2022-02-18 10:40:55 +02:00
power.c iwlwifi: mvm: set inactivity timeouts also for PS-poll 2021-10-22 10:49:04 +03:00
quota.c iwlwifi: prefer WIDE_ID() over iwl_cmd_id() 2022-02-18 10:40:50 +02:00
rfi.c iwlwifi: mvm: rfi: use kmemdup() to replace kzalloc + memcpy 2022-02-18 10:40:56 +02:00
rs-fw.c mac80211: prepare sta handling for MLO support 2022-04-11 16:42:03 +02:00
rs.c mac80211: prepare sta handling for MLO support 2022-04-11 16:42:03 +02:00
rs.h iwlwifi: mvm: Support version 3 of tlc_update_notif. 2021-10-22 10:49:00 +03:00
rx.c iwlwifi: mvm: fix off by one in iwl_mvm_stat_iterator_all_macs() 2022-02-18 10:40:55 +02:00
rxmq.c iwlwifi: avoid void pointer arithmetic 2022-02-18 10:40:50 +02:00
scan.c iwlwifi: mvm: Consider P2P GO operation during scan 2022-02-18 10:40:53 +02:00
sf.c mac80211: prepare sta handling for MLO support 2022-04-11 16:42:03 +02:00
sta.c mac80211: prepare sta handling for MLO support 2022-04-11 16:42:03 +02:00
sta.h iwlwifi: mvm: offload channel switch timing to FW 2022-02-18 10:40:49 +02:00
tdls.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
testmode.h
time-event.c iwlwifi: make iwl_fw_lookup_cmd_ver() take a cmd_id 2022-02-18 10:40:50 +02:00
time-event.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
tt.c iwlwifi: mvm: add support for CT-KILL notification version 2 2022-02-18 10:40:51 +02:00
tx.c mac80211: prepare sta handling for MLO support 2022-04-11 16:42:03 +02:00
utils.c iwlwifi: mvm: make iwl_mvm_reconfig_scd() static 2022-02-18 10:40:54 +02:00
vendor-cmd.c iwlwifi: mvm: return value for request_ownership 2022-03-02 22:37:25 +01:00