Deleted Added
full compact
if_malo.c (205843) if_malo.c (207554)
1/*-
2 * Copyright (c) 2008 Weongyo Jeong <weongyo@freebsd.org>
3 * Copyright (c) 2007 Marvell Semiconductor, Inc.
4 * Copyright (c) 2007 Sam Leffler, Errno Consulting
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 17 unchanged lines hidden (view full) ---

26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
27 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29 * THE POSSIBILITY OF SUCH DAMAGES.
30 */
31
32#include <sys/cdefs.h>
33#ifdef __FreeBSD__
1/*-
2 * Copyright (c) 2008 Weongyo Jeong <weongyo@freebsd.org>
3 * Copyright (c) 2007 Marvell Semiconductor, Inc.
4 * Copyright (c) 2007 Sam Leffler, Errno Consulting
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 17 unchanged lines hidden (view full) ---

26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
27 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29 * THE POSSIBILITY OF SUCH DAMAGES.
30 */
31
32#include <sys/cdefs.h>
33#ifdef __FreeBSD__
34__FBSDID("$FreeBSD: head/sys/dev/malo/if_malo.c 205843 2010-03-29 17:25:06Z imp $");
34__FBSDID("$FreeBSD: head/sys/dev/malo/if_malo.c 207554 2010-05-03 07:32:50Z sobomax $");
35#endif
36
37#include "opt_malo.h"
38
39#include <sys/param.h>
40#include <sys/endian.h>
41#include <sys/kernel.h>
42#include <sys/socket.h>

--- 227 unchanged lines hidden (view full) ---

270 TASK_INIT(&sc->malo_rxtask, 0, malo_rx_proc, sc);
271 TASK_INIT(&sc->malo_txtask, 0, malo_tx_proc, sc);
272
273 ifp->if_softc = sc;
274 ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST;
275 ifp->if_start = malo_start;
276 ifp->if_ioctl = malo_ioctl;
277 ifp->if_init = malo_init;
35#endif
36
37#include "opt_malo.h"
38
39#include <sys/param.h>
40#include <sys/endian.h>
41#include <sys/kernel.h>
42#include <sys/socket.h>

--- 227 unchanged lines hidden (view full) ---

270 TASK_INIT(&sc->malo_rxtask, 0, malo_rx_proc, sc);
271 TASK_INIT(&sc->malo_txtask, 0, malo_tx_proc, sc);
272
273 ifp->if_softc = sc;
274 ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST;
275 ifp->if_start = malo_start;
276 ifp->if_ioctl = malo_ioctl;
277 ifp->if_init = malo_init;
278 IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
279 ifp->if_snd.ifq_drv_maxlen = IFQ_MAXLEN;
278 IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen);
279 ifp->if_snd.ifq_drv_maxlen = ifqmaxlen;
280 IFQ_SET_READY(&ifp->if_snd);
281
282 ic->ic_ifp = ifp;
283 /* XXX not right but it's not used anywhere important */
284 ic->ic_phytype = IEEE80211_T_OFDM;
285 ic->ic_opmode = IEEE80211_M_STA;
286 ic->ic_caps =
287 IEEE80211_C_STA /* station mode supported */

--- 2004 unchanged lines hidden ---
280 IFQ_SET_READY(&ifp->if_snd);
281
282 ic->ic_ifp = ifp;
283 /* XXX not right but it's not used anywhere important */
284 ic->ic_phytype = IEEE80211_T_OFDM;
285 ic->ic_opmode = IEEE80211_M_STA;
286 ic->ic_caps =
287 IEEE80211_C_STA /* station mode supported */

--- 2004 unchanged lines hidden ---