/* Change Logs: Date Author Notes  Wayne First version  */
unsigned int mii_nway_result(unsigned int negotiated)
/* Change Logs: Date Author Notes  Wayne First version  */
unsigned int mii_nway_result(unsigned int negotiated)
{
    unsigned int ret;
    if (negotiated & LPA_100FULL)
        ret = LPA_100FULL;
    else if (negotiated & LPA_100BASE4)
        ret = LPA_100BASE4;
    else if (negotiated & LPA_100HALF)
        ret = LPA_100HALF;
    else if (negotiated & LPA_10FULL)
        ret = LPA_10FULL;
    else
        ret = LPA_10HALF;
    return ret;
}