Linux bluetooth development
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: RE: [Bluez-devel] rejecting or accepting connection request
Date: Thu, 07 Apr 2005 18:41:58 +0200	[thread overview]
Message-ID: <1112892118.9047.94.camel@pegasus> (raw)
In-Reply-To: <11D888B5FA88D9409851B71E8D3206D1016632@doar.commil.com>

Hi Tzahi,
 
> +	if ( IsUserAppPolicy==1 )
> +	{
> +		BT_DBG("%s Connection request: %s letting the app decide
> if to accept or reject", hdev->name);
> +		return;
> +	}
> +		

I don't think that I will add this part of your patch, because I have
plans for a policy manager.
 	
>  	conn = conn_hash_lookup_ba(hdev, cc->link_type, &cc->bdaddr);
> -	if (!conn) {
> -		hci_dev_unlock(hdev);
> -		return;
> +	if (!conn) 
> +	{
> +		if (!(conn = hci_conn_add(hdev, cc->link_type,
> &cc->bdaddr))) 
> +		{
> +			BT_ERR("No memmory for new connection");
> +			hci_dev_unlock(hdev);
> +			return;
> +		}

This part is not so unhandy to have it anyway, but you forgot to think
about what this change means if the ev->status is not zero.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2005-04-07 16:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-07 16:56 [Bluez-devel] rejecting or accepting connection request Tzahi Efrati
2005-04-07 16:41 ` Marcel Holtmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-04-07 16:29 Tzahi Efrati
2005-04-07 15:48 ` Marcel Holtmann
2005-04-06 18:00 Tzahi Efrati
2005-04-07 10:32 ` Marcel Holtmann
2005-04-05 17:35 Tzahi Efrati
2005-04-05 16:49 ` 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=1112892118.9047.94.camel@pegasus \
    --to=marcel@holtmann.org \
    --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