From: Luciano Coelho <luciano.coelho@nokia.com>
To: ext Johannes Berg <johannes@sipsolutions.net>
Cc: "linville@tuxdriver.com" <linville@tuxdriver.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"Oikarinen Juuso (Nokia-D/Tampere)" <juuso.oikarinen@nokia.com>
Subject: Re: [PATCH 15/20] wl1271: Multicast filtering configuration
Date: Thu, 08 Oct 2009 23:15:51 +0300 [thread overview]
Message-ID: <4ACE4877.50308@nokia.com> (raw)
In-Reply-To: <1255032103.3713.33.camel@johannes.local>
Hi Johannes,
ext Johannes Berg wrote:
> On Thu, 2009-10-08 at 21:56 +0300, Luciano Coelho wrote:
>
>> + /* first, get the filter parameters */
>> + spin_lock_irqsave(&wl->wl_lock, flags);
>> + fp = wl->filter_params;
>> + wl->filter_params = NULL;
>> + spin_unlock_irqrestore(&wl->wl_lock, flags);
>> +
>> + if (!fp)
>> + return;
>
>> + kfree(fp);
>
>> +static u64 wl1271_op_prepare_multicast(struct ieee80211_hw *hw, int mc_count,
>> + struct dev_addr_list *mc_list)
>> +{
>> + struct wl1271 *wl = hw->priv;
>> + struct wl1271_filter_params *fp;
>> + unsigned long flags;
>> + int i;
>> +
>> + /*
>> + * FIXME: we should return a hash that will be passed to
>> + * configure_filter() instead of saving everything in the context.
>> + */
>> +
>> + fp = kzalloc(sizeof(*fp), GFP_KERNEL);
>> + if (!fp) {
>> + wl1271_error("Out of memory setting filters.");
>> + return 0;
>> + }
>
> It's a u64 on purpose, you can return the parameters struct to pass it
> through to configure_filter.
Yes, you're right. It's just that I have forwarded-ported loads of patches at
once, so I just made a quick hack to get this to compile and work before the
real thing is done. Juuso Oikarinen (who is also working on the wl1271) has
already implemented the final solution for this and his patch will be included
in one of my next batches ;)
Thanks a lot for your timely comment (as usual).
--
Cheers,
Luca.
next prev parent reply other threads:[~2009-10-08 20:17 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-08 18:56 [PATCH 00/20] First batch of new patches for wl1271 Luciano Coelho
2009-10-08 18:56 ` [PATCH 01/20] wl1271: remove unecessary qual parameter from rx status Luciano Coelho
2009-10-08 18:56 ` [PATCH 02/20] wl1271: Correction to TX block allocation calculation Luciano Coelho
2009-10-08 18:56 ` [PATCH 03/20] wl1271: Security sequence number handling for TX (for WPA) Luciano Coelho
2009-10-08 18:56 ` [PATCH 04/20] wl1271: Correct TKIP header space handling in TX path Luciano Coelho
2009-10-08 18:56 ` [PATCH 05/20] wl1271: Implement delayed entry into ELP Luciano Coelho
2009-10-08 18:56 ` [PATCH 06/20] wl1271: mask aid bits 14 and 15 in ps-poll template Luciano Coelho
2009-10-08 18:56 ` [PATCH 07/20] wl1271: Implementation for SPI busy word checking Luciano Coelho
2009-10-08 18:56 ` [PATCH 08/20] wl1271: Configure rate policies based on AP rates Luciano Coelho
2009-10-08 18:56 ` [PATCH 09/20] wl1271: Update join usage Luciano Coelho
2009-10-08 18:56 ` [PATCH 10/20] wl1271: Corrections to TX path Luciano Coelho
2009-10-08 18:56 ` [PATCH 11/20] wl1271: added Juuso Oikarinen as module author Luciano Coelho
2009-10-08 18:56 ` [PATCH 12/20] wl1271: hack to disable filters Luciano Coelho
2009-10-08 18:56 ` [PATCH 13/20] wl1271: use workqueue provided by mac80211 instead of the default Luciano Coelho
2009-10-08 18:56 ` [PATCH 14/20] wl1271: Clear probe-request template after scan Luciano Coelho
2009-10-08 18:56 ` [PATCH 15/20] wl1271: Multicast filtering configuration Luciano Coelho
2009-10-08 20:01 ` Johannes Berg
2009-10-08 20:15 ` Luciano Coelho [this message]
2009-10-08 18:56 ` [PATCH 16/20] wl1271: Use vmalloc to allocate memory for firmware Luciano Coelho
2009-10-08 18:56 ` [PATCH 17/20] wl1271: Add connection monitoring configuration Luciano Coelho
2009-10-08 18:56 ` [PATCH 18/20] wl1271: Enable beacon filtering with the stack Luciano Coelho
2009-10-08 18:56 ` [PATCH 19/20] wl1271: Configure beacon filtering on if PSM used Luciano Coelho
2009-10-08 18:56 ` [PATCH 20/20] wl1271: Mask unneeded events from firmware to conserve power Luciano Coelho
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ACE4877.50308@nokia.com \
--to=luciano.coelho@nokia.com \
--cc=johannes@sipsolutions.net \
--cc=juuso.oikarinen@nokia.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).