diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-04 11:44:13 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-04 11:44:13 -0500 |
commit | a71b676fa9b92119c0fb4e3fab34e45a17f15107 (patch) | |
tree | db218b1e1e7245aa4121641cddc27d1a5eed2f77 /drivers | |
parent | f341dddf1dadf64be309791f83d7904245f1261d (diff) |
Staging: winbond: fix up wireless api errors
The wireless core made a number of api changes that caused
the winbond driver to break. This patch fixes those errors by
making the needed changes to the driver.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/winbond/wbusb.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/staging/winbond/wbusb.c b/drivers/staging/winbond/wbusb.c index ecf418dcefd9..3482eec18651 100644 --- a/drivers/staging/winbond/wbusb.c +++ b/drivers/staging/winbond/wbusb.c | |||
@@ -65,17 +65,17 @@ static void hal_set_beacon_period(struct hw_data *pHwData, u16 beacon_period) | |||
65 | } | 65 | } |
66 | 66 | ||
67 | static int wbsoft_add_interface(struct ieee80211_hw *dev, | 67 | static int wbsoft_add_interface(struct ieee80211_hw *dev, |
68 | struct ieee80211_if_init_conf *conf) | 68 | struct ieee80211_vif *vif) |
69 | { | 69 | { |
70 | struct wbsoft_priv *priv = dev->priv; | 70 | struct wbsoft_priv *priv = dev->priv; |
71 | 71 | ||
72 | hal_set_beacon_period(&priv->sHwData, conf->vif->bss_conf.beacon_int); | 72 | hal_set_beacon_period(&priv->sHwData, vif->bss_conf.beacon_int); |
73 | 73 | ||
74 | return 0; | 74 | return 0; |
75 | } | 75 | } |
76 | 76 | ||
77 | static void wbsoft_remove_interface(struct ieee80211_hw *dev, | 77 | static void wbsoft_remove_interface(struct ieee80211_hw *dev, |
78 | struct ieee80211_if_init_conf *conf) | 78 | struct ieee80211_vif *vif) |
79 | { | 79 | { |
80 | printk("wbsoft_remove interface called\n"); | 80 | printk("wbsoft_remove interface called\n"); |
81 | } | 81 | } |
@@ -92,13 +92,6 @@ static int wbsoft_get_stats(struct ieee80211_hw *hw, | |||
92 | return 0; | 92 | return 0; |
93 | } | 93 | } |
94 | 94 | ||
95 | static int wbsoft_get_tx_stats(struct ieee80211_hw *hw, | ||
96 | struct ieee80211_tx_queue_stats *stats) | ||
97 | { | ||
98 | printk(KERN_INFO "%s called\n", __func__); | ||
99 | return 0; | ||
100 | } | ||
101 | |||
102 | static u64 wbsoft_prepare_multicast(struct ieee80211_hw *hw, int mc_count, | 95 | static u64 wbsoft_prepare_multicast(struct ieee80211_hw *hw, int mc_count, |
103 | struct dev_addr_list *mc_list) | 96 | struct dev_addr_list *mc_list) |
104 | { | 97 | { |
@@ -287,7 +280,6 @@ static const struct ieee80211_ops wbsoft_ops = { | |||
287 | .prepare_multicast = wbsoft_prepare_multicast, | 280 | .prepare_multicast = wbsoft_prepare_multicast, |
288 | .configure_filter = wbsoft_configure_filter, | 281 | .configure_filter = wbsoft_configure_filter, |
289 | .get_stats = wbsoft_get_stats, | 282 | .get_stats = wbsoft_get_stats, |
290 | .get_tx_stats = wbsoft_get_tx_stats, | ||
291 | .get_tsf = wbsoft_get_tsf, | 283 | .get_tsf = wbsoft_get_tsf, |
292 | }; | 284 | }; |
293 | 285 | ||