aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2021-11-23 22:25:02 +0100
committerDavid Bauer <mail@david-bauer.net>2021-11-23 22:27:13 +0100
commitdec9e8395605d9ff3f1eb09f9dfb7d743939ee37 (patch)
tree6e046bcc56d9c19a9afccb94da02b5c0512c7c7b /package
parentc254d83ea821b35a09436bf1cab4b74e62ee0330 (diff)
downloadupstream-dec9e8395605d9ff3f1eb09f9dfb7d743939ee37.tar.gz
upstream-dec9e8395605d9ff3f1eb09f9dfb7d743939ee37.tar.bz2
upstream-dec9e8395605d9ff3f1eb09f9dfb7d743939ee37.zip
hostapd: fix goto loop for ubus assoc handler
When a ubus event handler denies a association with a non-zero return value, the code jumps to preceeding code, creating an endless loop until the event handler accepts the assc request. Move the ubus handler further up the code to avoid creating such a loop. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'package')
-rw-r--r--package/network/services/hostapd/patches/600-ubus_support.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/package/network/services/hostapd/patches/600-ubus_support.patch b/package/network/services/hostapd/patches/600-ubus_support.patch
index e690e8fd7b..89f5a5c3cf 100644
--- a/package/network/services/hostapd/patches/600-ubus_support.patch
+++ b/package/network/services/hostapd/patches/600-ubus_support.patch
@@ -147,9 +147,9 @@
/* followed by SSID and Supported rates; and HT capabilities if 802.11n
* is used */
-@@ -4543,6 +4560,14 @@ static void handle_assoc(struct hostapd_
- pos, left, rssi, omit_rsnxe);
- os_free(tmp);
+@@ -4477,6 +4494,14 @@ static void handle_assoc(struct hostapd_
+ }
+ #endif /* CONFIG_FILS */
+ ubus_resp = hostapd_ubus_handle_event(hapd, &req);
+ if (ubus_resp) {
@@ -159,9 +159,9 @@
+ goto fail;
+ }
+
+ fail:
+
/*
- * Remove the station in case tranmission of a success response fails
- * (the STA was added associated to the driver) or if the station was
@@ -4570,6 +4595,7 @@ static void handle_disassoc(struct hosta
wpa_printf(MSG_DEBUG, "disassocation: STA=" MACSTR " reason_code=%d",
MAC2STR(mgmt->sa),