developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 1 | From b5bf8726bf81b90d628dd398579309fef5b6651b Mon Sep 17 00:00:00 2001 |
| 2 | From: Howard Hsu <howard-yh.hsu@mediatek.com> |
| 3 | Date: Thu, 6 Jun 2024 22:11:45 +0800 |
| 4 | Subject: [PATCH 100/126] Revert "AP MLD: Add MLO Link KDE for each affiliated |
| 5 | link in EAPOL-Key 3/4" |
| 6 | |
| 7 | This reverts commit df59880042cd8d9b4bdd2dce6de0a6e233be1b64. |
| 8 | |
| 9 | Please noted that this commit is a workaround for MTK STA IoT issue within WiFi7 R1 certification. |
| 10 | |
| 11 | Signed-off-by: Howard Hsu <howard-yh.hsu@mediatek.com> |
| 12 | |
| 13 | --- |
| 14 | src/ap/wpa_auth.c | 12 ++++++++++++ |
| 15 | 1 file changed, 12 insertions(+) |
| 16 | |
| 17 | diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c |
| 18 | index 3a1d288dd..6cb5a4be7 100644 |
| 19 | --- a/src/ap/wpa_auth.c |
| 20 | +++ b/src/ap/wpa_auth.c |
| 21 | @@ -4484,6 +4484,12 @@ static size_t wpa_auth_ml_kdes_len(struct wpa_state_machine *sm) |
| 22 | struct wpa_authenticator *wpa_auth; |
| 23 | const u8 *ie; |
| 24 | |
| 25 | + /* FIXME: This is a temporary workaround for MTK |
| 26 | + * sta IoT issue in WiFi7 cert. |
| 27 | + */ |
| 28 | + if (!sm->mld_links[link_id].valid) |
| 29 | + continue; |
| 30 | + |
| 31 | wpa_auth = wpa_get_link_auth(sm->wpa_auth, link_id); |
| 32 | if (!wpa_auth) |
| 33 | continue; |
| 34 | @@ -4548,6 +4554,12 @@ static u8 * wpa_auth_ml_kdes(struct wpa_state_machine *sm, u8 *pos) |
| 35 | const u8 *rsne, *rsnxe, *rsnoe, *rsno2e, *rsnxoe; |
| 36 | size_t rsne_len, rsnxe_len, rsnoe_len, rsno2e_len, rsnxoe_len; |
| 37 | |
| 38 | + /* FIXME: This is a temporary workaround for MTK |
| 39 | + * sta IoT issue in WiFi7 cert. |
| 40 | + */ |
| 41 | + if (!sm->mld_links[link_id].valid) |
| 42 | + continue; |
| 43 | + |
| 44 | wpa_auth = wpa_get_link_auth(sm->wpa_auth, link_id); |
| 45 | if (!wpa_auth) |
| 46 | continue; |
| 47 | -- |
| 48 | 2.18.0 |
| 49 | |