MFC r318677:
Fix regression in ndis(4) after r286410. This adds a bunch of checks for whether this is a Ethernet or 802.11 device and does proper dereferencing. PR: [[ https://bugs.freebsd.org/213237 | 213237 ]] Submitted by: <ota j.email.ne.jp> Approved by: re (marius)