Lines Matching refs:iface

22 static void fst_ctrl_iface_notify_peer_state_change(struct fst_iface *iface,
29 os_strlcpy(extra.peer_state.ifname, fst_iface_get_name(iface),
34 iface, NULL, &extra);
44 struct fst_iface *iface = NULL;
68 iface = fst_iface_create(group, ifname, own_addr, iface_obj, cfg);
69 if (!iface) {
70 fst_printf_group(group, MSG_ERROR, "cannot create iface for %s",
77 fst_group_attach_iface(group, iface);
80 foreach_fst_ctrl_call(on_iface_added, iface);
82 fst_printf_iface(iface, MSG_DEBUG,
83 "iface attached to group %s (prio=%d, llt=%d)",
86 return iface;
90 void fst_detach(struct fst_iface *iface)
92 struct fst_group *group = fst_iface_get_group(iface);
94 fst_printf_iface(iface, MSG_DEBUG, "iface detached from group %s",
96 fst_session_global_on_iface_detached(iface);
97 foreach_fst_ctrl_call(on_iface_removed, iface);
98 fst_group_detach_iface(group, iface);
99 fst_iface_delete(iface);
166 void fst_rx_action(struct fst_iface *iface, const struct ieee80211_mgmt *mgmt,
169 if (fst_iface_is_connected(iface, mgmt->sa, false))
170 fst_session_on_action_rx(iface, mgmt, len);
178 void fst_notify_peer_connected(struct fst_iface *iface, const u8 *addr)
184 fst_group_update_ie(fst_iface_get_group(iface));
187 fst_printf_iface(iface, MSG_DEBUG, MACSTR " became connected",
190 fst_ctrl_iface_notify_peer_state_change(iface, true, addr);
194 void fst_notify_peer_disconnected(struct fst_iface *iface, const u8 *addr)
200 fst_group_update_ie(fst_iface_get_group(iface));
203 fst_printf_iface(iface, MSG_DEBUG, MACSTR " became disconnected",
206 fst_ctrl_iface_notify_peer_state_change(iface, false, addr);
217 void fst_update_mac_addr(struct fst_iface *iface, const u8 *addr)
219 fst_printf_iface(iface, MSG_DEBUG, "new MAC address " MACSTR,
221 os_memcpy(iface->own_addr, addr, sizeof(iface->own_addr));
222 fst_group_update_ie(fst_iface_get_group(iface));