---
name: "genphy_config_advert"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/genphy_config_advert"
---

# genphy\_config\_advert(9)

sanitize and advertise auto-negotiation parameters

## NAME

genphy\_config\_advert - sanitize and advertise auto-negotiation parameters

## SYNOPSIS

**int genphy\_config\_advert(struct phy\_device \*** *phydev***);**

## ARGUMENTS

*phydev*

target phy\_device struct

## DESCRIPTION

Writes MII\_ADVERTISE with the appropriate values, after sanitizing the values to make sure we only advertise what is supported. Returns \< 0 on error, 0 if the PHY's advertisement hasn't changed, and \> 0 if it has changed.

## COPYRIGHT
