static void wpas_notify_ap_sta_authorized(struct wpa_supplicant *wpa_s, const u8 *sta, const u8 *p2p_dev_addr) { #ifdef CONFIG_P2P wpas_p2p_notify_ap_sta_authorized(wpa_s, p2p_dev_addr); /* * Create 'peer-joined' signal on group object -- will also * check P2P itself. */ wpas_dbus_signal_p2p_peer_joined(wpa_s, p2p_dev_addr); #endif /* CONFIG_P2P */ /* Notify listeners a new station has been authorized */ wpas_dbus_signal_sta_authorized(wpa_s, sta); }
static void wpas_notify_ap_sta_authorized(struct wpa_supplicant *wpa_s, const u8 *sta, const u8 *p2p_dev_addr) { #ifdef CONFIG_P2P wpas_p2p_notify_ap_sta_authorized(wpa_s, p2p_dev_addr); /* * Register a group member object corresponding to this peer and * emit a PeerJoined signal. This will check if it really is a * P2P group. */ wpas_dbus_register_p2p_groupmember(wpa_s, sta); /* * Create 'peer-joined' signal on group object -- will also * check P2P itself. */ wpas_dbus_signal_p2p_peer_joined(wpa_s, sta); #endif /* CONFIG_P2P */ }