---
title: "CWMergeNetworks(_:)"
framework: Core WLAN
role: symbol
role_heading: Function
platforms: [macOS 10.7+]
path: "corewlan/cwmergenetworks(_:)"
---

# CWMergeNetworks(_:)

Merges the specified set of CWNetwork objects.

## Declaration

```swift
func CWMergeNetworks(_ networks: Set<CWNetwork>) -> Set<CWNetwork>
```

## Parameters

- `networks`: The set of networks to merge.

## Discussion

Discussion Duplicate networks are defined as networks with the same SSID, security type, and BSS type. When duplicates are found, the network with the best RSSI value will remain.

## See Also

### Utility Methods

- [CWKeychainCopyEAPIdentityList(_:)](corewlan/cwkeychaincopyeapidentitylist(_:).md)
