mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
--- a/src/ap/ieee802_11.c
|
|
+++ b/src/ap/ieee802_11.c
|
|
@@ -4463,6 +4463,14 @@ static void handle_assoc(struct hostapd_
|
|
ieee802_11_set_beacons(hapd->iface);
|
|
}
|
|
|
|
+ ubus_resp = hostapd_ubus_handle_event(hapd, &req);
|
|
+ if (ubus_resp) {
|
|
+ wpa_printf(MSG_DEBUG, "Station " MACSTR " assoc rejected by ubus handler.\n",
|
|
+ MAC2STR(mgmt->sa));
|
|
+ resp = ubus_resp > 0 ? (u16) ubus_resp : WLAN_STATUS_UNSPECIFIED_FAILURE;
|
|
+ goto fail;
|
|
+ }
|
|
+
|
|
update_ht_state(hapd, sta);
|
|
|
|
hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211,
|
|
@@ -4568,14 +4576,6 @@ static void handle_assoc(struct hostapd_
|
|
pos, left, rssi, omit_rsnxe);
|
|
os_free(tmp);
|
|
|
|
- ubus_resp = hostapd_ubus_handle_event(hapd, &req);
|
|
- if (ubus_resp) {
|
|
- wpa_printf(MSG_DEBUG, "Station " MACSTR " assoc rejected by ubus handler.\n",
|
|
- MAC2STR(mgmt->sa));
|
|
- resp = ubus_resp > 0 ? (u16) ubus_resp : WLAN_STATUS_UNSPECIFIED_FAILURE;
|
|
- goto 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
|