All of lore.kernel.org
 help / color / mirror / Atom feed
From: Charles Manning <cdhmanning@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: Preventing connection from initiating a pairing
Date: Thu, 19 Dec 2019 17:25:57 +1300	[thread overview]
Message-ID: <CAE21AQps-et6iCNh=BH0YXAD8CM=it-Ncw6kbKTEyVpDe1poOg@mail.gmail.com> (raw)

Hi All

I've been getting my head around using BlueZ and libbluetooth and have
achieved all the behaviour I want except one bit.

I have an embedded Linux device that is connecting to a PC using Bluez

They have been paired. Whenever the Linux device turns on, it
automatically connects to the PC. All fine so far.

If the PC then unpairs while the linux device is off, the PC loses
it's pairing info but the Linux device retains its now stale pairing
info.

The Linux device things it is still paired and attempts to connect,
causing  the PC to pop up a pairing request. I do not want that
behaviour. I want the Linux device to not try connecting if the PC has
lost its pairing info.

What I want is either some way to confirm there is a valid pairing
still in place before connecting or some way of setting the Linux
device to only connect if the pairing is still valid, or some other
mechanism by which I can prevent the pairing attempt.

Is there some way to do that?

Thanks for your help.

Thanks

Charles

                 reply	other threads:[~2019-12-19  4:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAE21AQps-et6iCNh=BH0YXAD8CM=it-Ncw6kbKTEyVpDe1poOg@mail.gmail.com' \
    --to=cdhmanning@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.