aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/staging/winbond/linux/wbusb.c35
-rw-r--r--drivers/staging/winbond/mds.c2
-rw-r--r--drivers/staging/winbond/sme_api.c1
3 files changed, 25 insertions, 13 deletions
diff --git a/drivers/staging/winbond/linux/wbusb.c b/drivers/staging/winbond/linux/wbusb.c
index fb216de1c6ba..f4a7875f2389 100644
--- a/drivers/staging/winbond/linux/wbusb.c
+++ b/drivers/staging/winbond/linux/wbusb.c
@@ -19,16 +19,16 @@ static struct usb_device_id wb35_table[] __devinitdata = {
19 {USB_DEVICE(0x18E8, 0x6230)}, 19 {USB_DEVICE(0x18E8, 0x6230)},
20 {USB_DEVICE(0x18E8, 0x6233)}, 20 {USB_DEVICE(0x18E8, 0x6233)},
21 {USB_DEVICE(0x1131, 0x2035)}, 21 {USB_DEVICE(0x1131, 0x2035)},
22 {} 22 { 0, }
23}; 23};
24 24
25MODULE_DEVICE_TABLE(usb, wb35_table); 25MODULE_DEVICE_TABLE(usb, wb35_table);
26 26
27static const struct ieee80211_rate wbsoft_rates[] = { 27static struct ieee80211_rate wbsoft_rates[] = {
28 { .bitrate = 10, .flags = IEEE80211_RATE_SHORT_PREAMBLE }, 28 { .bitrate = 10, .flags = IEEE80211_RATE_SHORT_PREAMBLE },
29}; 29};
30 30
31static const struct ieee80211_channel wbsoft_channels[] = { 31static struct ieee80211_channel wbsoft_channels[] = {
32 { .center_freq = 2412}, 32 { .center_freq = 2412},
33}; 33};
34 34
@@ -49,9 +49,22 @@ static void wbsoft_remove_interface(struct ieee80211_hw *dev,
49 printk("wbsoft_remove interface called\n"); 49 printk("wbsoft_remove interface called\n");
50} 50}
51 51
52static int wbsoft_nop(void) 52static void wbsoft_stop(struct ieee80211_hw *hw)
53{ 53{
54 printk("wbsoft_nop called\n"); 54 printk(KERN_INFO "%s called\n", __func__);
55}
56
57static int wbsoft_get_stats(struct ieee80211_hw *hw,
58 struct ieee80211_low_level_stats *stats)
59{
60 printk(KERN_INFO "%s called\n", __func__);
61 return 0;
62}
63
64static int wbsoft_get_tx_stats(struct ieee80211_hw *hw,
65 struct ieee80211_tx_queue_stats *stats)
66{
67 printk(KERN_INFO "%s called\n", __func__);
55 return 0; 68 return 0;
56} 69}
57 70
@@ -92,8 +105,7 @@ static void wbsoft_configure_filter(struct ieee80211_hw *dev,
92 *total_flags = new_flags; 105 *total_flags = new_flags;
93} 106}
94 107
95static int wbsoft_tx(struct ieee80211_hw *dev, struct sk_buff *skb, 108static int wbsoft_tx(struct ieee80211_hw *dev, struct sk_buff *skb)
96 struct ieee80211_tx_control *control)
97{ 109{
98 char *buffer = kmalloc(skb->len, GFP_ATOMIC); 110 char *buffer = kmalloc(skb->len, GFP_ATOMIC);
99 printk("Sending frame %d bytes\n", skb->len); 111 printk("Sending frame %d bytes\n", skb->len);
@@ -158,14 +170,14 @@ static u64 wbsoft_get_tsf(struct ieee80211_hw *dev)
158static const struct ieee80211_ops wbsoft_ops = { 170static const struct ieee80211_ops wbsoft_ops = {
159 .tx = wbsoft_tx, 171 .tx = wbsoft_tx,
160 .start = wbsoft_start, /* Start can be pretty much empty as we do WbWLanInitialize() during probe? */ 172 .start = wbsoft_start, /* Start can be pretty much empty as we do WbWLanInitialize() during probe? */
161 .stop = wbsoft_nop, 173 .stop = wbsoft_stop,
162 .add_interface = wbsoft_add_interface, 174 .add_interface = wbsoft_add_interface,
163 .remove_interface = wbsoft_remove_interface, 175 .remove_interface = wbsoft_remove_interface,
164 .config = wbsoft_config, 176 .config = wbsoft_config,
165 .config_interface = wbsoft_config_interface, 177 .config_interface = wbsoft_config_interface,
166 .configure_filter = wbsoft_configure_filter, 178 .configure_filter = wbsoft_configure_filter,
167 .get_stats = wbsoft_nop, 179 .get_stats = wbsoft_get_stats,
168 .get_tx_stats = wbsoft_nop, 180 .get_tx_stats = wbsoft_get_tx_stats,
169 .get_tsf = wbsoft_get_tsf, 181 .get_tsf = wbsoft_get_tsf,
170// conf_tx: hal_set_cwmin()/hal_set_cwmax; 182// conf_tx: hal_set_cwmin()/hal_set_cwmax;
171}; 183};
@@ -224,6 +236,7 @@ int wb35_probe(struct usb_interface *intf, const struct usb_device_id *id_table)
224 { 236 {
225 struct wbsoft_priv *priv; 237 struct wbsoft_priv *priv;
226 struct ieee80211_hw *dev; 238 struct ieee80211_hw *dev;
239 static struct ieee80211_supported_band band;
227 int res; 240 int res;
228 241
229 dev = ieee80211_alloc_hw(sizeof(*priv), &wbsoft_ops); 242 dev = ieee80211_alloc_hw(sizeof(*priv), &wbsoft_ops);
@@ -252,8 +265,6 @@ int wb35_probe(struct usb_interface *intf, const struct usb_device_id *id_table)
252 265
253 dev->queues = 1; 266 dev->queues = 1;
254 267
255 static struct ieee80211_supported_band band;
256
257 band.channels = wbsoft_channels; 268 band.channels = wbsoft_channels;
258 band.n_channels = ARRAY_SIZE(wbsoft_channels); 269 band.n_channels = ARRAY_SIZE(wbsoft_channels);
259 band.bitrates = wbsoft_rates; 270 band.bitrates = wbsoft_rates;
diff --git a/drivers/staging/winbond/mds.c b/drivers/staging/winbond/mds.c
index 400397c79b72..f1de813f9c76 100644
--- a/drivers/staging/winbond/mds.c
+++ b/drivers/staging/winbond/mds.c
@@ -437,7 +437,7 @@ Mds_DurationSet( PADAPTER Adapter, PDESCRIPTOR pDes, u8 *buffer )
437 u8 Rate, i; 437 u8 Rate, i;
438 unsigned char CTS_on = FALSE, RTS_on = FALSE; 438 unsigned char CTS_on = FALSE, RTS_on = FALSE;
439 PT00_DESCRIPTOR pNextT00; 439 PT00_DESCRIPTOR pNextT00;
440 u16 BodyLen; 440 u16 BodyLen = 0;
441 unsigned char boGroupAddr = FALSE; 441 unsigned char boGroupAddr = FALSE;
442 442
443 443
diff --git a/drivers/staging/winbond/sme_api.c b/drivers/staging/winbond/sme_api.c
index 40e93b7600eb..31c9673ea865 100644
--- a/drivers/staging/winbond/sme_api.c
+++ b/drivers/staging/winbond/sme_api.c
@@ -10,4 +10,5 @@
10s8 sme_get_rssi(void *pcore_data, s32 *prssi) 10s8 sme_get_rssi(void *pcore_data, s32 *prssi)
11{ 11{
12 BUG(); 12 BUG();
13 return 0;
13} 14}