All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] ap: Set the group cipher when sending START_AP
@ 2021-01-29 23:27 Andrew Zaborowski
  2021-01-29 23:27 ` [PATCH 2/5] ap: Fix cleanup on ap_parse_new_station_ies errors Andrew Zaborowski
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Andrew Zaborowski @ 2021-01-29 23:27 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 1462 bytes --]

Seems this overlooked because an initial version of ap.c didn't have
group traffic support.  This doesn't fix some brcmfmac problems where it
silently overrides the group cipher in the beacon frames though.
---
 src/ap.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/ap.c b/src/ap.c
index ce639907..c4715696 100644
--- a/src/ap.c
+++ b/src/ap.c
@@ -2108,7 +2108,8 @@ static struct l_genl_msg *ap_build_cmd_start_ap(struct ap_state *ap)
 	uint32_t ifindex = netdev_get_ifindex(ap->netdev);
 	struct wiphy *wiphy = netdev_get_wiphy(ap->netdev);
 	uint32_t hidden_ssid = NL80211_HIDDEN_SSID_NOT_IN_USE;
-	uint32_t nl_ciphers = ie_rsn_cipher_suite_to_cipher(ap->ciphers);
+	uint32_t group_nl_cipher =
+		ie_rsn_cipher_suite_to_cipher(ap->group_cipher);
 	uint32_t nl_akm = CRYPTO_AKM_PSK;
 	uint32_t wpa_version = NL80211_WPA_VERSION_2;
 	uint32_t auth_type = NL80211_AUTHTYPE_OPEN_SYSTEM;
@@ -2148,6 +2149,8 @@ static struct l_genl_msg *ap_build_cmd_start_ap(struct ap_state *ap)
 				&hidden_ssid);
 	l_genl_msg_append_attr(cmd, NL80211_ATTR_CIPHER_SUITES_PAIRWISE, 4,
 				&nl_ciphers);
+	l_genl_msg_append_attr(cmd, NL80211_ATTR_CIPHER_SUITE_GROUP, 4,
+				&group_nl_cipher);
 	l_genl_msg_append_attr(cmd, NL80211_ATTR_WPA_VERSIONS, 4, &wpa_version);
 	l_genl_msg_append_attr(cmd, NL80211_ATTR_AKM_SUITES, 4, &nl_akm);
 	l_genl_msg_append_attr(cmd, NL80211_ATTR_AUTH_TYPE, 4, &auth_type);
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-01-30 11:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-29 23:27 [PATCH 1/5] ap: Set the group cipher when sending START_AP Andrew Zaborowski
2021-01-29 23:27 ` [PATCH 2/5] ap: Fix cleanup on ap_parse_new_station_ies errors Andrew Zaborowski
2021-01-30  2:11   ` Denis Kenzior
2021-01-30 11:39     ` Andrew Zaborowski
2021-01-29 23:27 ` [PATCH 3/5] eapol: Remove assumption of single cipher in authenticator IE Andrew Zaborowski
2021-01-30  2:28   ` Denis Kenzior
2021-01-30 11:35     ` Andrew Zaborowski
2021-01-29 23:27 ` [PATCH 4/5] ap: Allow setting multiple ciphers in ap->ciphers Andrew Zaborowski
2021-01-29 23:27 ` [PATCH 5/5] unit: Use hs_override_pairwise_cipher in eapol authenticator tests Andrew Zaborowski
2021-01-30  2:06 ` [PATCH 1/5] ap: Set the group cipher when sending START_AP Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.