From 4a7fd81050b18462539cb87f0471fad8c6e885bf Mon Sep 17 00:00:00 2001 From: Mike Ding <10246@SDC.SERCOMM.com> Date: Thu, 12 Sep 2024 13:38:03 +0800 Subject: [PATCH 1/2] Fix wifi rate limit apply issue Signed-off-by: Mike Ding <10246@SDC.SERCOMM.com> --- .../s-001-fix-ratelimit-apply-issue.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 feeds/ipq95xx/hostapd/patches/s-001-fix-ratelimit-apply-issue.patch diff --git a/feeds/ipq95xx/hostapd/patches/s-001-fix-ratelimit-apply-issue.patch b/feeds/ipq95xx/hostapd/patches/s-001-fix-ratelimit-apply-issue.patch new file mode 100644 index 000000000..3c18f90cc --- /dev/null +++ b/feeds/ipq95xx/hostapd/patches/s-001-fix-ratelimit-apply-issue.patch @@ -0,0 +1,19 @@ +diff -uNr hostapd-2023-02-21-ath12.3-cs.orig/src/ap/ieee802_11.c hostapd-2023-02-21-ath12.3-cs/src/ap/ieee802_11.c +--- hostapd-2023-02-21-ath12.3-cs.orig/src/ap/ieee802_11.c 2024-09-10 13:29:43.000000000 +0800 ++++ hostapd-2023-02-21-ath12.3-cs/src/ap/ieee802_11.c 2024-09-09 18:15:59.000000000 +0800 +@@ -5965,6 +5965,7 @@ + wpa_printf(MSG_DEBUG, "disassocation: STA=" MACSTR " reason_code=%d", + MAC2STR(mgmt->sa), + le_to_host16(mgmt->u.disassoc.reason_code)); ++ hostapd_ubus_notify(hapd, "disassoc", mgmt->sa); + + sta = ap_get_sta(hapd, mgmt->sa); + if (sta == NULL) { +@@ -6165,7 +6166,6 @@ + sta->last_seq_ctrl = seq_ctrl; + sta->last_subtype = WLAN_FC_STYPE_ACTION; + } +- hostapd_ubus_notify(hapd, "disassoc", mgmt->sa); + + switch (mgmt->u.action.category) { + #ifdef CONFIG_IEEE80211R_AP From 38a099316e05f697f1c2d7b970ba23d4fc98ab84 Mon Sep 17 00:00:00 2001 From: mike_ding Date: Thu, 12 Sep 2024 13:43:42 +0800 Subject: [PATCH 2/2] Fix wifi rate limit apply issue Signed-off-by: mike_ding --- feeds/ipq95xx/hostapd/src/src/ap/ubus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/feeds/ipq95xx/hostapd/src/src/ap/ubus.c b/feeds/ipq95xx/hostapd/src/src/ap/ubus.c index ae6209883..26e55effc 100644 --- a/feeds/ipq95xx/hostapd/src/src/ap/ubus.c +++ b/feeds/ipq95xx/hostapd/src/src/ap/ubus.c @@ -1873,6 +1873,7 @@ void hostapd_ubus_notify_authorized(struct hostapd_data *hapd, struct sta_info * blobmsg_add_macaddr(&b, "address", sta->addr); if (auth_alg) blobmsg_add_string(&b, "auth-alg", auth_alg); + blobmsg_add_string(&b, "ifname", hapd->conf->iface); ubus_notify(ctx, &hapd->ubus.obj, "sta-authorized", b.head, -1); }