mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 19:02:34 +01:00
ap: allow no group traffic on GET_KEY error
Some fullmac cards were found to be buggy with getting the GTK where it returns a BIP key for the GTK index, even after creating a GTK with NEW_KEY explicitly. In an effort to get these cards semi-working we can treat this just as a warning and continue with the handshake without a GTK set which disables group traffic. A warning is printed in this case so the user is not completely in the dark.
This commit is contained in:
parent
a04b61ec77
commit
7429b2162d
12
src/ap.c
12
src/ap.c
@ -790,10 +790,18 @@ static void ap_gtk_query_cb(struct l_genl_msg *msg, void *user_data)
|
|||||||
|
|
||||||
sta->gtk_query_cmd_id = 0;
|
sta->gtk_query_cmd_id = 0;
|
||||||
|
|
||||||
gtk_rsc = nl80211_parse_get_key_seq(msg);
|
if (l_genl_msg_get_error(msg) < 0)
|
||||||
if (!gtk_rsc)
|
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
ap_start_rsna(sta, gtk_rsc);
|
ap_start_rsna(sta, gtk_rsc);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user