Fixed the 10Mbit speed as noticed by Philippe.

Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40598 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2011-02-21 13:13:23 +00:00
parent 7920b5579c
commit 03683e642c

View File

@ -309,7 +309,8 @@ wb840_control (void* cookie, uint32 op, void* arg, size_t len)
state.media = (data->link ? IFM_ACTIVE : 0) | IFM_ETHER
| (data->full_duplex ? IFM_FULL_DUPLEX : IFM_HALF_DUPLEX)
| (data->speed == LINK_SPEED_100_MBIT ? IFM_100_TX : IFM_10_T);
state.speed = data->speed == LINK_SPEED_100_MBIT ? 100000000 : 10000;
state.speed = data->speed == LINK_SPEED_100_MBIT
? 100000000 : 10000000;
state.quality = 1000;
return user_memcpy(arg, &state, sizeof(ether_link_state_t));