rt2661.c (172060) | rt2661.c (172211) |
---|---|
1/* $FreeBSD: head/sys/dev/ral/rt2661.c 172060 2007-09-05 23:00:27Z sam $ */ | 1/* $FreeBSD: head/sys/dev/ral/rt2661.c 172211 2007-09-17 19:07:24Z sam $ */ |
2 3/*- 4 * Copyright (c) 2006 5 * Damien Bergamini <damien.bergamini@free.fr> 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 * 11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20#include <sys/cdefs.h> | 2 3/*- 4 * Copyright (c) 2006 5 * Damien Bergamini <damien.bergamini@free.fr> 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 * 11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20#include <sys/cdefs.h> |
21__FBSDID("$FreeBSD: head/sys/dev/ral/rt2661.c 172060 2007-09-05 23:00:27Z sam $"); | 21__FBSDID("$FreeBSD: head/sys/dev/ral/rt2661.c 172211 2007-09-17 19:07:24Z sam $"); |
22 23/*- 24 * Ralink Technology RT2561, RT2561S and RT2661 chipset driver 25 * http://www.ralinktech.com/ 26 */ 27 28#include <sys/param.h> 29#include <sys/sysctl.h> --- 2768 unchanged lines hidden (view full) --- 2798rt2661_prepare_beacon(struct rt2661_softc *sc) 2799{ 2800 struct ieee80211com *ic = &sc->sc_ic; 2801 struct ieee80211_beacon_offsets bo; 2802 struct rt2661_tx_desc desc; 2803 struct mbuf *m0; 2804 int rate; 2805 | 22 23/*- 24 * Ralink Technology RT2561, RT2561S and RT2661 chipset driver 25 * http://www.ralinktech.com/ 26 */ 27 28#include <sys/param.h> 29#include <sys/sysctl.h> --- 2768 unchanged lines hidden (view full) --- 2798rt2661_prepare_beacon(struct rt2661_softc *sc) 2799{ 2800 struct ieee80211com *ic = &sc->sc_ic; 2801 struct ieee80211_beacon_offsets bo; 2802 struct rt2661_tx_desc desc; 2803 struct mbuf *m0; 2804 int rate; 2805 |
2806 m0 = ieee80211_beacon_alloc(ic, ic->ic_bss, &bo); | 2806 m0 = ieee80211_beacon_alloc(ic->ic_bss, &bo); |
2807 if (m0 == NULL) { 2808 device_printf(sc->sc_dev, "could not allocate beacon frame\n"); 2809 return ENOBUFS; 2810 } 2811 2812 /* send beacons at the lowest available rate */ 2813 rate = IEEE80211_IS_CHAN_5GHZ(ic->ic_bss->ni_chan) ? 12 : 2; 2814 --- 129 unchanged lines hidden --- | 2807 if (m0 == NULL) { 2808 device_printf(sc->sc_dev, "could not allocate beacon frame\n"); 2809 return ENOBUFS; 2810 } 2811 2812 /* send beacons at the lowest available rate */ 2813 rate = IEEE80211_IS_CHAN_5GHZ(ic->ic_bss->ni_chan) ? 12 : 2; 2814 --- 129 unchanged lines hidden --- |