summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-07-11 10:08:11 +0200
committerJohannes Berg <johannes.berg@intel.com>2022-07-15 11:43:20 +0200
commitfa2ca639c4e6f8d9bf11687a7e5e348c4c15b8c0 (patch)
tree66e5d2e510aa126e808f57feabf6c96e08ac3611 /net/wireless
parent0cbf348a9a790d5dfbfa1b5b463f09507e7594fc (diff)
downloadlinux-fa2ca639c4e6f8d9bf11687a7e5e348c4c15b8c0.tar.gz
linux-fa2ca639c4e6f8d9bf11687a7e5e348c4c15b8c0.tar.bz2
linux-fa2ca639c4e6f8d9bf11687a7e5e348c4c15b8c0.zip
wifi: nl80211: advertise MLO support
At least while we don't have any more specific interface combinations support, add a simple flag for MLO support, we can keep this later based on something other than the wiphy flag. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 0bf1f7267b89..ead9bd111280 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -2946,6 +2946,9 @@ static int nl80211_send_wiphy(struct cfg80211_registered_device *rdev,
rdev->wiphy.max_num_akm_suites))
goto nla_put_failure;
+ if (rdev->wiphy.flags & WIPHY_FLAG_SUPPORTS_MLO)
+ nla_put_flag(msg, NL80211_ATTR_MLO_SUPPORT);
+
/* done */
state->split_start = 0;
break;