diff options
author | Mithlesh Thukral <mithlesh@linsyssoft.com> | 2009-10-27 00:21:39 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 15:23:11 -0500 |
commit | dba0da373d389b9e12bb739d25cbe116dee5f55b (patch) | |
tree | dfcfe58af37edc116703c3c406bfcd67669ae4a9 | |
parent | 3001fa0522b87cbd756896a7ffa30a38fdf7a388 (diff) |
Staging: otus : checkpatch.pl cleanup for header files
Fix for checkpatch.pl errors and warnings in header files of otus driver.
(There is a typedef which still remains. Plan to clean it up in next set
of patches)
Signed-off-by: Mithlesh Thukral <mithlesh@linsyssoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/otus/athr_common.h | 10 | ||||
-rw-r--r-- | drivers/staging/otus/oal_dt.h | 10 | ||||
-rw-r--r-- | drivers/staging/otus/oal_marc.h | 84 | ||||
-rw-r--r-- | drivers/staging/otus/usbdrv.h | 140 | ||||
-rw-r--r-- | drivers/staging/otus/zdusb.h | 4 |
5 files changed, 126 insertions, 122 deletions
diff --git a/drivers/staging/otus/athr_common.h b/drivers/staging/otus/athr_common.h index 620f78a41d5f..3e32f5b4ac68 100644 --- a/drivers/staging/otus/athr_common.h +++ b/drivers/staging/otus/athr_common.h | |||
@@ -68,7 +68,7 @@ | |||
68 | 68 | ||
69 | #define ZM_WAPI_KEY_SIZE 32 | 69 | #define ZM_WAPI_KEY_SIZE 32 |
70 | #define ZM_WAPI_IV_LEN 16 | 70 | #define ZM_WAPI_IV_LEN 16 |
71 | #endif //ZM_ENALBE_WAPI | 71 | #endif /* ZM_ENALBE_WAPI */ |
72 | /* structure definition */ | 72 | /* structure definition */ |
73 | 73 | ||
74 | struct athr_wlan_param { | 74 | struct athr_wlan_param { |
@@ -123,7 +123,7 @@ struct athr_wapi_param { | |||
123 | u8 key[ZM_WAPI_KEY_SIZE]; | 123 | u8 key[ZM_WAPI_KEY_SIZE]; |
124 | } crypt; | 124 | } crypt; |
125 | struct { | 125 | struct { |
126 | u8 wapi_policy; | 126 | u8 wapi_policy; |
127 | } info; | 127 | } info; |
128 | } u; | 128 | } u; |
129 | }; | 129 | }; |
@@ -132,10 +132,10 @@ struct athr_wapi_sta_info | |||
132 | { | 132 | { |
133 | u16 msg_type; | 133 | u16 msg_type; |
134 | u16 datalen; | 134 | u16 datalen; |
135 | u8 sta_mac[ETH_ALEN]; | 135 | u8 sta_mac[ETH_ALEN]; |
136 | u8 reserve_data[2]; | 136 | u8 reserve_data[2]; |
137 | u8 gsn[ZM_WAPI_IV_LEN]; | 137 | u8 gsn[ZM_WAPI_IV_LEN]; |
138 | u8 wie[256]; | 138 | u8 wie[256]; |
139 | }; | 139 | }; |
140 | #endif //ZM_ENALBE_WAPI | 140 | #endif /* ZM_ENALBE_WAPI */ |
141 | #endif | 141 | #endif |
diff --git a/drivers/staging/otus/oal_dt.h b/drivers/staging/otus/oal_dt.h index e82b9770fca1..fb6d11a99cc5 100644 --- a/drivers/staging/otus/oal_dt.h +++ b/drivers/staging/otus/oal_dt.h | |||
@@ -39,15 +39,15 @@ typedef long s32_t; | |||
39 | typedef short s16_t; | 39 | typedef short s16_t; |
40 | typedef char s8_t; | 40 | typedef char s8_t; |
41 | 41 | ||
42 | #ifndef TRUE | 42 | #ifndef TRUE |
43 | #define TRUE (1==1) | 43 | #define TRUE (1 == 1) |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | #ifndef FALSE | 46 | #ifndef FALSE |
47 | #define FALSE (1==0) | 47 | #define FALSE (1 == 0) |
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | #ifndef NULL | 50 | #ifndef NULL |
51 | #define NULL 0 | 51 | #define NULL 0 |
52 | #endif | 52 | #endif |
53 | 53 | ||
diff --git a/drivers/staging/otus/oal_marc.h b/drivers/staging/otus/oal_marc.h index 206111616a03..e7a9081b1a7c 100644 --- a/drivers/staging/otus/oal_marc.h +++ b/drivers/staging/otus/oal_marc.h | |||
@@ -34,17 +34,19 @@ | |||
34 | /***** Critical section *****/ | 34 | /***** Critical section *****/ |
35 | /* Declare for critical section */ | 35 | /* Declare for critical section */ |
36 | #ifndef ZM_HALPLUS_LOCK | 36 | #ifndef ZM_HALPLUS_LOCK |
37 | #define zmw_get_wlan_dev(dev) struct zsWlanDev *wd = (struct zsWlanDev*) ((((struct usbdrv_private*)dev->priv)->wd)) | 37 | #define zmw_get_wlan_dev(dev) struct zsWlanDev *wd = (struct zsWlanDev *) \ |
38 | ((((struct usbdrv_private *)dev->priv)->wd)) | ||
38 | 39 | ||
39 | #define zmw_declare_for_critical_section() unsigned long irqFlag; | 40 | #define zmw_declare_for_critical_section() unsigned long irqFlag; |
40 | 41 | ||
41 | /* Enter critical section */ | 42 | /* Enter critical section */ |
42 | #define zmw_enter_critical_section(dev) \ | 43 | #define zmw_enter_critical_section(dev) spin_lock_irqsave( \ |
43 | spin_lock_irqsave(&(((struct usbdrv_private *)(dev->priv))->cs_lock), irqFlag); | 44 | &(((struct usbdrv_private *)(dev->priv))->cs_lock), irqFlag); |
44 | 45 | ||
45 | /* leave critical section */ | 46 | /* leave critical section */ |
46 | #define zmw_leave_critical_section(dev) \ | 47 | #define zmw_leave_critical_section(dev) \ |
47 | spin_unlock_irqrestore(&(((struct usbdrv_private *)(dev->priv))->cs_lock), irqFlag); | 48 | spin_unlock_irqrestore(&(((struct usbdrv_private *) \ |
49 | (dev->priv))->cs_lock), irqFlag); | ||
48 | #else | 50 | #else |
49 | #define zmw_get_wlan_dev(dev) struct zsWlanDev *wd = zfwGetWlanDev(dev); | 51 | #define zmw_get_wlan_dev(dev) struct zsWlanDev *wd = zfwGetWlanDev(dev); |
50 | 52 | ||
@@ -52,31 +54,29 @@ | |||
52 | #define zmw_declare_for_critical_section() | 54 | #define zmw_declare_for_critical_section() |
53 | 55 | ||
54 | /* Enter critical section */ | 56 | /* Enter critical section */ |
55 | #define zmw_enter_critical_section(dev) \ | 57 | #define zmw_enter_critical_section(dev) zfwEnterCriticalSection(dev); |
56 | zfwEnterCriticalSection(dev); | ||
57 | 58 | ||
58 | /* leave critical section */ | 59 | /* leave critical section */ |
59 | #define zmw_leave_critical_section(dev) \ | 60 | #define zmw_leave_critical_section(dev) zfwLeaveCriticalSection(dev); |
60 | zfwLeaveCriticalSection(dev); | ||
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | /***** Byte order converting *****/ | 63 | /***** Byte order converting *****/ |
64 | #ifdef ZM_CONFIG_BIG_ENDIAN | 64 | #ifdef ZM_CONFIG_BIG_ENDIAN |
65 | #define zmw_cpu_to_le32(v) (((v & 0xff000000) >> 24) | \ | 65 | #define zmw_cpu_to_le32(v) (((v & 0xff000000) >> 24) | \ |
66 | ((v & 0x00ff0000) >> 8) | \ | 66 | ((v & 0x00ff0000) >> 8) | \ |
67 | ((v & 0x0000ff00) << 8) | \ | 67 | ((v & 0x0000ff00) << 8) | \ |
68 | ((v & 0x000000ff) << 24)) | 68 | ((v & 0x000000ff) << 24)) |
69 | 69 | ||
70 | #define zmw_le32_to_cpu(v) (((v & 0xff000000) >> 24) | \ | 70 | #define zmw_le32_to_cpu(v) (((v & 0xff000000) >> 24) | \ |
71 | ((v & 0x00ff0000) >> 8) | \ | 71 | ((v & 0x00ff0000) >> 8) | \ |
72 | ((v & 0x0000ff00) << 8) | \ | 72 | ((v & 0x0000ff00) << 8) | \ |
73 | ((v & 0x000000ff) << 24)) | 73 | ((v & 0x000000ff) << 24)) |
74 | 74 | ||
75 | #define zmw_cpu_to_le16(v) (((v & 0xff00) >> 8) | \ | 75 | #define zmw_cpu_to_le16(v) (((v & 0xff00) >> 8) | \ |
76 | ((v & 0x00ff) << 8)) | 76 | ((v & 0x00ff) << 8)) |
77 | 77 | ||
78 | #define zmw_le16_to_cpu(v) (((v & 0xff00) >> 8) | \ | 78 | #define zmw_le16_to_cpu(v) (((v & 0xff00) >> 8) | \ |
79 | ((v & 0x00ff) << 8)) | 79 | ((v & 0x00ff) << 8)) |
80 | #else | 80 | #else |
81 | #define zmw_cpu_to_le32(v) (v) | 81 | #define zmw_cpu_to_le32(v) (v) |
82 | #define zmw_le32_to_cpu(v) (v) | 82 | #define zmw_le32_to_cpu(v) (v) |
@@ -88,33 +88,41 @@ | |||
88 | /* Called to read/write buffer */ | 88 | /* Called to read/write buffer */ |
89 | #ifndef ZM_HALPLUS_LOCK | 89 | #ifndef ZM_HALPLUS_LOCK |
90 | 90 | ||
91 | #define zmw_buf_readb(dev, buf, offset) *(u8_t*)((u8_t*)buf->data+offset) | 91 | #define zmw_buf_readb(dev, buf, offset) (*(u8_t *)((u8_t *)buf->data+offset)) |
92 | #define zmw_buf_readh(dev, buf, offset) zmw_cpu_to_le16(*(u16_t*)((u8_t*)buf->data+offset)) | 92 | #define zmw_buf_readh(dev, buf, offset) zmw_cpu_to_le16(*(u16_t *) \ |
93 | #define zmw_buf_writeb(dev, buf, offset, value) *(u8_t*)((u8_t*)buf->data+offset) = value | 93 | ((u8_t *)buf->data+offset)) |
94 | #define zmw_buf_writeh(dev, buf, offset, value) *(u16_t*)((u8_t*)buf->data+offset) = zmw_cpu_to_le16(value) | 94 | #define zmw_buf_writeb(dev, buf, offset, value) (*(u8_t *) \ |
95 | #define zmw_buf_get_buffer(dev, buf) (u8_t*)(buf->data) | 95 | ((u8_t *)buf->data+offset) = value) |
96 | #define zmw_buf_writeh(dev, buf, offset, value) (*(u16_t *) \ | ||
97 | ((u8_t *)buf->data+offset) = zmw_cpu_to_le16(value)) | ||
98 | #define zmw_buf_get_buffer(dev, buf) (u8_t *)(buf->data) | ||
96 | 99 | ||
97 | #else | 100 | #else |
98 | 101 | ||
99 | #define zmw_buf_readb(dev, buf, offset) zfwBufReadByte(dev, buf, offset) | 102 | #define zmw_buf_readb(dev, buf, offset) zfwBufReadByte(dev, buf, offset) |
100 | #define zmw_buf_readh(dev, buf, offset) zfwBufReadHalfWord(dev, buf, offset) | 103 | #define zmw_buf_readh(dev, buf, offset) zfwBufReadHalfWord(dev, buf, offset) |
101 | #define zmw_buf_writeb(dev, buf, offset, value) zfwBufWriteByte(dev, buf, offset, value) | 104 | #define zmw_buf_writeb(dev, buf, offset, value) \ |
102 | #define zmw_buf_writeh(dev, buf, offset, value) zfwBufWriteHalfWord(dev, buf, offset, value) | 105 | zfwBufWriteByte(dev, buf, offset, value) |
106 | #define zmw_buf_writeh(dev, buf, offset, value) \ | ||
107 | zfwBufWriteHalfWord(dev, buf, offset, value) | ||
103 | #define zmw_buf_get_buffer(dev, buf) zfwGetBuffer(dev, buf) | 108 | #define zmw_buf_get_buffer(dev, buf) zfwGetBuffer(dev, buf) |
104 | 109 | ||
105 | #endif | 110 | #endif |
106 | 111 | ||
107 | /***** Debug message *****/ | 112 | /***** Debug message *****/ |
108 | #if 0 | 113 | #if 0 |
109 | #define zm_debug_msg0(msg) printk("%s:%s\n", __func__, msg); | 114 | #define zm_debug_msg0(msg) printk(KERN_DEBUG "%s:%s\n", __func__, msg); |
110 | #define zm_debug_msg1(msg, val) printk("%s:%s%ld\n", __func__, \ | 115 | #define zm_debug_msg1(msg, val) printk(KERN_DEBUG "%s:%s%ld\n", __func__, \ |
111 | msg, (u32_t)val); | 116 | msg, (u32_t)val); |
112 | #define zm_debug_msg2(msg, val) printk("%s:%s%lxh\n", __func__, \ | 117 | #define zm_debug_msg2(msg, val) printk(KERN_DEBUG "%s:%s%lxh\n", __func__, \ |
113 | msg, (u32_t)val); | 118 | msg, (u32_t)val); |
114 | #define zm_debug_msg_s(msg, val) printk("%s:%s%s\n", __func__, \ | 119 | #define zm_debug_msg_s(msg, val) printk(KERN_DEBUG "%s:%s%s\n", __func__, \ |
115 | msg, val); | 120 | msg, val); |
116 | #define zm_debug_msg_p(msg, val1, val2) printk("%s:%s%01ld.%02ld\n", __func__, \ | 121 | #define zm_debug_msg_p(msg, val1, val2) do { \ |
117 | msg, (val1/val2), (((val1*100)/val2)%100)); | 122 | printk(KERN_DEBUG "%s:%s%01ld.%02ld\n", \ |
123 | __func__, \ | ||
124 | msg, (val1/val2), (((val1*100)/val2)%100)); | ||
125 | } while (0) | ||
118 | #define zm_dbg(S) printk S | 126 | #define zm_dbg(S) printk S |
119 | #else | 127 | #else |
120 | #define zm_debug_msg0(msg) | 128 | #define zm_debug_msg0(msg) |
@@ -125,10 +133,10 @@ | |||
125 | #define zm_dbg(S) | 133 | #define zm_dbg(S) |
126 | #endif | 134 | #endif |
127 | 135 | ||
128 | #define zm_assert(expr) if(!(expr)) { \ | 136 | #define zm_assert(expr) if (!(expr)) { \ |
129 | printk( "Atheors Assertion failed! %s,%s,%s,line=%d\n", \ | 137 | printk(KERN_ERR "Atheors Assertion failed! %s, %s, %s,line=%d\n",\ |
130 | #expr,__FILE__,__func__,__LINE__); \ | 138 | #expr, __FILE__, __func__, __LINE__); \ |
131 | } | 139 | } |
132 | 140 | ||
133 | #define DbgPrint printk | 141 | #define DbgPrint printk |
134 | 142 | ||
diff --git a/drivers/staging/otus/usbdrv.h b/drivers/staging/otus/usbdrv.h index 78004062caba..330d1b95cb88 100644 --- a/drivers/staging/otus/usbdrv.h +++ b/drivers/staging/otus/usbdrv.h | |||
@@ -45,7 +45,7 @@ | |||
45 | #include "oal_dt.h" | 45 | #include "oal_dt.h" |
46 | #include "oal_marc.h" | 46 | #include "oal_marc.h" |
47 | #include "80211core/pub_zfi.h" | 47 | #include "80211core/pub_zfi.h" |
48 | //#include "pub_zfw.h" | 48 | /* #include "pub_zfw.h" */ |
49 | #include "80211core/pub_usb.h" | 49 | #include "80211core/pub_usb.h" |
50 | 50 | ||
51 | #include <linux/usb.h> | 51 | #include <linux/usb.h> |
@@ -86,8 +86,7 @@ struct driver_stats { | |||
86 | #define ZM_MAX_RX_URB_NUM 16 | 86 | #define ZM_MAX_RX_URB_NUM 16 |
87 | #define ZM_MAX_TX_BUF_NUM 128 | 87 | #define ZM_MAX_TX_BUF_NUM 128 |
88 | 88 | ||
89 | typedef struct UsbTxQ | 89 | typedef struct UsbTxQ { |
90 | { | ||
91 | zbuf_t *buf; | 90 | zbuf_t *buf; |
92 | u8_t hdr[80]; | 91 | u8_t hdr[80]; |
93 | u16_t hdrlen; | 92 | u16_t hdrlen; |
@@ -100,17 +99,16 @@ typedef struct UsbTxQ | |||
100 | 99 | ||
101 | 100 | ||
102 | struct zdap_ioctl { | 101 | struct zdap_ioctl { |
103 | u16_t cmd; /* Command to run */ | 102 | u16_t cmd; /* Command to run */ |
104 | u32_t addr; /* Length of the data buffer */ | 103 | u32_t addr; /* Length of the data buffer */ |
105 | u32_t value; /* Pointer to the data buffer */ | 104 | u32_t value; /* Pointer to the data buffer */ |
106 | u8_t data[0x100]; | 105 | u8_t data[0x100]; |
107 | }; | 106 | }; |
108 | 107 | ||
109 | #define ZM_OAL_MAX_STA_SUPPORT 16 | 108 | #define ZM_OAL_MAX_STA_SUPPORT 16 |
110 | 109 | ||
111 | struct usbdrv_private | 110 | struct usbdrv_private { |
112 | { | 111 | /* linux used */ |
113 | //linux used | ||
114 | struct net_device *device; | 112 | struct net_device *device; |
115 | #if (WLAN_HOSTIF == WLAN_PCI) | 113 | #if (WLAN_HOSTIF == WLAN_PCI) |
116 | struct pci_dev *pdev; | 114 | struct pci_dev *pdev; |
@@ -121,7 +119,7 @@ struct usbdrv_private | |||
121 | #endif | 119 | #endif |
122 | struct driver_stats drv_stats; | 120 | struct driver_stats drv_stats; |
123 | char ifname[IFNAMSIZ]; | 121 | char ifname[IFNAMSIZ]; |
124 | int using_dac; | 122 | int using_dac; |
125 | u8_t rev_id; /* adapter PCI revision ID */ | 123 | u8_t rev_id; /* adapter PCI revision ID */ |
126 | rwlock_t isolate_lock; | 124 | rwlock_t isolate_lock; |
127 | spinlock_t cs_lock; | 125 | spinlock_t cs_lock; |
@@ -130,78 +128,76 @@ struct usbdrv_private | |||
130 | void *regp; | 128 | void *regp; |
131 | #endif | 129 | #endif |
132 | 130 | ||
133 | /* timer for heart beat */ | 131 | /* timer for heart beat */ |
134 | struct timer_list hbTimer10ms; | 132 | struct timer_list hbTimer10ms; |
135 | 133 | ||
136 | /* For driver core */ | 134 | /* For driver core */ |
137 | void* wd; | 135 | void *wd; |
138 | 136 | ||
139 | #if (WLAN_HOSTIF == WLAN_USB) | 137 | #if (WLAN_HOSTIF == WLAN_USB) |
140 | u8_t txUsbBuf[ZM_MAX_TX_URB_NUM][ZM_USB_TX_BUF_SIZE]; | 138 | u8_t txUsbBuf[ZM_MAX_TX_URB_NUM][ZM_USB_TX_BUF_SIZE]; |
141 | u8_t regUsbReadBuf[ZM_USB_REG_MAX_BUF_SIZE]; | 139 | u8_t regUsbReadBuf[ZM_USB_REG_MAX_BUF_SIZE]; |
142 | u8_t regUsbWriteBuf[ZM_USB_REG_MAX_BUF_SIZE]; | 140 | u8_t regUsbWriteBuf[ZM_USB_REG_MAX_BUF_SIZE]; |
143 | urb_t *WlanTxDataUrb[ZM_MAX_TX_URB_NUM]; | 141 | urb_t *WlanTxDataUrb[ZM_MAX_TX_URB_NUM]; |
144 | urb_t *WlanRxDataUrb[ZM_MAX_RX_URB_NUM]; | 142 | urb_t *WlanRxDataUrb[ZM_MAX_RX_URB_NUM]; |
145 | urb_t *RegOutUrb; | 143 | urb_t *RegOutUrb; |
146 | urb_t *RegInUrb; | 144 | urb_t *RegInUrb; |
147 | UsbTxQ_t UsbTxBufQ[ZM_MAX_TX_BUF_NUM]; | 145 | UsbTxQ_t UsbTxBufQ[ZM_MAX_TX_BUF_NUM]; |
148 | zbuf_t *UsbRxBufQ[ZM_MAX_RX_URB_NUM]; | 146 | zbuf_t *UsbRxBufQ[ZM_MAX_RX_URB_NUM]; |
149 | u16_t TxBufHead; | 147 | u16_t TxBufHead; |
150 | u16_t TxBufTail; | 148 | u16_t TxBufTail; |
151 | u16_t TxBufCnt; | 149 | u16_t TxBufCnt; |
152 | u16_t TxUrbHead; | 150 | u16_t TxUrbHead; |
153 | u16_t TxUrbTail; | 151 | u16_t TxUrbTail; |
154 | u16_t TxUrbCnt; | 152 | u16_t TxUrbCnt; |
155 | u16_t RxBufHead; | 153 | u16_t RxBufHead; |
156 | u16_t RxBufTail; | 154 | u16_t RxBufTail; |
157 | u16_t RxBufCnt; | 155 | u16_t RxBufCnt; |
158 | #endif | 156 | #endif |
159 | 157 | ||
160 | #if ZM_USB_STREAM_MODE == 1 | 158 | #if ZM_USB_STREAM_MODE == 1 |
161 | zbuf_t *reamin_buf; | 159 | zbuf_t *reamin_buf; |
162 | #endif | 160 | #endif |
163 | 161 | ||
164 | #ifdef ZM_HOSTAPD_SUPPORT | 162 | #ifdef ZM_HOSTAPD_SUPPORT |
165 | struct athr_wlan_param athr_wpa_req; | 163 | struct athr_wlan_param athr_wpa_req; |
166 | #endif | 164 | #endif |
167 | struct sock *netlink_sk; | 165 | struct sock *netlink_sk; |
168 | u8_t DeviceOpened; //CWYang(+) | 166 | u8_t DeviceOpened; /* CWYang(+) */ |
169 | u8_t supIe[50]; | 167 | u8_t supIe[50]; |
170 | u8_t supLen; | 168 | u8_t supLen; |
171 | struct ieee80211req_wpaie stawpaie[ZM_OAL_MAX_STA_SUPPORT]; | 169 | struct ieee80211req_wpaie stawpaie[ZM_OAL_MAX_STA_SUPPORT]; |
172 | u8_t forwardMgmt; | 170 | u8_t forwardMgmt; |
173 | 171 | ||
174 | struct zfCbUsbFuncTbl usbCbFunctions; | 172 | struct zfCbUsbFuncTbl usbCbFunctions; |
175 | 173 | ||
176 | /* For keventd */ | 174 | /* For keventd */ |
177 | u32_t flags; | 175 | u32_t flags; |
178 | unsigned long kevent_flags; | 176 | unsigned long kevent_flags; |
179 | u16_t kevent_ready; | 177 | u16_t kevent_ready; |
180 | 178 | ||
181 | struct semaphore ioctl_sem; | 179 | struct semaphore ioctl_sem; |
182 | struct work_struct kevent; | 180 | struct work_struct kevent; |
183 | wait_queue_head_t wait_queue_event; | 181 | wait_queue_head_t wait_queue_event; |
184 | #ifdef ZM_HALPLUS_LOCK | 182 | #ifdef ZM_HALPLUS_LOCK |
185 | unsigned long hal_irqFlag; | 183 | unsigned long hal_irqFlag; |
186 | #endif | 184 | #endif |
187 | u16_t adapterState; | 185 | u16_t adapterState; |
188 | }; | 186 | }; |
189 | 187 | ||
190 | /* WDS */ | 188 | /* WDS */ |
191 | #define ZM_WDS_PORT_NUMBER 6 | 189 | #define ZM_WDS_PORT_NUMBER 6 |
192 | 190 | ||
193 | struct zsWdsStruct | 191 | struct zsWdsStruct { |
194 | { | 192 | struct net_device *dev; |
195 | struct net_device* dev; | ||
196 | u16_t openFlag; | 193 | u16_t openFlag; |
197 | }; | 194 | }; |
198 | 195 | ||
199 | /* VAP */ | 196 | /* VAP */ |
200 | #define ZM_VAP_PORT_NUMBER 7 | 197 | #define ZM_VAP_PORT_NUMBER 7 |
201 | 198 | ||
202 | struct zsVapStruct | 199 | struct zsVapStruct { |
203 | { | 200 | struct net_device *dev; |
204 | struct net_device* dev; | ||
205 | u16_t openFlag; | 201 | u16_t openFlag; |
206 | }; | 202 | }; |
207 | 203 | ||
@@ -215,25 +211,25 @@ struct zsVapStruct | |||
215 | #define ZM_IOCTL_RXD_DUMP 0x07 | 211 | #define ZM_IOCTL_RXD_DUMP 0x07 |
216 | #define ZM_IOCTL_MEM_READ 0x0B | 212 | #define ZM_IOCTL_MEM_READ 0x0B |
217 | #define ZM_IOCTL_MEM_WRITE 0x0C | 213 | #define ZM_IOCTL_MEM_WRITE 0x0C |
218 | #define ZM_IOCTL_DMA_TEST 0x10 | 214 | #define ZM_IOCTL_DMA_TEST 0x10 |
219 | #define ZM_IOCTL_REG_TEST 0x11 | 215 | #define ZM_IOCTL_REG_TEST 0x11 |
220 | #define ZM_IOCTL_TEST 0x80 | 216 | #define ZM_IOCTL_TEST 0x80 |
221 | #define ZM_IOCTL_TALLY 0x81 //CWYang(+) | 217 | #define ZM_IOCTL_TALLY 0x81 /* CWYang(+) */ |
222 | #define ZM_IOCTL_RTS 0xA0 | 218 | #define ZM_IOCTL_RTS 0xA0 |
223 | #define ZM_IOCTL_MIX_MODE 0xA1 | 219 | #define ZM_IOCTL_MIX_MODE 0xA1 |
224 | #define ZM_IOCTL_FRAG 0xA2 | 220 | #define ZM_IOCTL_FRAG 0xA2 |
225 | #define ZM_IOCTL_SCAN 0xA3 | 221 | #define ZM_IOCTL_SCAN 0xA3 |
226 | #define ZM_IOCTL_KEY 0xA4 | 222 | #define ZM_IOCTL_KEY 0xA4 |
227 | #define ZM_IOCTL_RATE 0xA5 | 223 | #define ZM_IOCTL_RATE 0xA5 |
228 | #define ZM_IOCTL_ENCRYPTION_MODE 0xA6 | 224 | #define ZM_IOCTL_ENCRYPTION_MODE 0xA6 |
229 | #define ZM_IOCTL_GET_TXCNT 0xA7 | 225 | #define ZM_IOCTL_GET_TXCNT 0xA7 |
230 | #define ZM_IOCTL_GET_DEAGG_CNT 0xA8 | 226 | #define ZM_IOCTL_GET_DEAGG_CNT 0xA8 |
231 | #define ZM_IOCTL_DURATION_MODE 0xA9 | 227 | #define ZM_IOCTL_DURATION_MODE 0xA9 |
232 | #define ZM_IOCTL_SET_AES_KEY 0xAA | 228 | #define ZM_IOCTL_SET_AES_KEY 0xAA |
233 | #define ZM_IOCTL_SET_AES_MODE 0xAB | 229 | #define ZM_IOCTL_SET_AES_MODE 0xAB |
234 | #define ZM_IOCTL_SIGNAL_STRENGTH 0xAC //CWYang(+) | 230 | #define ZM_IOCTL_SIGNAL_STRENGTH 0xAC /* CWYang(+) */ |
235 | #define ZM_IOCTL_SIGNAL_QUALITY 0xAD //CWYang(+) | 231 | #define ZM_IOCTL_SIGNAL_QUALITY 0xAD /* CWYang(+) */ |
236 | #define ZM_IOCTL_SET_PIBSS_MODE 0xAE | 232 | #define ZM_IOCTL_SET_PIBSS_MODE 0xAE |
237 | 233 | ||
238 | #define ZDAPIOCTL SIOCDEVPRIVATE | 234 | #define ZDAPIOCTL SIOCDEVPRIVATE |
239 | 235 | ||
diff --git a/drivers/staging/otus/zdusb.h b/drivers/staging/otus/zdusb.h index 9f8ab2e96169..97e4ef09567a 100644 --- a/drivers/staging/otus/zdusb.h +++ b/drivers/staging/otus/zdusb.h | |||
@@ -34,10 +34,10 @@ | |||
34 | #define VERSIONID "0.0.0.999" | 34 | #define VERSIONID "0.0.0.999" |
35 | 35 | ||
36 | /* Define these values to match your device */ | 36 | /* Define these values to match your device */ |
37 | #define VENDOR_ATHR 0x0CF3 //Atheros | 37 | #define VENDOR_ATHR 0x0CF3 /* Atheros */ |
38 | #define PRODUCT_AR9170 0x9170 | 38 | #define PRODUCT_AR9170 0x9170 |
39 | 39 | ||
40 | #define VENDOR_DLINK 0x07D1 //Dlink | 40 | #define VENDOR_DLINK 0x07D1 /* Dlink */ |
41 | #define PRODUCT_DWA160A 0x3C10 | 41 | #define PRODUCT_DWA160A 0x3C10 |
42 | 42 | ||
43 | #define VENDOR_NETGEAR 0x0846 /* NetGear */ | 43 | #define VENDOR_NETGEAR 0x0846 /* NetGear */ |