Home | History | Annotate | Download | only in wifi

Lines Matching refs:endpoint

275     const WiFiEndpointConstRefPtr& endpoint) {
277 service_by_endpoint_.find(endpoint.get());
283 void WiFiProvider::OnEndpointAdded(const WiFiEndpointConstRefPtr& endpoint) {
288 WiFiServiceRefPtr service = FindService(endpoint->ssid(),
289 endpoint->network_mode(),
290 endpoint->security_mode());
294 endpoint->ssid(),
295 endpoint->network_mode(),
296 WiFiService::ComputeSecurityClass(endpoint->security_mode()),
300 service->AddEndpoint(endpoint);
301 service_by_endpoint_[endpoint.get()] = service;
303 SLOG(this, 1) << "Assigned endpoint " << endpoint->bssid_string()
310 const WiFiEndpointConstRefPtr& endpoint) {
315 WiFiServiceRefPtr service = FindServiceForEndpoint(endpoint);
317 CHECK(service) << "Can't find Service for Endpoint "
318 << "(with BSSID " << endpoint->bssid_string() << ").";
319 SLOG(this, 1) << "Removing endpoint " << endpoint->bssid_string()
321 service->RemoveEndpoint(endpoint);
322 service_by_endpoint_.erase(endpoint.get());
337 void WiFiProvider::OnEndpointUpdated(const WiFiEndpointConstRefPtr& endpoint) {
342 WiFiService* service = FindServiceForEndpoint(endpoint).get();
345 // If the service still matches the endpoint in its new configuration,
347 if (service->ssid() == endpoint->ssid() &&
348 service->mode() == endpoint->network_mode() &&
349 service->IsSecurityMatch(endpoint->security_mode())) {
350 service->NotifyEndpointUpdated(endpoint);
354 // The endpoint no longer matches the associated service. Remove the
355 // endpoint, so current references to the endpoint are reset, then add
357 OnEndpointRemoved(endpoint);
358 OnEndpointAdded(endpoint);