aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/notify.c
diff options
context:
space:
mode:
authorChengyi Zhao <chengyix.zhao@gmail.com>2013-06-22 09:09:09 (GMT)
committerJouni Malinen <j@w1.fi>2013-06-22 09:09:09 (GMT)
commit8a901d750b1ee3b2bf892565ded62ee5dfd87d0b (patch)
tree192ec3a7277c4381782b1c46a4503d19e742bca7 /wpa_supplicant/notify.c
parent9578329874b3ad679b9da97a2603b218c5e42d5e (diff)
downloadhostap-8a901d750b1ee3b2bf892565ded62ee5dfd87d0b.zip
hostap-8a901d750b1ee3b2bf892565ded62ee5dfd87d0b.tar.gz
hostap-8a901d750b1ee3b2bf892565ded62ee5dfd87d0b.tar.bz2
D-Bus: Emit signal when a station is authorized or deauthorized
Add "StaAuthorized" and "StaDeauthorized" D-Bus interface in AP mode. After enabling the AP mode of wpa_supplicant, the other process need to get the MAC address and authorization status of every station, so wpa_supplicant emits signal when the station is authorized or deauthorized. Signed-hostap: Chengyi Zhao <chengyix.zhao@gmail.com>
Diffstat (limited to 'wpa_supplicant/notify.c')
-rw-r--r--wpa_supplicant/notify.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index ca6f7e7..35a029f 100644
--- a/wpa_supplicant/notify.c
+++ b/wpa_supplicant/notify.c
@@ -547,6 +547,9 @@ static void wpas_notify_ap_sta_authorized(struct wpa_supplicant *wpa_s,
*/
wpas_dbus_signal_p2p_peer_joined(wpa_s, sta);
#endif /* CONFIG_P2P */
+
+ /* Notify listeners a new station has been authorized */
+ wpas_dbus_signal_sta_authorized(wpa_s, sta);
}
@@ -566,6 +569,9 @@ static void wpas_notify_ap_sta_deauthorized(struct wpa_supplicant *wpa_s,
*/
wpas_dbus_signal_p2p_peer_disconnected(wpa_s, sta);
#endif /* CONFIG_P2P */
+
+ /* Notify listeners a station has been deauthorized */
+ wpas_dbus_signal_sta_deauthorized(wpa_s, sta);
}