1. 20 6月, 2022 3 次提交
    • J
      wifi: mac80211: move some future per-link data to bss_conf · d0a9123e
      Johannes Berg 提交于
      To add MLD, reuse the bss_conf structure later for per-link
      information, so move some things into it that are per link.
      
      Most transformations were done with the following spatch:
      
          @@
          expression sdata;
          identifier var = { chanctx_conf, mu_mimo_owner, csa_active, color_change_active, color_change_color };
          @@
          -sdata->vif.var
          +sdata->vif.bss_conf.var
      
          @@
          struct ieee80211_vif *vif;
          identifier var = { chanctx_conf, mu_mimo_owner, csa_active, color_change_active, color_change_color };
          @@
          -vif->var
          +vif->bss_conf.var
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      d0a9123e
    • J
      wifi: cfg80211: do some rework towards MLO link APIs · 7b0a0e3c
      Johannes Berg 提交于
      In order to support multi-link operation with multiple links,
      start adding some APIs. The notable addition here is to have
      the link ID in a new nl80211 attribute, that will be used to
      differentiate the links in many nl80211 operations.
      
      So far, this patch adds the netlink NL80211_ATTR_MLO_LINK_ID
      attribute (as well as the NL80211_ATTR_MLO_LINKS attribute)
      and plugs it through the system in some places, checking the
      validity etc. along with other infrastructure needed for it.
      
      For now, I've decided to include only the over-the-air link
      ID in the API. I know we discussed that we eventually need to
      have to have other ways of identifying a link, but for local
      AP mode and auth/assoc commands as well as set_key etc. we'll
      use the OTA ID.
      
      Also included in this patch is some refactoring of the data
      structures in struct wireless_dev, splitting for the first
      time the data into type dependent pieces, to make reasoning
      about these things easier.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      7b0a0e3c
    • J
      wifi: mac80211: reject WEP or pairwise keys with key ID > 3 · 92ea8df1
      Johannes Berg 提交于
      We don't really care too much right now since our data
      structures are set up to not have a problem with this,
      but clearly it's wrong to accept WEP and pairwise keys
      with key ID > 3.
      
      However, with MLD we need to split into per-link (GTK,
      IGTK, BIGTK) and per interface/MLD (including WEP) keys
      so make sure this is not a problem.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      92ea8df1
  2. 15 6月, 2022 27 次提交
  3. 14 6月, 2022 10 次提交