blob: 0c1a156104f83c4525fc0ebd333c690e425bee6d [file] [log] [blame]
developer90379572024-05-29 17:23:20 +08001--- git/source/hostap-2.10/src/ap/drv_callbacks.c 2023-06-08 11:27:27.645895606 +0000
2+++ git/source/hostap-2.10/src/ap/drv_callbacks.c 2023-06-08 11:26:49.786465276 +0000
3@@ -772,6 +772,9 @@
4 wpa_auth_sm_event(sta->wpa_sm, WPA_DISASSOC);
5 sta->acct_terminate_cause = RADIUS_ACCT_TERMINATE_CAUSE_USER_REQUEST;
6 ieee802_1x_notify_port_enabled(sta->eapol_sm, 0);
7+#ifdef _PLATFORM_RASPBERRYPI_
8+ hostapd_drv_sta_disassoc(hapd, sta->addr, WLAN_REASON_DISASSOC_STA_HAS_LEFT);
9+#endif
10 ap_free_sta(hapd, sta);
11 }
12
13--- git/source/hostap-2.10/src/ap/hostapd.c 2023-06-10 18:14:04.381530228 +0000
14+++ git/source/hostap-2.10/src/ap/hostapd.c 2023-06-10 18:14:25.597262764 +0000
15@@ -3321,6 +3321,10 @@
16 * been authorized. */
17 if (!hapd->conf->ieee802_1x && !hapd->conf->wpa && !hapd->conf->osen) {
18 ap_sta_set_authorized(hapd, sta, 1);
19+#ifdef _PLATFORM_RASPBERRYPI_
20+ /*When Station is connected with OPEN Mode, need to authorize the station */
21+ hostapd_set_authorized(hapd, sta, 1);
22+#endif
23 os_get_reltime(&sta->connected_time);
24 accounting_sta_start(hapd, sta);
25 }