Change the default VAP interface type to ARPHRD_ETHER
authormentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 15 Nov 2007 18:32:03 +0000 (18:32 +0000)
committermentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 15 Nov 2007 18:32:03 +0000 (18:32 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2855 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath/if_ath.c

index f3e0e7fd45634a8becc6021628610734ae96c188..f0a8606c2ce6555fba27ea72258566c62f6e6cc3 100644 (file)
@@ -1128,7 +1128,8 @@ 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);
 
-       dev->type = ARPHRD_IEEE80211;
+       /* XXX: VAPs emulate ethernet - true/false/good/bad? */
+       dev->type = ARPHRD_ETHER;
        if (opmode == IEEE80211_M_MONITOR)
                /* Use RadioTAP interface type for monitor mode. */
                dev->type = ARPHRD_IEEE80211_RADIOTAP;