mirror of https://github.com/proski/madwifi
Always set the correct network device type
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2850 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
fba20ff1c0
commit
de3fb8a58e
|
@ -707,6 +707,8 @@ ath_attach(u_int16_t devid, struct net_device *dev, HAL_BUS_TAG tag)
|
|||
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;
|
||||
|
@ -1126,10 +1128,9 @@ ath_vap_create(struct ieee80211com *ic, const char *name,
|
|||
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) &&
|
||||
|
|
|
@ -197,10 +197,6 @@ ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue