eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit aefcaf85599053faa47c72fe113c72725a919582
parent 4635e095babe8125cee07b8aabdbf69136154b24
Author: James Prestwood <prestwoj@gmail.com>
Date:   Fri, 29 Jan 2021 10:47:25 -0800

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.

Diffstat:
Msrc/ap.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git 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);