<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_path_get_link_quality(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@F@nw_path_get_link_quality"
  },
  "title" : "nw_path_get_link_quality(_:)"
}
-->

# nw_path_get_link_quality(_:)

```
func nw_path_get_link_quality(_ path: nw_path_t) -> nw_link_quality_t
```

## Parameters

`path`

The path object to check.

## Return Value

Returns the link quality measurement of the link layer network attachment.
Returns nw_link_quality_unknown if there is no measurement available.

## Discussion

\abstract Fetches the link quality measurement for the interface.
Link quality measurement is a representation of the expected capabilities of the link layer network
attachment. Use this value to tune initial values for algorithms that can scale with the
capabilities of the network. Do not use this value to gate connection attempts or to override
adjustments that would be made based on actual network performance.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)