|
|
|
|
1417
|
tp->csr0 |= 0x2000;
|
1417
|
tp->csr0 |= 0x2000;
|
1418
|
|
1418
|
|
1419
|
if (media_cap[tp->default_port] & MediaIsMII) {
|
1419
|
if (media_cap[tp->default_port] & MediaIsMII) {
|
1420
|
- u16 media2advert[] = { 0x20, 0x40, 0x03e0, 0x60, 0x80, 0x100, 0x200 };
|
|
|
|
|
1420
|
+ static const u16 media2advert[] = { 0x20, 0x40, 0x03e0, 0x60,
|
|
|
1421
|
+ 0x80, 0x100, 0x200 };
|
1421
|
tp->mii_advertise = media2advert[tp->default_port - 9];
|
1422
|
tp->mii_advertise = media2advert[tp->default_port - 9];
|
1422
|
tp->mii_advertise |= (tp->flags & HAS_8023X); /* Matching bits! */
|
1423
|
tp->mii_advertise |= (tp->flags & HAS_8023X); /* Matching bits! */
|
1423
|
}
|
1424
|
}
|