Lines Matching refs:iface
21 static void fst_ctrl_iface_notify_peer_state_change(struct fst_iface *iface, in fst_ctrl_iface_notify_peer_state_change() argument
28 os_strlcpy(extra.peer_state.ifname, fst_iface_get_name(iface), in fst_ctrl_iface_notify_peer_state_change()
33 iface, NULL, &extra); in fst_ctrl_iface_notify_peer_state_change()
43 struct fst_iface *iface = NULL; in fst_attach() local
67 iface = fst_iface_create(group, ifname, own_addr, iface_obj, cfg); in fst_attach()
68 if (!iface) { in fst_attach()
76 fst_group_attach_iface(group, iface); in fst_attach()
79 foreach_fst_ctrl_call(on_iface_added, iface); in fst_attach()
81 fst_printf_iface(iface, MSG_DEBUG, in fst_attach()
85 return iface; in fst_attach()
89 void fst_detach(struct fst_iface *iface) in fst_detach() argument
91 struct fst_group *group = fst_iface_get_group(iface); in fst_detach()
93 fst_printf_iface(iface, MSG_DEBUG, "iface detached from group %s", in fst_detach()
95 fst_session_global_on_iface_detached(iface); in fst_detach()
96 foreach_fst_ctrl_call(on_iface_removed, iface); in fst_detach()
97 fst_group_detach_iface(group, iface); in fst_detach()
98 fst_iface_delete(iface); in fst_detach()
160 void fst_rx_action(struct fst_iface *iface, const struct ieee80211_mgmt *mgmt, in fst_rx_action() argument
163 if (fst_iface_is_connected(iface, mgmt->sa, FALSE)) in fst_rx_action()
164 fst_session_on_action_rx(iface, mgmt, len); in fst_rx_action()
172 void fst_notify_peer_connected(struct fst_iface *iface, const u8 *addr) in fst_notify_peer_connected() argument
178 fst_group_update_ie(fst_iface_get_group(iface)); in fst_notify_peer_connected()
181 fst_printf_iface(iface, MSG_DEBUG, MACSTR " became connected", in fst_notify_peer_connected()
184 fst_ctrl_iface_notify_peer_state_change(iface, TRUE, addr); in fst_notify_peer_connected()
188 void fst_notify_peer_disconnected(struct fst_iface *iface, const u8 *addr) in fst_notify_peer_disconnected() argument
194 fst_group_update_ie(fst_iface_get_group(iface)); in fst_notify_peer_disconnected()
197 fst_printf_iface(iface, MSG_DEBUG, MACSTR " became disconnected", in fst_notify_peer_disconnected()
200 fst_ctrl_iface_notify_peer_state_change(iface, FALSE, addr); in fst_notify_peer_disconnected()