wifi: iwlwifi: add iwlmld sub-driver
iwlwifi is the driver of all Intel wifi devices since 2008.
Since then, the hardware has changed a lot, but the firmware
API has changed even more. The need to keep one driver that
supports all those different APIs led us to introduce a new
architecture circa 2012 which allowed us to keep the same
interface to the hardware (DMAs, Tx queues, etc...) with a
new layer to implement the mid-layer between mac80211 and
the firmware. The first component is called the 'transport'
and the latter is called 'operation_mode' a.k.a op_mode.
In 2013 we took advantage of the new architecture to
introduce iwlmvm which allowed us to implement the, then,
new firmware API. This op_mode supports 7260 and up, those
devices supports support at least VHT.
Since then, wifi evolved and so did the firmware. It became
much bigger and took a lot of functionality from the driver.
It became increasingly hard to keep the same op_mode for the
newest devices and we experienced frequent regressions on
older devices. In order to avoid those regressions and keep
the code maintainable, we decided it was about time to start
a new op_mode.
iwlmld is a new op_mode that supports BE200 or newer if the
firmware being used is 97.ucode or newer. If the user has
an older devices or BE200 with .96.ucode, iwlmvm will be
loaded. Of course, this op_mode selection is seamless.
All the features supported in iwlmvm are supported in
iwlmld besides a few seldom used use cases: injection and
Hotspot 2.0. Those are under work.
A few points about the implementation:
* iwlmld doesn't have any mutexes, it relies on the
wiphy_lock
* iwlmld is more "resource oriented": stations, links and
interfaces are allocated and freed only after all the
relevant flows are completed.
* Firmware notifications' sizes are validated in a more
structured way.
We would love to see this new op_mode merged in 6.15. The
firmware for this new driver (.97.ucode) is not yet publicly
available but it'll be sent very soon.
People eager to get an early version of this firmware can
contact Emmanuel at:
emmanuel.grumbach@intel.com
I've listed the people who directly contributed
code, but many others from various teams have
contributed in other ways.
Co-developed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Co-developed-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Co-developed-by: Daniel Gabay <daniel.gabay@intel.com>
Signed-off-by: Daniel Gabay <daniel.gabay@intel.com>
Co-developed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Co-developed-by: Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Signed-off-by: Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Co-developed-by: Yedidya Benshimol <yedidya.ben.shimol@intel.com>
Signed-off-by: Yedidya Benshimol <yedidya.ben.shimol@intel.com>
Co-developed-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Co-developed-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://lore.kernel.org/linux-wireless/20250216094321.537988-1-miriam.rachel.korenblit@intel.com/
[fix Kconfig, fix api/phy.h includes, SPDX tag and coding
style issues, duplicated includes per 0-day robot]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2025-02-16 11:42:40 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2024-2025 Intel Corporation
|
|
|
|
*/
|
|
|
|
#ifndef __iwl_mld_mlo_h__
|
|
|
|
#define __iwl_mld_mlo_h__
|
|
|
|
|
|
|
|
#include <linux/ieee80211.h>
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <net/mac80211.h>
|
|
|
|
#include "iwl-config.h"
|
|
|
|
#include "iwl-trans.h"
|
|
|
|
#include "iface.h"
|
2025-03-13 00:22:28 +02:00
|
|
|
#include "phy.h"
|
wifi: iwlwifi: add iwlmld sub-driver
iwlwifi is the driver of all Intel wifi devices since 2008.
Since then, the hardware has changed a lot, but the firmware
API has changed even more. The need to keep one driver that
supports all those different APIs led us to introduce a new
architecture circa 2012 which allowed us to keep the same
interface to the hardware (DMAs, Tx queues, etc...) with a
new layer to implement the mid-layer between mac80211 and
the firmware. The first component is called the 'transport'
and the latter is called 'operation_mode' a.k.a op_mode.
In 2013 we took advantage of the new architecture to
introduce iwlmvm which allowed us to implement the, then,
new firmware API. This op_mode supports 7260 and up, those
devices supports support at least VHT.
Since then, wifi evolved and so did the firmware. It became
much bigger and took a lot of functionality from the driver.
It became increasingly hard to keep the same op_mode for the
newest devices and we experienced frequent regressions on
older devices. In order to avoid those regressions and keep
the code maintainable, we decided it was about time to start
a new op_mode.
iwlmld is a new op_mode that supports BE200 or newer if the
firmware being used is 97.ucode or newer. If the user has
an older devices or BE200 with .96.ucode, iwlmvm will be
loaded. Of course, this op_mode selection is seamless.
All the features supported in iwlmvm are supported in
iwlmld besides a few seldom used use cases: injection and
Hotspot 2.0. Those are under work.
A few points about the implementation:
* iwlmld doesn't have any mutexes, it relies on the
wiphy_lock
* iwlmld is more "resource oriented": stations, links and
interfaces are allocated and freed only after all the
relevant flows are completed.
* Firmware notifications' sizes are validated in a more
structured way.
We would love to see this new op_mode merged in 6.15. The
firmware for this new driver (.97.ucode) is not yet publicly
available but it'll be sent very soon.
People eager to get an early version of this firmware can
contact Emmanuel at:
emmanuel.grumbach@intel.com
I've listed the people who directly contributed
code, but many others from various teams have
contributed in other ways.
Co-developed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Co-developed-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Co-developed-by: Daniel Gabay <daniel.gabay@intel.com>
Signed-off-by: Daniel Gabay <daniel.gabay@intel.com>
Co-developed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Co-developed-by: Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Signed-off-by: Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Co-developed-by: Yedidya Benshimol <yedidya.ben.shimol@intel.com>
Signed-off-by: Yedidya Benshimol <yedidya.ben.shimol@intel.com>
Co-developed-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Co-developed-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://lore.kernel.org/linux-wireless/20250216094321.537988-1-miriam.rachel.korenblit@intel.com/
[fix Kconfig, fix api/phy.h includes, SPDX tag and coding
style issues, duplicated includes per 0-day robot]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2025-02-16 11:42:40 +02:00
|
|
|
|
|
|
|
struct iwl_mld;
|
|
|
|
|
|
|
|
void iwl_mld_emlsr_prevent_done_wk(struct wiphy *wiphy, struct wiphy_work *wk);
|
|
|
|
void iwl_mld_emlsr_tmp_non_bss_done_wk(struct wiphy *wiphy,
|
|
|
|
struct wiphy_work *wk);
|
|
|
|
|
|
|
|
static inline bool iwl_mld_emlsr_active(struct ieee80211_vif *vif)
|
|
|
|
{
|
|
|
|
/* Set on phy context activation, so should be a good proxy */
|
|
|
|
return !!(vif->driver_flags & IEEE80211_VIF_EML_ACTIVE);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline bool iwl_mld_vif_has_emlsr_cap(struct ieee80211_vif *vif)
|
|
|
|
{
|
|
|
|
struct iwl_mld_vif *mld_vif = iwl_mld_vif_from_mac80211(vif);
|
|
|
|
|
|
|
|
/* We only track/permit EMLSR state once authorized */
|
|
|
|
if (!mld_vif->authorized)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
/* No EMLSR on dual radio devices */
|
|
|
|
return ieee80211_vif_type_p2p(vif) == NL80211_IFTYPE_STATION &&
|
|
|
|
ieee80211_vif_is_mld(vif) &&
|
|
|
|
vif->cfg.eml_cap & IEEE80211_EML_CAP_EMLSR_SUPP &&
|
2025-05-03 22:44:34 +03:00
|
|
|
!CSR_HW_RFID_IS_CDB(mld_vif->mld->trans->info.hw_rf_id);
|
wifi: iwlwifi: add iwlmld sub-driver
iwlwifi is the driver of all Intel wifi devices since 2008.
Since then, the hardware has changed a lot, but the firmware
API has changed even more. The need to keep one driver that
supports all those different APIs led us to introduce a new
architecture circa 2012 which allowed us to keep the same
interface to the hardware (DMAs, Tx queues, etc...) with a
new layer to implement the mid-layer between mac80211 and
the firmware. The first component is called the 'transport'
and the latter is called 'operation_mode' a.k.a op_mode.
In 2013 we took advantage of the new architecture to
introduce iwlmvm which allowed us to implement the, then,
new firmware API. This op_mode supports 7260 and up, those
devices supports support at least VHT.
Since then, wifi evolved and so did the firmware. It became
much bigger and took a lot of functionality from the driver.
It became increasingly hard to keep the same op_mode for the
newest devices and we experienced frequent regressions on
older devices. In order to avoid those regressions and keep
the code maintainable, we decided it was about time to start
a new op_mode.
iwlmld is a new op_mode that supports BE200 or newer if the
firmware being used is 97.ucode or newer. If the user has
an older devices or BE200 with .96.ucode, iwlmvm will be
loaded. Of course, this op_mode selection is seamless.
All the features supported in iwlmvm are supported in
iwlmld besides a few seldom used use cases: injection and
Hotspot 2.0. Those are under work.
A few points about the implementation:
* iwlmld doesn't have any mutexes, it relies on the
wiphy_lock
* iwlmld is more "resource oriented": stations, links and
interfaces are allocated and freed only after all the
relevant flows are completed.
* Firmware notifications' sizes are validated in a more
structured way.
We would love to see this new op_mode merged in 6.15. The
firmware for this new driver (.97.ucode) is not yet publicly
available but it'll be sent very soon.
People eager to get an early version of this firmware can
contact Emmanuel at:
emmanuel.grumbach@intel.com
I've listed the people who directly contributed
code, but many others from various teams have
contributed in other ways.
Co-developed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Co-developed-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Co-developed-by: Daniel Gabay <daniel.gabay@intel.com>
Signed-off-by: Daniel Gabay <daniel.gabay@intel.com>
Co-developed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Co-developed-by: Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Signed-off-by: Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Co-developed-by: Yedidya Benshimol <yedidya.ben.shimol@intel.com>
Signed-off-by: Yedidya Benshimol <yedidya.ben.shimol@intel.com>
Co-developed-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Co-developed-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://lore.kernel.org/linux-wireless/20250216094321.537988-1-miriam.rachel.korenblit@intel.com/
[fix Kconfig, fix api/phy.h includes, SPDX tag and coding
style issues, duplicated includes per 0-day robot]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2025-02-16 11:42:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline int
|
|
|
|
iwl_mld_max_active_links(struct iwl_mld *mld, struct ieee80211_vif *vif)
|
|
|
|
{
|
|
|
|
if (vif->type == NL80211_IFTYPE_AP)
|
|
|
|
return mld->fw->ucode_capa.num_beacons;
|
|
|
|
|
|
|
|
if (ieee80211_vif_type_p2p(vif) == NL80211_IFTYPE_STATION)
|
|
|
|
return IWL_FW_MAX_ACTIVE_LINKS_NUM;
|
|
|
|
|
|
|
|
/* For now, do not accept more links on other interface types */
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int
|
|
|
|
iwl_mld_count_active_links(struct iwl_mld *mld, struct ieee80211_vif *vif)
|
|
|
|
{
|
|
|
|
struct iwl_mld_vif *mld_vif = iwl_mld_vif_from_mac80211(vif);
|
|
|
|
struct iwl_mld_link *mld_link;
|
|
|
|
int n_active = 0;
|
|
|
|
|
|
|
|
for_each_mld_vif_valid_link(mld_vif, mld_link) {
|
|
|
|
if (rcu_access_pointer(mld_link->chan_ctx))
|
|
|
|
n_active++;
|
|
|
|
}
|
|
|
|
|
|
|
|
return n_active;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline u8 iwl_mld_get_primary_link(struct ieee80211_vif *vif)
|
|
|
|
{
|
|
|
|
struct iwl_mld_vif *mld_vif = iwl_mld_vif_from_mac80211(vif);
|
|
|
|
|
|
|
|
lockdep_assert_wiphy(mld_vif->mld->wiphy);
|
|
|
|
|
|
|
|
if (!ieee80211_vif_is_mld(vif) || WARN_ON(!vif->active_links))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
/* In AP mode, there is no primary link */
|
|
|
|
if (vif->type == NL80211_IFTYPE_AP)
|
|
|
|
return __ffs(vif->active_links);
|
|
|
|
|
|
|
|
if (iwl_mld_emlsr_active(vif) &&
|
|
|
|
!WARN_ON(!(BIT(mld_vif->emlsr.primary) & vif->active_links)))
|
|
|
|
return mld_vif->emlsr.primary;
|
|
|
|
|
|
|
|
return __ffs(vif->active_links);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* For non-MLO/single link, this will return the deflink/single active link,
|
|
|
|
* respectively
|
|
|
|
*/
|
|
|
|
static inline u8 iwl_mld_get_other_link(struct ieee80211_vif *vif, u8 link_id)
|
|
|
|
{
|
|
|
|
switch (hweight16(vif->active_links)) {
|
|
|
|
case 0:
|
|
|
|
return 0;
|
|
|
|
default:
|
|
|
|
WARN_ON(1);
|
|
|
|
fallthrough;
|
|
|
|
case 1:
|
|
|
|
return __ffs(vif->active_links);
|
|
|
|
case 2:
|
|
|
|
return __ffs(vif->active_links & ~BIT(link_id));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
s8 iwl_mld_get_emlsr_rssi_thresh(struct iwl_mld *mld,
|
|
|
|
const struct cfg80211_chan_def *chandef,
|
|
|
|
bool low);
|
|
|
|
|
|
|
|
/* EMLSR block/unblock and exit */
|
|
|
|
void iwl_mld_block_emlsr(struct iwl_mld *mld, struct ieee80211_vif *vif,
|
|
|
|
enum iwl_mld_emlsr_blocked reason, u8 link_to_keep);
|
|
|
|
int iwl_mld_block_emlsr_sync(struct iwl_mld *mld, struct ieee80211_vif *vif,
|
|
|
|
enum iwl_mld_emlsr_blocked reason, u8 link_to_keep);
|
|
|
|
void iwl_mld_unblock_emlsr(struct iwl_mld *mld, struct ieee80211_vif *vif,
|
|
|
|
enum iwl_mld_emlsr_blocked reason);
|
|
|
|
void iwl_mld_exit_emlsr(struct iwl_mld *mld, struct ieee80211_vif *vif,
|
|
|
|
enum iwl_mld_emlsr_exit exit, u8 link_to_keep);
|
|
|
|
|
|
|
|
int iwl_mld_emlsr_check_non_bss_block(struct iwl_mld *mld,
|
|
|
|
int pending_link_changes);
|
|
|
|
|
|
|
|
void iwl_mld_handle_emlsr_mode_notif(struct iwl_mld *mld,
|
|
|
|
struct iwl_rx_packet *pkt);
|
|
|
|
void iwl_mld_handle_emlsr_trans_fail_notif(struct iwl_mld *mld,
|
|
|
|
struct iwl_rx_packet *pkt);
|
|
|
|
|
|
|
|
void iwl_mld_emlsr_check_tpt(struct wiphy *wiphy, struct wiphy_work *wk);
|
|
|
|
void iwl_mld_emlsr_unblock_tpt_wk(struct wiphy *wiphy, struct wiphy_work *wk);
|
|
|
|
|
|
|
|
void iwl_mld_select_links(struct iwl_mld *mld);
|
|
|
|
|
|
|
|
void iwl_mld_emlsr_check_bt(struct iwl_mld *mld);
|
|
|
|
|
2025-03-13 00:22:28 +02:00
|
|
|
void iwl_mld_emlsr_check_chan_load(struct ieee80211_hw *hw,
|
|
|
|
struct iwl_mld_phy *phy,
|
|
|
|
u32 prev_chan_load_not_by_us);
|
wifi: iwlwifi: add iwlmld sub-driver
iwlwifi is the driver of all Intel wifi devices since 2008.
Since then, the hardware has changed a lot, but the firmware
API has changed even more. The need to keep one driver that
supports all those different APIs led us to introduce a new
architecture circa 2012 which allowed us to keep the same
interface to the hardware (DMAs, Tx queues, etc...) with a
new layer to implement the mid-layer between mac80211 and
the firmware. The first component is called the 'transport'
and the latter is called 'operation_mode' a.k.a op_mode.
In 2013 we took advantage of the new architecture to
introduce iwlmvm which allowed us to implement the, then,
new firmware API. This op_mode supports 7260 and up, those
devices supports support at least VHT.
Since then, wifi evolved and so did the firmware. It became
much bigger and took a lot of functionality from the driver.
It became increasingly hard to keep the same op_mode for the
newest devices and we experienced frequent regressions on
older devices. In order to avoid those regressions and keep
the code maintainable, we decided it was about time to start
a new op_mode.
iwlmld is a new op_mode that supports BE200 or newer if the
firmware being used is 97.ucode or newer. If the user has
an older devices or BE200 with .96.ucode, iwlmvm will be
loaded. Of course, this op_mode selection is seamless.
All the features supported in iwlmvm are supported in
iwlmld besides a few seldom used use cases: injection and
Hotspot 2.0. Those are under work.
A few points about the implementation:
* iwlmld doesn't have any mutexes, it relies on the
wiphy_lock
* iwlmld is more "resource oriented": stations, links and
interfaces are allocated and freed only after all the
relevant flows are completed.
* Firmware notifications' sizes are validated in a more
structured way.
We would love to see this new op_mode merged in 6.15. The
firmware for this new driver (.97.ucode) is not yet publicly
available but it'll be sent very soon.
People eager to get an early version of this firmware can
contact Emmanuel at:
emmanuel.grumbach@intel.com
I've listed the people who directly contributed
code, but many others from various teams have
contributed in other ways.
Co-developed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Co-developed-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Co-developed-by: Daniel Gabay <daniel.gabay@intel.com>
Signed-off-by: Daniel Gabay <daniel.gabay@intel.com>
Co-developed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Co-developed-by: Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Signed-off-by: Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Co-developed-by: Yedidya Benshimol <yedidya.ben.shimol@intel.com>
Signed-off-by: Yedidya Benshimol <yedidya.ben.shimol@intel.com>
Co-developed-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Co-developed-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://lore.kernel.org/linux-wireless/20250216094321.537988-1-miriam.rachel.korenblit@intel.com/
[fix Kconfig, fix api/phy.h includes, SPDX tag and coding
style issues, duplicated includes per 0-day robot]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2025-02-16 11:42:40 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* iwl_mld_retry_emlsr - Retry entering EMLSR
|
|
|
|
* @mld: MLD context
|
|
|
|
* @vif: VIF to retry EMLSR on
|
|
|
|
*
|
|
|
|
* Retry entering EMLSR on the given VIF.
|
|
|
|
* Use this if one of the parameters that can prevent EMLSR has changed.
|
|
|
|
*/
|
|
|
|
void iwl_mld_retry_emlsr(struct iwl_mld *mld, struct ieee80211_vif *vif);
|
|
|
|
|
2025-03-13 00:22:33 +02:00
|
|
|
struct iwl_mld_link_sel_data {
|
|
|
|
u8 link_id;
|
|
|
|
const struct cfg80211_chan_def *chandef;
|
|
|
|
s32 signal;
|
|
|
|
u16 grade;
|
|
|
|
};
|
|
|
|
|
2025-06-12 14:48:51 +03:00
|
|
|
void iwl_mld_emlsr_block_tmp_non_bss(struct iwl_mld *mld);
|
|
|
|
|
2025-03-13 00:22:33 +02:00
|
|
|
#if IS_ENABLED(CONFIG_IWLWIFI_KUNIT_TESTS)
|
2025-04-30 15:23:11 +03:00
|
|
|
u32 iwl_mld_emlsr_pair_state(struct ieee80211_vif *vif,
|
|
|
|
struct iwl_mld_link_sel_data *a,
|
|
|
|
struct iwl_mld_link_sel_data *b);
|
2025-03-13 00:22:33 +02:00
|
|
|
#endif
|
|
|
|
|
2025-05-05 21:56:42 +03:00
|
|
|
void iwl_mld_start_ignoring_tpt_updates(struct iwl_mld *mld);
|
|
|
|
void iwl_mld_stop_ignoring_tpt_updates(struct iwl_mld *mld);
|
|
|
|
|
wifi: iwlwifi: add iwlmld sub-driver
iwlwifi is the driver of all Intel wifi devices since 2008.
Since then, the hardware has changed a lot, but the firmware
API has changed even more. The need to keep one driver that
supports all those different APIs led us to introduce a new
architecture circa 2012 which allowed us to keep the same
interface to the hardware (DMAs, Tx queues, etc...) with a
new layer to implement the mid-layer between mac80211 and
the firmware. The first component is called the 'transport'
and the latter is called 'operation_mode' a.k.a op_mode.
In 2013 we took advantage of the new architecture to
introduce iwlmvm which allowed us to implement the, then,
new firmware API. This op_mode supports 7260 and up, those
devices supports support at least VHT.
Since then, wifi evolved and so did the firmware. It became
much bigger and took a lot of functionality from the driver.
It became increasingly hard to keep the same op_mode for the
newest devices and we experienced frequent regressions on
older devices. In order to avoid those regressions and keep
the code maintainable, we decided it was about time to start
a new op_mode.
iwlmld is a new op_mode that supports BE200 or newer if the
firmware being used is 97.ucode or newer. If the user has
an older devices or BE200 with .96.ucode, iwlmvm will be
loaded. Of course, this op_mode selection is seamless.
All the features supported in iwlmvm are supported in
iwlmld besides a few seldom used use cases: injection and
Hotspot 2.0. Those are under work.
A few points about the implementation:
* iwlmld doesn't have any mutexes, it relies on the
wiphy_lock
* iwlmld is more "resource oriented": stations, links and
interfaces are allocated and freed only after all the
relevant flows are completed.
* Firmware notifications' sizes are validated in a more
structured way.
We would love to see this new op_mode merged in 6.15. The
firmware for this new driver (.97.ucode) is not yet publicly
available but it'll be sent very soon.
People eager to get an early version of this firmware can
contact Emmanuel at:
emmanuel.grumbach@intel.com
I've listed the people who directly contributed
code, but many others from various teams have
contributed in other ways.
Co-developed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Co-developed-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Co-developed-by: Daniel Gabay <daniel.gabay@intel.com>
Signed-off-by: Daniel Gabay <daniel.gabay@intel.com>
Co-developed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Co-developed-by: Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Signed-off-by: Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Co-developed-by: Yedidya Benshimol <yedidya.ben.shimol@intel.com>
Signed-off-by: Yedidya Benshimol <yedidya.ben.shimol@intel.com>
Co-developed-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Co-developed-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://lore.kernel.org/linux-wireless/20250216094321.537988-1-miriam.rachel.korenblit@intel.com/
[fix Kconfig, fix api/phy.h includes, SPDX tag and coding
style issues, duplicated includes per 0-day robot]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2025-02-16 11:42:40 +02:00
|
|
|
#endif /* __iwl_mld_mlo_h__ */
|