* [PATCH 2/2] w35und: Fix ->configure_filter breakage
@ 2009-09-21 9:52 Pekka Enberg
2009-09-21 14:43 ` Pavel Machek
0 siblings, 1 reply; 2+ messages in thread
From: Pekka Enberg @ 2009-09-21 9:52 UTC (permalink / raw)
To: linux-kernel; +Cc: greg, jbenc, jkosina, johannes, pavel, sandro.bonazzola
From: Pekka Enberg <penberg@cs.helsinki.fi>
Commit 3ac64beecd27400d12cc7afb4108eef26c499f6a ("mac80211: allow
configure_filter callback to sleep") ->configure_filter function
signature. Fix driver breakage by introducing a ->prepare_multicast
operation that returns "mc_count". I'm not sure if the "mc_count > 32"
check is actually needed but lets keep the driver functionally
equivalent for now.
Cc: Greg KH <greg@kroah.com>
Cc: Jiri Benc <jbenc@suse.cz>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Sandro Bonazzola <sandro.bonazzola@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
---
drivers/staging/winbond/wbusb.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/winbond/wbusb.c b/drivers/staging/winbond/wbusb.c
index ee6425e..4bf1057 100644
--- a/drivers/staging/winbond/wbusb.c
+++ b/drivers/staging/winbond/wbusb.c
@@ -99,10 +99,16 @@ static int wbsoft_get_tx_stats(struct ieee80211_hw *hw,
return 0;
}
+static u64 wbsoft_prepare_multicast(struct ieee80211_hw *hw, int mc_count,
+ struct dev_addr_list *mclist)
+{
+ return mc_count;
+}
+
static void wbsoft_configure_filter(struct ieee80211_hw *dev,
unsigned int changed_flags,
unsigned int *total_flags,
- int mc_count, struct dev_mc_list *mclist)
+ u64 multicast)
{
unsigned int new_flags;
@@ -110,7 +116,7 @@ static void wbsoft_configure_filter(struct ieee80211_hw *dev,
if (*total_flags & FIF_PROMISC_IN_BSS)
new_flags |= FIF_PROMISC_IN_BSS;
- else if ((*total_flags & FIF_ALLMULTI) || (mc_count > 32))
+ else if ((*total_flags & FIF_ALLMULTI) || (multicast > 32))
new_flags |= FIF_ALLMULTI;
dev->flags &= ~IEEE80211_HW_RX_INCLUDES_FCS;
@@ -278,6 +284,7 @@ static const struct ieee80211_ops wbsoft_ops = {
.add_interface = wbsoft_add_interface,
.remove_interface = wbsoft_remove_interface,
.config = wbsoft_config,
+ .prepare_multicast = wbsoft_prepare_multicast,
.configure_filter = wbsoft_configure_filter,
.get_stats = wbsoft_get_stats,
.get_tx_stats = wbsoft_get_tx_stats,
--
1.5.6.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] w35und: Fix ->configure_filter breakage
2009-09-21 9:52 [PATCH 2/2] w35und: Fix ->configure_filter breakage Pekka Enberg
@ 2009-09-21 14:43 ` Pavel Machek
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2009-09-21 14:43 UTC (permalink / raw)
To: Pekka Enberg
Cc: linux-kernel, greg, jbenc, jkosina, johannes, sandro.bonazzola
Hi!
> Commit 3ac64beecd27400d12cc7afb4108eef26c499f6a ("mac80211: allow
> configure_filter callback to sleep") ->configure_filter function
> signature. Fix driver breakage by introducing a ->prepare_multicast
> operation that returns "mc_count". I'm not sure if the "mc_count > 32"
> check is actually needed but lets keep the driver functionally
> equivalent for now.
>
> Cc: Greg KH <greg@kroah.com>
> Cc: Jiri Benc <jbenc@suse.cz>
> Cc: Jiri Kosina <jkosina@suse.cz>
> Cc: Johannes Berg <johannes@sipsolutions.net>
> Cc: Pavel Machek <pavel@ucw.cz>
Ack.. And thanks!
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-21 14:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-21 9:52 [PATCH 2/2] w35und: Fix ->configure_filter breakage Pekka Enberg
2009-09-21 14:43 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome