We did this by adding a new query "ETH_DRV_GET_MEDIA_STATUS" in the ethernet driver control function (xxx_control()) and adding support for SIOCGIFMEDIA in eth_drv_ioctl().Can you share this code? It's probably worth putting into the mainline.
Sure, I'll tidy it up and send a patch. Kelvin. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
