Deleted Added
full compact
if_urtw.c (194677) if_urtw.c (195049)
1/*-
2 * Copyright (c) 2008 Weongyo Jeong <weongyo@FreeBSD.org>
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008 Weongyo Jeong <weongyo@FreeBSD.org>
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17#include <sys/cdefs.h>
18__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_urtw.c 194677 2009-06-23 02:19:59Z thompsa $");
18__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_urtw.c 195049 2009-06-26 11:45:06Z rwatson $");
19#include <sys/param.h>
20#include <sys/sockio.h>
21#include <sys/sysctl.h>
22#include <sys/lock.h>
23#include <sys/mutex.h>
24#include <sys/mbuf.h>
25#include <sys/kernel.h>
26#include <sys/socket.h>

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

1940
1941 if (!(ifp->if_flags & IFF_UP))
1942 return;
1943
1944 /*
1945 * XXX don't know how to set a device. Lack of docs. Just try to set
1946 * IFF_ALLMULTI flag here.
1947 */
19#include <sys/param.h>
20#include <sys/sockio.h>
21#include <sys/sysctl.h>
22#include <sys/lock.h>
23#include <sys/mutex.h>
24#include <sys/mbuf.h>
25#include <sys/kernel.h>
26#include <sys/socket.h>

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

1940
1941 if (!(ifp->if_flags & IFF_UP))
1942 return;
1943
1944 /*
1945 * XXX don't know how to set a device. Lack of docs. Just try to set
1946 * IFF_ALLMULTI flag here.
1947 */
1948 IF_ADDR_LOCK(ifp);
1949 ifp->if_flags |= IFF_ALLMULTI;
1948 ifp->if_flags |= IFF_ALLMULTI;
1950 IF_ADDR_UNLOCK(ifp);
1951}
1952
1953static usb_error_t
1954urtw_set_rate(struct urtw_softc *sc)
1955{
1956 int i, basic_rate, min_rr_rate, max_rr_rate;
1957 uint16_t data;
1958 usb_error_t error;

--- 2277 unchanged lines hidden ---
1949}
1950
1951static usb_error_t
1952urtw_set_rate(struct urtw_softc *sc)
1953{
1954 int i, basic_rate, min_rr_rate, max_rr_rate;
1955 uint16_t data;
1956 usb_error_t error;

--- 2277 unchanged lines hidden ---