From: Kalle Valo <kvalo@codeaurora.org>
To: Iain Hunter <drhunter95@gmail.com>
Cc: linux-wireless@vger.kernel.org, Iain Hunter <i-hunter1@ti.com>
Subject: Re: [PATCH] wlcore: disable multicast filter in AP mode
Date: Tue, 31 Jan 2017 09:22:58 +0200 [thread overview]
Message-ID: <87r33jg0bx.fsf@purkki.adurom.net> (raw)
In-Reply-To: <20170130144936.6699-1-i-hunter1@ti.com> (Iain Hunter's message of "Mon, 30 Jan 2017 14:49:36 +0000")
Iain Hunter <drhunter95@gmail.com> writes:
> Enable AP support allmulticast for MDNS. It can be enabled by bringing up
>
> the interface with ip command with the argument allmulticast on
>
> Signed-off-by: Iain Hunter <i-hunter1@ti.com>
The commit log looks now ok, except there's an unnecessare empty line.
But I can fix that.
> @@ -3281,6 +3281,20 @@ static void wl1271_op_configure_filter(struct ieee80211_hw *hw,
> if (ret < 0)
> goto out_sleep;
> }
> +
> + /*
> + * If interface in AP mode and created with allmulticast then disable
> + * the firmware filters so that all multicast packets are passed
> + * This is mandatory for MDNS based discovery protocols
> + */
> + if (wlvif->bss_type == BSS_TYPE_AP_BSS) {
> + if (*total & FIF_ALLMULTI)
> + ret = wl1271_acx_group_address_tbl(wl, wlvif,
> + false,
> + NULL, 0);
> +
> + }
> +
> }
Sorry, I missed this earlier but here you don't check ret value at all.
I think you should bail out from the look if an error happens, like
other commands in the same loop does.
--
Kalle Valo
next prev parent reply other threads:[~2017-01-31 7:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-30 14:49 [PATCH] wlcore: disable multicast filter in AP mode Iain Hunter
2017-01-31 7:22 ` Kalle Valo [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-01-31 10:48 Iain Hunter
2017-01-31 11:26 Iain Hunter
2017-01-31 11:31 Iain Hunter
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=87r33jg0bx.fsf@purkki.adurom.net \
--to=kvalo@codeaurora.org \
--cc=drhunter95@gmail.com \
--cc=i-hunter1@ti.com \
--cc=linux-wireless@vger.kernel.org \
/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