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 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); }