From 033a57d2623a8745b145477cd284d6c831c2aa84 Mon Sep 17 00:00:00 2001 From: Ilan Peer Date: Wed, 30 Nov 2022 15:09:34 +0200 Subject: [PATCH] nl80211: Get MLO support capability Signed-off-by: Ilan Peer Signed-off-by: Andrei Otcheretianski --- src/drivers/driver.h | 2 ++ src/drivers/driver_nl80211_capa.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/drivers/driver.h b/src/drivers/driver.h index 9825b1a44..15d539af2 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -2189,6 +2189,8 @@ struct wpa_driver_capa { * frames in STA mode */ #define WPA_DRIVER_FLAGS2_PROT_RANGE_NEG_STA 0x0000000000002000ULL +/** Driver supports MLO in station/AP mode */ +#define WPA_DRIVER_FLAGS2_MLO 0x0000000000004000ULL u64 flags2; #define FULL_AP_CLIENT_STATE_SUPP(drv_flags) \ diff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c index bb2fd4cd0..e0c3e416a 100644 --- a/src/drivers/driver_nl80211_capa.c +++ b/src/drivers/driver_nl80211_capa.c @@ -1140,6 +1140,9 @@ static int wiphy_info_handler(struct nl_msg *msg, void *arg) if (tb[NL80211_ATTR_MBSSID_CONFIG]) wiphy_info_mbssid(capa, tb[NL80211_ATTR_MBSSID_CONFIG]); + if (tb[NL80211_ATTR_MLO_SUPPORT]) + capa->flags2 |= WPA_DRIVER_FLAGS2_MLO; + return NL_SKIP; } -- 2.47.2