Lines Matching refs:stale
3961 /* Remove stale persistent group */
3964 "P2P: Remove stale persistent group id=%d",
4035 struct wpa_ssid *persistent_go, *stale, *s = NULL;
4110 /* Clean up stale persistent groups with this device */
4123 stale = wpas_p2p_get_persistent(wpa_s, dev, NULL, 0);
4124 if (!stale)
4127 if (s && s->ssid_len == stale->ssid_len &&
4128 os_memcmp(stale->bssid, s->bssid, ETH_ALEN) == 0 &&
4129 os_memcmp(stale->ssid, s->ssid, s->ssid_len) == 0)
4132 /* Remove stale persistent group */
4133 if (stale->mode != WPAS_MODE_P2P_GO ||
4134 stale->num_p2p_clients <= 1) {
4136 "P2P: Remove stale persistent group id=%d",
4137 stale->id);
4138 wpas_notify_persistent_group_removed(wpa_s, stale);
4139 wpa_config_remove_network(wpa_s->conf, stale->id);
4143 for (i = 0; i < stale->num_p2p_clients; i++) {
4144 if (os_memcmp(stale->p2p_client_list +
4147 os_memmove(stale->p2p_client_list +
4149 stale->p2p_client_list +
4151 (stale->num_p2p_clients -
4156 stale->num_p2p_clients--;