if_upgt.c (199816) | if_upgt.c (207554) |
---|---|
1/* $OpenBSD: if_upgt.c,v 1.35 2008/04/16 18:32:15 damien Exp $ */ | 1/* $OpenBSD: if_upgt.c,v 1.35 2008/04/16 18:32:15 damien Exp $ */ |
2/* $FreeBSD: head/sys/dev/usb/wlan/if_upgt.c 199816 2009-11-26 00:43:17Z thompsa $ */ | 2/* $FreeBSD: head/sys/dev/usb/wlan/if_upgt.c 207554 2010-05-03 07:32:50Z sobomax $ */ |
3 4/* 5 * Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org> 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. 10 * --- 315 unchanged lines hidden (view full) --- 326 327 /* Setup the 802.11 device. */ 328 ifp->if_softc = sc; 329 if_initname(ifp, "upgt", device_get_unit(sc->sc_dev)); 330 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 331 ifp->if_init = upgt_init; 332 ifp->if_ioctl = upgt_ioctl; 333 ifp->if_start = upgt_start; | 3 4/* 5 * Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org> 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. 10 * --- 315 unchanged lines hidden (view full) --- 326 327 /* Setup the 802.11 device. */ 328 ifp->if_softc = sc; 329 if_initname(ifp, "upgt", device_get_unit(sc->sc_dev)); 330 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 331 ifp->if_init = upgt_init; 332 ifp->if_ioctl = upgt_ioctl; 333 ifp->if_start = upgt_start; |
334 IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN); | 334 IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen); |
335 IFQ_SET_READY(&ifp->if_snd); 336 337 ic = ifp->if_l2com; 338 ic->ic_ifp = ifp; 339 ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */ 340 ic->ic_opmode = IEEE80211_M_STA; 341 /* set device capabilities */ 342 ic->ic_caps = --- 2049 unchanged lines hidden --- | 335 IFQ_SET_READY(&ifp->if_snd); 336 337 ic = ifp->if_l2com; 338 ic->ic_ifp = ifp; 339 ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */ 340 ic->ic_opmode = IEEE80211_M_STA; 341 /* set device capabilities */ 342 ic->ic_caps = --- 2049 unchanged lines hidden --- |