New subject: [PATCH 2/2] ap: handle GET_KEY error setting RSC to zero
Rather than the previous hack which disabled group traffic it
was found that the GTK RSC could be manually set to zero which
allows group traffic. This appears to fix AP mode on brcmfmac
along with the previous fixes. This is not documented in
nl80211, but appears to work with this driver.
---
src/ap.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/ap.c b/src/ap.c
index 0b96e2ab..e695a67e 100644
--- a/src/ap.c
+++ b/src/ap.c
@@ -787,6 +787,7 @@ static void ap_gtk_query_cb(struct l_genl_msg *msg, void *user_data)
{
struct sta_state *sta = user_data;
const void *gtk_rsc;
+ uint8_t zero_gtk_rsc[6];
sta->gtk_query_cmd_id = 0;
@@ -795,11 +796,8 @@ static void ap_gtk_query_cb(struct l_genl_msg *msg, void *user_data)
gtk_rsc = nl80211_parse_get_key_seq(msg);
if (!gtk_rsc) {
- /* Try allowing connection with no group traffic */
- l_warn("Failed to get GTK. This may be a driver/FW issue, "
- "disabling group traffic");
- ap_start_rsna(sta, NULL);
- return;
+ memset(zero_gtk_rsc, 0, 6);
+ gtk_rsc = zero_gtk_rsc;
}
ap_start_rsna(sta, gtk_rsc);
--
2.26.2