From 471d34704fb0d94a2b8b9f09c6cc816682496d38 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 3 Aug 2022 14:36:35 -0700 Subject: [PATCH] wiphy: track self-managed flag Check if the SELF_MANAGED_REG flag is set and set into wiphy. --- src/wiphy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wiphy.c b/src/wiphy.c index 2514c95a..4a778699 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -133,6 +133,7 @@ struct wiphy { bool offchannel_tx_ok : 1; bool blacklisted : 1; bool registered : 1; + bool self_managed : 1; }; static struct l_queue *wiphy_list = NULL; @@ -1647,6 +1648,9 @@ static void wiphy_parse_attributes(struct wiphy *wiphy, case NL80211_ATTR_ROAM_SUPPORT: wiphy->support_fw_roam = true; break; + case NL80211_ATTR_WIPHY_SELF_MANAGED_REG: + wiphy->self_managed = true; + break; } } }