2019-08-26 16:59:42

by Denis Kenzior

[permalink] [raw]
Subject: [PATCH 2/2] mac80211: Set LIVE_IFTYPE_CHANGE if op provided

Signed-off-by: Denis Kenzior <[email protected]>
---
net/mac80211/main.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 29b9d57df1a3..073e5d10a48e 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -597,6 +597,10 @@ struct ieee80211_hw *ieee80211_alloc_hw_nm(size_t priv_data_len,

wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_RRM);

+ if (ops->change_interface)
+ wiphy_ext_feature_set(wiphy,
+ NL80211_EXT_FEATURE_LIVE_IFTYPE_CHANGE);
+
wiphy->bss_priv_size = sizeof(struct ieee80211_bss);

local = wiphy_priv(wiphy);
--
2.19.2