if_urtwn.c (345636) | if_urtwn.c (360696) |
---|---|
1/* $OpenBSD: if_urtwn.c,v 1.16 2011/02/10 17:26:40 jakemsr Exp $ */ 2 3/*- 4 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 5 * Copyright (c) 2014 Kevin Lo <kevlo@FreeBSD.org> 6 * Copyright (c) 2015 Andriy Voskoboinyk <avos@FreeBSD.org> 7 * 8 * Permission to use, copy, modify, and distribute this software for any --- 5 unchanged lines hidden (view full) --- 14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 15 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 19 */ 20 21#include <sys/cdefs.h> | 1/* $OpenBSD: if_urtwn.c,v 1.16 2011/02/10 17:26:40 jakemsr Exp $ */ 2 3/*- 4 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 5 * Copyright (c) 2014 Kevin Lo <kevlo@FreeBSD.org> 6 * Copyright (c) 2015 Andriy Voskoboinyk <avos@FreeBSD.org> 7 * 8 * Permission to use, copy, modify, and distribute this software for any --- 5 unchanged lines hidden (view full) --- 14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 15 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 19 */ 20 21#include <sys/cdefs.h> |
22__FBSDID("$FreeBSD: stable/11/sys/dev/urtwn/if_urtwn.c 345636 2019-03-28 09:50:25Z avos $"); | 22__FBSDID("$FreeBSD: stable/11/sys/dev/urtwn/if_urtwn.c 360696 2020-05-06 17:44:17Z dim $"); |
23 24/* 25 * Driver for Realtek RTL8188CE-VAU/RTL8188CUS/RTL8188EU/RTL8188RU/RTL8192CU. 26 */ 27 28#include "opt_wlan.h" 29#include "opt_urtwn.h" 30 --- 4141 unchanged lines hidden (view full) --- 4172 for (i = 0; i < nitems(rtl8188eu_mac); i++) { 4173 error = urtwn_write_1(sc, rtl8188eu_mac[i].reg, 4174 rtl8188eu_mac[i].val); 4175 if (error != USB_ERR_NORMAL_COMPLETION) 4176 return (EIO); 4177 } 4178 urtwn_write_1(sc, R92C_MAX_AGGR_NUM, 0x07); 4179 } else { | 23 24/* 25 * Driver for Realtek RTL8188CE-VAU/RTL8188CUS/RTL8188EU/RTL8188RU/RTL8192CU. 26 */ 27 28#include "opt_wlan.h" 29#include "opt_urtwn.h" 30 --- 4141 unchanged lines hidden (view full) --- 4172 for (i = 0; i < nitems(rtl8188eu_mac); i++) { 4173 error = urtwn_write_1(sc, rtl8188eu_mac[i].reg, 4174 rtl8188eu_mac[i].val); 4175 if (error != USB_ERR_NORMAL_COMPLETION) 4176 return (EIO); 4177 } 4178 urtwn_write_1(sc, R92C_MAX_AGGR_NUM, 0x07); 4179 } else { |
4180 for (i = 0; i < nitems(rtl8192cu_mac); i++) | 4180 for (i = 0; i < nitems(rtl8192cu_mac); i++) { |
4181 error = urtwn_write_1(sc, rtl8192cu_mac[i].reg, 4182 rtl8192cu_mac[i].val); 4183 if (error != USB_ERR_NORMAL_COMPLETION) 4184 return (EIO); | 4181 error = urtwn_write_1(sc, rtl8192cu_mac[i].reg, 4182 rtl8192cu_mac[i].val); 4183 if (error != USB_ERR_NORMAL_COMPLETION) 4184 return (EIO); |
4185 } |
|
4185 } 4186 4187 return (0); 4188} 4189 4190static void 4191urtwn_bb_init(struct urtwn_softc *sc) 4192{ --- 1480 unchanged lines hidden --- | 4186 } 4187 4188 return (0); 4189} 4190 4191static void 4192urtwn_bb_init(struct urtwn_softc *sc) 4193{ --- 1480 unchanged lines hidden --- |