Subject: q: change of ethernet media
To: None <tech-net@netbsd.org>
From: David Young <dyoung@pobox.com>
List: tech-net
Date: 12/30/2007 22:07:03
Here and there an ethernet driver registers a mediachange routine with
ifmedia_init() that contains this curious check,

        if (IFM_TYPE(sc->sc_media.ifm_media) != IFM_ETHER)
                return (EINVAL);

Look at gem_mediachange(), just for example.

This looks like a superfluous check to me.  Am I missing something?

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933 ext 24