From: Rameshkumar Sundaram <quic_ramess@quicinc.com>
To: <johannes@sipsolutions.net>, <ath12k@lists.infradead.org>
Cc: <linux-wireless@vger.kernel.org>,
Ramasamy Kaliappan <quic_rkaliapp@quicinc.com>,
Rameshkumar Sundaram <quic_ramess@quicinc.com>
Subject: [PATCH wireless-next v5 2/4] wifi: mac80211: update ML STA with EML capabilities
Date: Thu, 27 Mar 2025 10:43:18 +0530 [thread overview]
Message-ID: <20250327051320.3253783-3-quic_ramess@quicinc.com> (raw)
In-Reply-To: <20250327051320.3253783-1-quic_ramess@quicinc.com>
From: Ramasamy Kaliappan <quic_rkaliapp@quicinc.com>
When an AP and Non-AP MLD operates in EMLSR mode, EML capabilities
advertised during Association contains information such as EMLSR
transition delay, padding delay and transition timeout values.
Save the EML capabilities information that is received during station
addition and capabilities update in ieee80211_sta so that drivers can use
it for triggering EMLSR operation.
Signed-off-by: Ramasamy Kaliappan <quic_rkaliapp@quicinc.com>
Signed-off-by: Rameshkumar Sundaram <quic_ramess@quicinc.com>
---
include/net/mac80211.h | 2 ++
net/mac80211/cfg.c | 3 +++
2 files changed, 5 insertions(+)
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index c498f685d01f..99c3224a081a 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -2488,6 +2488,7 @@ struct ieee80211_link_sta {
* @max_amsdu_subframes: indicates the maximal number of MSDUs in a single
* A-MSDU. Taken from the Extended Capabilities element. 0 means
* unlimited.
+ * @eml_cap: EML capabilities of this MLO station
* @cur: currently valid data as aggregated from the active links
* For non MLO STA it will point to the deflink data. For MLO STA
* ieee80211_sta_recalc_aggregates() must be called to update it.
@@ -2522,6 +2523,7 @@ struct ieee80211_sta {
bool mlo;
bool spp_amsdu;
u8 max_amsdu_subframes;
+ u16 eml_cap;
struct ieee80211_sta_aggregates *cur;
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 9f683f838431..2676b368e5a6 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -2066,6 +2066,9 @@ static int sta_apply_parameters(struct ieee80211_local *local,
if (params->listen_interval >= 0)
sta->listen_interval = params->listen_interval;
+ if (params->eml_cap_present)
+ sta->sta.eml_cap = params->eml_cap;
+
ret = sta_link_apply_parameters(local, sta, STA_LINK_MODE_STA_MODIFY,
¶ms->link_sta_params);
if (ret)
--
2.34.1
next prev parent reply other threads:[~2025-03-27 5:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-27 5:13 [PATCH wireless-next v5 0/4] wifi: cfg80211: update EML capabilities of an ML Station Rameshkumar Sundaram
2025-03-27 5:13 ` [PATCH wireless-next v5 1/4] wifi: cfg80211: Add support to get EMLSR capabilities of non-AP MLD Rameshkumar Sundaram
2025-04-23 15:24 ` Johannes Berg
2025-03-27 5:13 ` Rameshkumar Sundaram [this message]
2025-03-27 5:13 ` [PATCH wireless-next v5 3/4] wifi: ieee80211: Add helpers to fetch EMLSR delay and timeout values Rameshkumar Sundaram
2025-03-27 5:13 ` [PATCH wireless-next v5 4/4] wifi: ath12k: update EMLSR capabilities of ML Station Rameshkumar Sundaram
2025-04-29 5:21 ` Vasanthakumar Thiagarajan
2025-05-16 20:39 ` (subset) [PATCH wireless-next v5 0/4] wifi: cfg80211: update EML capabilities of an " Jeff Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250327051320.3253783-3-quic_ramess@quicinc.com \
--to=quic_ramess@quicinc.com \
--cc=ath12k@lists.infradead.org \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=quic_rkaliapp@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.