---
title: interfaceNames()
framework: corewlan
role: symbol
role_heading: Type Method
path: corewlan/cwinterface/interfacenames()
---

# interfaceNames()

Returns the list of BSD names for WLAN interfaces available on the current system.

## Declaration

```swift
class func interfaceNames() -> Set<String>?
```

## Return Value

Return Value An NSSet object containing NSString objects representing BSD interface names.

## Discussion

Discussion Returns an NSArray of NSString objects representing the supported WLAN BSD interface names avaliable on the current system (i.e. “en1”, “en2”). If there are no supported interfaces for the current system, then this method will return an empty NSArray object. Returns nil in the case of an error.
