if_run.c (214894) | if_run.c (217511) |
---|---|
1/*- 2 * Copyright (c) 2008,2010 Damien Bergamini <damien.bergamini@free.fr> 3 * ported to FreeBSD by Akinori Furukoshi <moonlightakkiy@yahoo.ca> 4 * USB Consulting, Hans Petter Selasky <hselasky@freebsd.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2008,2010 Damien Bergamini <damien.bergamini@free.fr> 3 * ported to FreeBSD by Akinori Furukoshi <moonlightakkiy@yahoo.ca> 4 * USB Consulting, Hans Petter Selasky <hselasky@freebsd.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19#include <sys/cdefs.h> |
20__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_run.c 214894 2010-11-06 18:17:20Z bschmidt $"); | 20__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_run.c 217511 2011-01-17 20:15:15Z bschmidt $"); |
21 22/*- 23 * Ralink Technology RT2700U/RT2800U/RT3000U chipset driver. 24 * http://www.ralinktech.com/ 25 */ 26 27#include <sys/param.h> 28#include <sys/sockio.h> --- 2342 unchanged lines hidden (view full) --- 2371 sc->cmdq[cnt].arg1 = ni; 2372 sc->cmdq[cnt].wcid = wcid; 2373 ieee80211_runtask(ic, &sc->cmdq_task); 2374 } 2375 2376 DPRINTF("new assoc isnew=%d associd=%x addr=%s\n", 2377 isnew, ni->ni_associd, ether_sprintf(ni->ni_macaddr)); 2378 | 21 22/*- 23 * Ralink Technology RT2700U/RT2800U/RT3000U chipset driver. 24 * http://www.ralinktech.com/ 25 */ 26 27#include <sys/param.h> 28#include <sys/sockio.h> --- 2342 unchanged lines hidden (view full) --- 2371 sc->cmdq[cnt].arg1 = ni; 2372 sc->cmdq[cnt].wcid = wcid; 2373 ieee80211_runtask(ic, &sc->cmdq_task); 2374 } 2375 2376 DPRINTF("new assoc isnew=%d associd=%x addr=%s\n", 2377 isnew, ni->ni_associd, ether_sprintf(ni->ni_macaddr)); 2378 |
2379 ieee80211_ratectl_node_init(ni); | |
2380 sc->sc_ni[wcid] = ni; 2381 2382 for (i = 0; i < rs->rs_nrates; i++) { 2383 rate = rs->rs_rates[i] & IEEE80211_RATE_VAL; 2384 /* convert 802.11 rate to hardware rate index */ 2385 for (ridx = 0; ridx < RT2860_RIDX_MAX; ridx++) 2386 if (rt2860_rates[ridx].rate == rate) 2387 break; --- 2492 unchanged lines hidden --- | 2379 sc->sc_ni[wcid] = ni; 2380 2381 for (i = 0; i < rs->rs_nrates; i++) { 2382 rate = rs->rs_rates[i] & IEEE80211_RATE_VAL; 2383 /* convert 802.11 rate to hardware rate index */ 2384 for (ridx = 0; ridx < RT2860_RIDX_MAX; ridx++) 2385 if (rt2860_rates[ridx].rate == rate) 2386 break; --- 2492 unchanged lines hidden --- |