if_bwi.c (206370) | if_bwi.c (207554) |
---|---|
1/* 2 * Copyright (c) 2007 The DragonFly Project. All rights reserved. 3 * 4 * This code is derived from software contributed to The DragonFly Project 5 * by Sepherosa Ziehau <sepherosa@gmail.com> 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 21 unchanged lines hidden (view full) --- 30 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 31 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * $DragonFly: src/sys/dev/netif/bwi/if_bwi.c,v 1.19 2008/02/15 11:15:38 sephe Exp $ 35 */ 36 37#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2007 The DragonFly Project. All rights reserved. 3 * 4 * This code is derived from software contributed to The DragonFly Project 5 * by Sepherosa Ziehau <sepherosa@gmail.com> 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 21 unchanged lines hidden (view full) --- 30 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 31 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * $DragonFly: src/sys/dev/netif/bwi/if_bwi.c,v 1.19 2008/02/15 11:15:38 sephe Exp $ 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/dev/bwi/if_bwi.c 206370 2010-04-07 17:49:47Z rpaulo $"); | 38__FBSDID("$FreeBSD: head/sys/dev/bwi/if_bwi.c 207554 2010-05-03 07:32:50Z sobomax $"); |
39 40#include "opt_inet.h" 41#include "opt_bwi.h" 42 43#include <sys/param.h> 44#include <sys/endian.h> 45#include <sys/kernel.h> 46#include <sys/bus.h> --- 409 unchanged lines hidden (view full) --- 456 /* set these up early for if_printf use */ 457 if_initname(ifp, device_get_name(dev), device_get_unit(dev)); 458 459 ifp->if_softc = sc; 460 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 461 ifp->if_init = bwi_init; 462 ifp->if_ioctl = bwi_ioctl; 463 ifp->if_start = bwi_start; | 39 40#include "opt_inet.h" 41#include "opt_bwi.h" 42 43#include <sys/param.h> 44#include <sys/endian.h> 45#include <sys/kernel.h> 46#include <sys/bus.h> --- 409 unchanged lines hidden (view full) --- 456 /* set these up early for if_printf use */ 457 if_initname(ifp, device_get_name(dev), device_get_unit(dev)); 458 459 ifp->if_softc = sc; 460 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 461 ifp->if_init = bwi_init; 462 ifp->if_ioctl = bwi_ioctl; 463 ifp->if_start = bwi_start; |
464 IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN); 465 ifp->if_snd.ifq_drv_maxlen = IFQ_MAXLEN; | 464 IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen); 465 ifp->if_snd.ifq_drv_maxlen = ifqmaxlen; |
466 IFQ_SET_READY(&ifp->if_snd); 467 callout_init_mtx(&sc->sc_watchdog_timer, &sc->sc_mtx, 0); 468 469 /* 470 * Setup ratesets, phytype, channels and get MAC address 471 */ 472 bands = 0; 473 if (phy->phy_mode == IEEE80211_MODE_11B || --- 3598 unchanged lines hidden --- | 466 IFQ_SET_READY(&ifp->if_snd); 467 callout_init_mtx(&sc->sc_watchdog_timer, &sc->sc_mtx, 0); 468 469 /* 470 * Setup ratesets, phytype, channels and get MAC address 471 */ 472 bands = 0; 473 if (phy->phy_mode == IEEE80211_MODE_11B || --- 3598 unchanged lines hidden --- |