From: Marcel Holtmann <marcel@holtmann.org>
To: "Dalleau, Frederic" <frederic.dalleau@intel.com>
Cc: "Frédéric Dalleau" <frederic.dalleau@linux.intel.com>,
linux-bluetooth@vger.kernel.org
Subject: Re: [RFC] network: Reply to extensions at connection setup
Date: Wed, 30 May 2012 13:35:01 +0200 [thread overview]
Message-ID: <1338377701.1817.2.camel@aeonflux> (raw)
In-Reply-To: <CA+QXtDuBEP3sT9oNAwhDPOoD1RjEtLQw-8tFM-5rrMSjP15_6Q@mail.gmail.com>
Hi Frederic,
> > TP/BNEP/CTRL/BV-19-C is about extension in the
> BNEP_SETUP_CONN_REQ
> > control message. BNEP_SETUP_CONN_REQ is handled by
> bluetoothd before
> > giving control to kernel. Current bluez do not reply at all
> if an
> > extension is added to BNEP_SETUP_CONN_REQ. This patch fixes
> it by
> > sending COMMAND_NOT_UNDERSTOOD reply.
>
>
>
> is this really a good idea to just decline all extensions
> here?
>
> What happens to the filter setup done via these commands.
> Don't we need
> to process them inside the kernel to actually setup the
> filters.
>
> I have chosen to decline the extension because they are marked as not
> supported in all qualification listings that I have seen.
may that is the reason for it. Nevertheless no reason for us not to
support it.
> Processing extensions in the kernel is of course better, but both
> kernel and
> userspace needs changing, which is usually a much longer process. If
> preferred,
> I can do so.
I am fine with doing this as a first step. Since essentially if we run
on an older kernel, we need to do that anyway. We need to fallback
gracefully.
However I do like to see a plan for adding a new ioctl() to BNEP support
that allows us to include leftover unprocessed extensions.
Please consider Luiz comments since the patch is not really clean. We
need to make this more readable. Especially when it gets more complex
and becomes a fallback case.
Regards
Marcel
prev parent reply other threads:[~2012-05-30 11:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-29 10:19 [RFC] BNEP Reply to extensions at connection setup Frédéric Dalleau
2012-05-29 10:19 ` [RFC] network: " Frédéric Dalleau
2012-05-29 14:05 ` Luiz Augusto von Dentz
2012-05-29 14:36 ` Marcel Holtmann
2012-05-30 10:22 ` Dalleau, Frederic
2012-05-30 11:35 ` Marcel Holtmann [this message]
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=1338377701.1817.2.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=frederic.dalleau@intel.com \
--cc=frederic.dalleau@linux.intel.com \
--cc=linux-bluetooth@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