if_rsu.c (287954) | if_rsu.c (288049) |
---|---|
1/* $OpenBSD: if_rsu.c,v 1.17 2013/04/15 09:23:01 mglocker Exp $ */ 2 3/*- 4 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 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#include <sys/cdefs.h> | 1/* $OpenBSD: if_rsu.c,v 1.17 2013/04/15 09:23:01 mglocker Exp $ */ 2 3/*- 4 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 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#include <sys/cdefs.h> |
19__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_rsu.c 287954 2015-09-18 07:55:33Z adrian $"); | 19__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_rsu.c 288049 2015-09-20 22:52:40Z adrian $"); |
20 21/* 22 * Driver for Realtek RTL8188SU/RTL8191SU/RTL8192SU. 23 * 24 * TODO: 25 * o 11n support 26 * o h/w crypto 27 * o hostap / ibss / mesh --- 412 unchanged lines hidden (view full) --- 440 441 /* Enable basic HT */ 442 ic->ic_htcaps = IEEE80211_HTC_HT | 443 IEEE80211_HTC_AMPDU | 444 IEEE80211_HTC_AMSDU | 445 IEEE80211_HTCAP_MAXAMSDU_3839 | 446 IEEE80211_HTCAP_SMPS_OFF; 447 | 20 21/* 22 * Driver for Realtek RTL8188SU/RTL8191SU/RTL8192SU. 23 * 24 * TODO: 25 * o 11n support 26 * o h/w crypto 27 * o hostap / ibss / mesh --- 412 unchanged lines hidden (view full) --- 440 441 /* Enable basic HT */ 442 ic->ic_htcaps = IEEE80211_HTC_HT | 443 IEEE80211_HTC_AMPDU | 444 IEEE80211_HTC_AMSDU | 445 IEEE80211_HTCAP_MAXAMSDU_3839 | 446 IEEE80211_HTCAP_SMPS_OFF; 447 |
448 /* 449 * XXX HT40 isn't working in this driver yet - there's 450 * something missing. Disable it for now. 451 */ 452#if 0 |
|
448 ic->ic_htcaps |= IEEE80211_HTCAP_CHWIDTH40; | 453 ic->ic_htcaps |= IEEE80211_HTCAP_CHWIDTH40; |
454#endif |
|
449 450 /* set number of spatial streams */ 451 ic->ic_txstream = 1; 452 ic->ic_rxstream = 1; 453 } 454 455 /* Set supported .11b and .11g rates. */ 456 bands = 0; --- 2213 unchanged lines hidden --- | 455 456 /* set number of spatial streams */ 457 ic->ic_txstream = 1; 458 ic->ic_rxstream = 1; 459 } 460 461 /* Set supported .11b and .11g rates. */ 462 bands = 0; --- 2213 unchanged lines hidden --- |