.. | .. |
---|
1 | | -/****************************************************************************** |
---|
2 | | - * |
---|
3 | | - * Copyright(c) 2009-2012 Realtek Corporation. All rights reserved. |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify it |
---|
6 | | - * under the terms of version 2 of the GNU General Public License as |
---|
7 | | - * published by the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
---|
10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
12 | | - * more details. |
---|
13 | | - * |
---|
14 | | - * The full GNU General Public License is included in this distribution in the |
---|
15 | | - * file called LICENSE. |
---|
16 | | - * |
---|
17 | | - * Contact Information: |
---|
18 | | - * wlanfae <wlanfae@realtek.com> |
---|
19 | | - * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, |
---|
20 | | - * Hsinchu 300, Taiwan. |
---|
21 | | - * |
---|
22 | | - *****************************************************************************/ |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
---|
| 2 | +/* Copyright(c) 2009-2012 Realtek Corporation.*/ |
---|
23 | 3 | |
---|
24 | 4 | #ifndef __RTL_USB_H__ |
---|
25 | 5 | #define __RTL_USB_H__ |
---|
.. | .. |
---|
36 | 16 | |
---|
37 | 17 | #define USB_HIGH_SPEED_BULK_SIZE 512 |
---|
38 | 18 | #define USB_FULL_SPEED_BULK_SIZE 64 |
---|
39 | | - |
---|
40 | 19 | |
---|
41 | 20 | #define RTL_USB_MAX_TXQ_NUM 4 /* max tx queue */ |
---|
42 | 21 | #define RTL_USB_MAX_EP_NUM 6 /* max ep number */ |
---|
.. | .. |
---|
73 | 52 | u32 ep_num) |
---|
74 | 53 | { |
---|
75 | 54 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); |
---|
| 55 | + |
---|
76 | 56 | info->rate_driver_data[0] = rtlusb; |
---|
77 | 57 | info->rate_driver_data[1] = (void *)(__kernel_size_t)ep_num; |
---|
78 | 58 | } |
---|
79 | | - |
---|
80 | 59 | |
---|
81 | 60 | /* Add suspend/resume later */ |
---|
82 | 61 | enum rtl_usb_state { |
---|
.. | .. |
---|
104 | 83 | /* Bcn control register setting */ |
---|
105 | 84 | u32 reg_bcn_ctrl_val; |
---|
106 | 85 | /* for 88/92cu card disable */ |
---|
107 | | - u8 disableHWSM; |
---|
| 86 | + u8 disablehwsm; |
---|
108 | 87 | /*QOS & EDCA */ |
---|
109 | 88 | enum acm_method acm_method; |
---|
110 | 89 | /* irq . HIMR,HIMR_EX */ |
---|
.. | .. |
---|
152 | 131 | |
---|
153 | 132 | #define rtl_usbpriv(hw) (((struct rtl_usb_priv *)(rtl_priv(hw))->priv)) |
---|
154 | 133 | #define rtl_usbdev(usbpriv) (&((usbpriv)->dev)) |
---|
155 | | - |
---|
156 | | - |
---|
157 | 134 | |
---|
158 | 135 | int rtl_usb_probe(struct usb_interface *intf, |
---|
159 | 136 | const struct usb_device_id *id, |
---|