Skip to contentSkip to conversation

mac80211: support IBSS RSN with SW crypto

RFC New Johannes Berg 1 participant 1 message Dec 10, 2010 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

RFC 1/1 mac80211: support IBSS RSN with SW crypto

From: Johannes Berg <[email protected]>

When software crypto is used, mac80211 will
support IBSS RSN, it doesn't depend on the
driver in that case.

---
 net/mac80211/main.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
net/mac80211/main.c +5 -1
@@ -517,11 +517,15 @@ struct ieee80211_hw *ieee80211_alloc_hw(
 
 	wiphy->mgmt_stypes = ieee80211_default_mgmt_stypes;
 
+	wiphy->privid = mac80211_wiphy_privid;
+
 	wiphy->flags |= WIPHY_FLAG_NETNS_OK |
 			WIPHY_FLAG_4ADDR_AP |
 			WIPHY_FLAG_4ADDR_STATION |
 			WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS;
-	wiphy->privid = mac80211_wiphy_privid;
+
+	if (!ops->set_key)
+		wiphy->flags |= WIPHY_FLAG_IBSS_RSN;
 
 	wiphy->bss_priv_size = sizeof(struct ieee80211_bss);