1. 30 3月, 2023 1 次提交
    • G
      wifi: iwlwifi: mvm: vif preparation for MLO · 650cadb7
      Gregory Greenman 提交于
      In MLO, some fields of iwl_mvm_vif should be defined in the
      context of a link. Define a separate structure for these fields and
      add a deflink object to hold it as part of iwl_mvm_vif. Non-MLO legacy
      code will use only deflink object while MLO related code will use the
      corresponding link from the link array.
      
      It follows the strategy applied in mac80211 for introducing MLO
      changes.
      
      The below spatch takes care of updating all driver code to access
      fields separated into MLD specific data structure via deflink (need
      to convert all references to the fields listed in var to deflink.var
      and also to take care of calls like iwl_mvm_vif_from_mac80211(vif)->field).
      
        @iwl_mld_vif@
        struct iwl_mvm_vif *v;
        struct ieee80211_vif *vv;
        identifier fn;
        identifier var = {bssid, ap_sta_id, bcast_sta, mcast_sta,
                          beacon_stats, smps_requests, probe_resp_data,
      		    he_ru_2mhz_block, cab_queue, phy_ctxt,
                          queue_params};
        @@
      
        (
          v->
        -    var
        +    deflink.var
        |
          fn(vv)->
        -    var
        +    deflink.var
        )
      Signed-off-by: NGregory Greenman <gregory.greenman@intel.com>
      Link: https://lore.kernel.org/r/20230328104948.4896576f0a9f.Ifaf0187c96b9fe52b24bd629331165831a877691@changeidSigned-off-by: NJohannes Berg <johannes.berg@intel.com>
      650cadb7
  2. 22 3月, 2023 6 次提交
  3. 15 3月, 2023 7 次提交
  4. 08 3月, 2023 1 次提交
  5. 06 1月, 2023 1 次提交
  6. 28 11月, 2022 1 次提交
  7. 10 11月, 2022 3 次提交
  8. 28 9月, 2022 1 次提交
    • K
      wifi: iwlwifi: Track scan_cmd allocation size explicitly · 72c08d9f
      Kees Cook 提交于
      In preparation for reducing the use of ksize(), explicitly track the
      size of scan_cmd allocations. This also allows for noticing if the scan
      size changes unexpectedly. Note that using ksize() was already incorrect
      here, in the sense that ksize() would not match the actual allocation
      size, which would trigger future run-time allocation bounds checking.
      (In other words, memset() may know how large scan_cmd was allocated for,
      but ksize() will return the upper bounds of the actually allocated memory,
      causing a run-time warning about an overflow.)
      
      Cc: Gregory Greenman <gregory.greenman@intel.com>
      Cc: Kalle Valo <kvalo@kernel.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Paolo Abeni <pabeni@redhat.com>
      Cc: Luca Coelho <luciano.coelho@intel.com>
      Cc: Johannes Berg <johannes.berg@intel.com>
      Cc: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
      Cc: Miri Korenblit <miriam.rachel.korenblit@intel.com>
      Cc: Ilan Peer <ilan.peer@intel.com>
      Cc: linux-wireless@vger.kernel.org
      Cc: netdev@vger.kernel.org
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Signed-off-by: NKalle Valo <kvalo@kernel.org>
      Link: https://lore.kernel.org/r/20220923220853.3302056-1-keescook@chromium.org
      72c08d9f
  9. 18 9月, 2022 1 次提交
  10. 18 5月, 2022 1 次提交
  11. 10 3月, 2022 1 次提交
  12. 18 2月, 2022 6 次提交
  13. 03 2月, 2022 2 次提交
  14. 21 12月, 2021 2 次提交
  15. 08 12月, 2021 2 次提交
  16. 27 11月, 2021 3 次提交
  17. 23 11月, 2021 1 次提交