Index: sys/dev/bnxt/if_bnxt.c =================================================================== --- sys/dev/bnxt/if_bnxt.c +++ sys/dev/bnxt/if_bnxt.c @@ -2051,8 +2051,16 @@ break; case HWRM_PORT_PHY_QCFG_OUTPUT_PHY_TYPE_UNKNOWN: + /* + * If cable is not plugged in, just use AUTO mode. + * Once link is up, populate proper list of supported speeds. + * Just adding debug message here to notify user + */ + device_printf(softc->dev, "INFORMATION: Unknown Phy type\n"); + break; + default: - /* Only Autoneg is supported for TYPE_UNKNOWN */ + device_printf(softc->dev, "ERROR: Invalid Phy type\n"); break; } @@ -2190,6 +2198,10 @@ link_info->last_flow_ctrl.tx = link_info->flow_ctrl.tx; link_info->last_flow_ctrl.rx = link_info->flow_ctrl.rx; link_info->last_flow_ctrl.autoneg = link_info->flow_ctrl.autoneg; + /* update media types */ + ifmedia_removeall(softc->media); + bnxt_add_media_types(softc); + ifmedia_set(softc->media, IFM_ETHER | IFM_AUTO); } static int