[PATCH wireless-next v5 19/19] wifi: mac80211: define API to invoke ST Drain Completion event
From: Pooventhiran G
Date: Wed Dec 02 2026 - 05:30:04 EST
To indicate userspace the early termination of the DL draining period,
define an API for drivers to invoke the ST Drain Completion event.
Suggested-by: Rohan Dutta <drohan@xxxxxxxxxxxxxxxx>
Signed-off-by: Pooventhiran G <pooventhiran.g@xxxxxxxxxxxxxxxx>
---
include/net/mac80211.h | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 3d0297795081..c3492f733830 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -8332,4 +8332,22 @@ void ieee80211_get_st_ctx_done(struct ieee80211_vif *vif,
if (wdev)
cfg80211_notify_get_st_ctx_done(wdev, sta_addr, st_info);
}
+
+/**
+ * ieee80211_notify_st_drain_completion - notify downlink drain completion for
+ * an SMD station.
+ * @vif: virtual interface
+ * @sta_addr: non-AP MLD address the ST Draining is being completed
+ *
+ * Return: 0 if success, -EINVAL otherwise
+ */
+static inline
+void ieee80211_notify_st_drain_completion(struct ieee80211_vif *vif,
+ const u8 *sta_addr)
+{
+ struct wireless_dev *wdev = ieee80211_vif_to_wdev(vif);
+
+ if (wdev)
+ cfg80211_notify_st_drain_completion(wdev, sta_addr);
+}
#endif /* MAC80211_H */
--
2.34.1