if_bwi.c (302408) | if_bwi.c (323421) |
---|---|
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: stable/11/sys/dev/bwi/if_bwi.c 300755 2016-05-26 16:48:20Z avos $"); | 38__FBSDID("$FreeBSD: stable/11/sys/dev/bwi/if_bwi.c 323421 2017-09-11 02:56:45Z ian $"); |
39 40#include "opt_inet.h" 41#include "opt_bwi.h" 42#include "opt_wlan.h" 43 44#include <sys/param.h> 45#include <sys/endian.h> 46#include <sys/kernel.h> --- 329 unchanged lines hidden (view full) --- 376 callout_init_mtx(&sc->sc_calib_ch, &sc->sc_mtx, 0); 377 mbufq_init(&sc->sc_snd, ifqmaxlen); 378 379 /* 380 * Initialize sysctl variables 381 */ 382 sc->sc_fw_version = BWI_FW_VERSION3; 383 sc->sc_led_idle = (2350 * hz) / 1000; | 39 40#include "opt_inet.h" 41#include "opt_bwi.h" 42#include "opt_wlan.h" 43 44#include <sys/param.h> 45#include <sys/endian.h> 46#include <sys/kernel.h> --- 329 unchanged lines hidden (view full) --- 376 callout_init_mtx(&sc->sc_calib_ch, &sc->sc_mtx, 0); 377 mbufq_init(&sc->sc_snd, ifqmaxlen); 378 379 /* 380 * Initialize sysctl variables 381 */ 382 sc->sc_fw_version = BWI_FW_VERSION3; 383 sc->sc_led_idle = (2350 * hz) / 1000; |
384 sc->sc_led_ticks = ticks - sc->sc_led_idle; |
|
384 sc->sc_led_blink = 1; 385 sc->sc_txpwr_calib = 1; 386#ifdef BWI_DEBUG 387 sc->sc_debug = bwi_debug; 388#endif 389 bwi_power_on(sc, 1); 390 391 error = bwi_bbp_attach(sc); --- 3623 unchanged lines hidden --- | 385 sc->sc_led_blink = 1; 386 sc->sc_txpwr_calib = 1; 387#ifdef BWI_DEBUG 388 sc->sc_debug = bwi_debug; 389#endif 390 bwi_power_on(sc, 1); 391 392 error = bwi_bbp_attach(sc); --- 3623 unchanged lines hidden --- |