public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Olivier Dole <olivier.dole@palmsource.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: [Bluez-devel] PAN profile BUG?
Date: Mon, 11 Dec 2006 15:58:22 +0100	[thread overview]
Message-ID: <1165849102.5344.71.camel@ODole-Ubuntu> (raw)

Hello,

I work on PAN profile and there is maybe a bug if we refer to the specs
(PAN profile v1.0).
I've run a PANU server with pand daemon on my Linux machine and I was
able to connect 2 different devices to this server. And according to the
specification (page 15):
        2.1.3 PANU-PANU
        In this scenario, a point to point connection between two PANUs
        allows direct communication between these two nodes only.

So the second connection should fail, isn't it ? I suppose (not test it)
that the same behavior occurs with GN or NAP role. I mean that you can
connect more than 7 peers to the server.

I have a look at pand source code and see that the changes require to
fix this behavior is not completly trivial. A solution may be to use 2
global variable: "max_connection" (which may be set to 1 or 7 if PANU or
GN/NAP role is run) and "connected" to know the number of currently
connected device to the server. Unfortunately fork() call prevent us
from correctly keeping up to date the second variable. So I would have
to replace fork() call by pthread_create() call to try to keep my 2nd
variable up to date. And this lead to many changes in do_listen()
function.
So regarding that, I have two questions:
- Can someone with more Bluetooth knowledge than me confirm that is a
bug ?
- Has anyone a better/simpler solution than me to fix this if that's
really a bug. I can do the fix but I'd like to choose the best solution
for everyone.

Regards,

Olivier DOLE


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

             reply	other threads:[~2006-12-11 14:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-11 14:58 Olivier Dole [this message]
2006-12-11 15:03 ` [Bluez-devel] PAN profile BUG? Marcel Holtmann
2006-12-11 15:09   ` Olivier Dole
2006-12-11 20:51     ` Marcel Holtmann
2006-12-12  9:00       ` Olivier Dole
2006-12-12 10:05         ` Olivier Dole
2006-12-11 16:45 ` [Bluez-devel] Connection timeout Nelson Murilo
2006-12-11 20:46   ` Marcel Holtmann

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=1165849102.5344.71.camel@ODole-Ubuntu \
    --to=olivier.dole@palmsource.com \
    --cc=bluez-devel@lists.sourceforge.net \
    /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