dev->hard_header_len += ATH_FF_MAX_HDR;
#endif
#endif
+ dev->type = ARPHRD_IEEE80211
+
ic->ic_dev = dev;
ic->ic_mgtstart = ath_mgtstart;
ic->ic_init = ath_init;
if (sc->sc_rc->ops->dynamic_proc_register)
sc->sc_rc->ops->dynamic_proc_register(vap);
- /*
- * Change the interface type for monitor mode.
- */
+ dev->type = ARPHRD_IEEE80211;
if (opmode == IEEE80211_M_MONITOR)
+ /* Use RadioTAP interface type for monitor mode. */
dev->type = ARPHRD_IEEE80211_RADIOTAP;
if ((flags & IEEE80211_CLONE_BSSID) &&
sc->aps_sc.sc_invalid = 1;
dev->irq = pdev->irq;
- /*
- * Don't leave arp type as ARPHRD_ETHER as this is no eth device
- */
- dev->type = ARPHRD_IEEE80211;
SET_MODULE_OWNER(dev);
SET_NETDEV_DEV(dev, &pdev->dev);