diff options
author | Bernhard Beschow <shentey@gmail.com> | 2024-12-11 15:30:52 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2024-12-11 15:30:52 +0000 |
commit | 973a2fac48590d9b4e6f1601a13c7f96a1fd5deb (patch) | |
tree | dc6f8088947d995d854f4ac744b47ad8a76e1fb6 /hw | |
parent | 212a52c8f2e4ce13251ed998db57af22b34e7e6f (diff) | |
download | qemu-973a2fac48590d9b4e6f1601a13c7f96a1fd5deb.zip qemu-973a2fac48590d9b4e6f1601a13c7f96a1fd5deb.tar.gz qemu-973a2fac48590d9b4e6f1601a13c7f96a1fd5deb.tar.bz2 |
hw/net/lan9118_phy: Add missing 100 mbps full duplex advertisement
The real device advertises this mode and the device model already advertises
100 mbps half duplex and 10 mbps full+half duplex. So advertise this mode to
make the model more realistic.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Message-id: 20241102125724.532843-6-shentey@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/net/lan9118_phy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/lan9118_phy.c b/hw/net/lan9118_phy.c index 874dae4..5c53a4a 100644 --- a/hw/net/lan9118_phy.c +++ b/hw/net/lan9118_phy.c @@ -110,8 +110,8 @@ void lan9118_phy_write(Lan9118PhyState *s, int reg, uint16_t val) break; case MII_ANAR: s->advertise = (val & (MII_ANAR_RFAULT | MII_ANAR_PAUSE_ASYM | - MII_ANAR_PAUSE | MII_ANAR_10FD | MII_ANAR_10 | - MII_ANAR_SELECT)) + MII_ANAR_PAUSE | MII_ANAR_TXFD | MII_ANAR_10FD | + MII_ANAR_10 | MII_ANAR_SELECT)) | MII_ANAR_TX; break; case 30: /* Interrupt mask */ |