if_bwn.c (289165) | if_bwn.c (292165) |
---|---|
1/*- 2 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/bwn/if_bwn.c 289165 2015-10-12 04:55:20Z adrian $"); | 31__FBSDID("$FreeBSD: head/sys/dev/bwn/if_bwn.c 292165 2015-12-13 20:48:24Z avos $"); |
32 33/* 34 * The Broadcom Wireless LAN controller driver. 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/module.h> --- 2676 unchanged lines hidden (view full) --- 2716bwn_updateslot(struct ieee80211com *ic) 2717{ 2718 struct bwn_softc *sc = ic->ic_softc; 2719 struct bwn_mac *mac; 2720 2721 BWN_LOCK(sc); 2722 if (sc->sc_flags & BWN_FLAG_RUNNING) { 2723 mac = (struct bwn_mac *)sc->sc_curmac; | 32 33/* 34 * The Broadcom Wireless LAN controller driver. 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/module.h> --- 2676 unchanged lines hidden (view full) --- 2716bwn_updateslot(struct ieee80211com *ic) 2717{ 2718 struct bwn_softc *sc = ic->ic_softc; 2719 struct bwn_mac *mac; 2720 2721 BWN_LOCK(sc); 2722 if (sc->sc_flags & BWN_FLAG_RUNNING) { 2723 mac = (struct bwn_mac *)sc->sc_curmac; |
2724 bwn_set_slot_time(mac, 2725 (ic->ic_flags & IEEE80211_F_SHSLOT) ? 9 : 20); | 2724 bwn_set_slot_time(mac, IEEE80211_GET_SLOTTIME(ic)); |
2726 } 2727 BWN_UNLOCK(sc); 2728} 2729 2730/* 2731 * Callback from the 802.11 layer after a promiscuous mode change. 2732 * Note this interface does not check the operating mode as this 2733 * is an internal callback and we are expected to honor the current --- 11354 unchanged lines hidden --- | 2725 } 2726 BWN_UNLOCK(sc); 2727} 2728 2729/* 2730 * Callback from the 802.11 layer after a promiscuous mode change. 2731 * Note this interface does not check the operating mode as this 2732 * is an internal callback and we are expected to honor the current --- 11354 unchanged lines hidden --- |