Lines Matching defs:iface

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