mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
212a52c8f2
commit
973a2fac48
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue