Excellent question. This gets to the heart of how Bluetooth LE Privacy works and the distinction between local and remote device settings.
The short and direct answer is:
Yes, absolutely. The LE speaker can (and likely will) still use a Resolvable Private Address (RPA) even if your computer's BlueZ is set to privacy = off.
Here’s the detailed breakdown of why:
1. Your Setting vs. The Speaker's Setting
The privacy option in your BlueZ main.conf file controls the behavior of your computer's Bluetooth adapter only. It dictates how your machine presents itself to the Bluetooth world. The speaker is a completely separate device with its own Bluetooth stack, firmware, and configuration.
-
Your Computer (privacy = off): This tells your BlueZ stack not to generate and use its own RPAs. When scanning or initiating a connection, your computer will likely use its permanent public address or a static random address. It's essentially saying, "I am not concerned about hiding my own identity."
-
The LE Speaker (The Peripheral): The speaker's manufacturer decides whether to implement BLE Privacy. Most modern LE devices do. The speaker's firmware will make its own independent decision to use an RPA in its advertising packets to prevent tracking. This decision is completely unaffected by your computer's settings.
2. The Key Is the IRK (Identity Resolving Key)
So, if the speaker is advertising with a constantly changing RPA, how does your computer know it's the same speaker you want to connect to?
This is where the Identity Resolving Key (IRK) comes into play.
-
Pairing/Bonding: When you first pair your computer with the speaker, they exchange security keys. One of the most important keys for privacy is the IRK. Each device stores the other's IRK.
-
Address Resolution: Even with privacy = off, your computer's Bluetooth controller receives and stores the speaker's IRK. When your computer is scanning, it sees an advertisement from a device with an RPA. It will then use the list of stored IRKs from all its bonded devices to try and "resolve" that address.
-
Successful Match: If the RPA can be mathematically resolved using the speaker's stored IRK, your computer knows the identity of the advertising device. It recognizes it as "My LE Speaker," even though the address in the advertising packet is temporary and random-looking.
An Analogy
Think of it like caller ID and hiding your phone number.
- Your
privacy = off setting is like you choosing not to hide your own number when you make a call.
- The speaker using RPA is like your friend choosing to hide their number when they call you.
- The stored IRK is like having your friend's "real" number saved in your phone's contacts.
When your friend calls you with a "Private Number" (RPA), your phone can still check its contacts (the IRK list) and display "Call from John Smith" (resolving the identity). Your choice not to hide your own number has no impact on your ability to identify your friend if you have their information saved.
Summary
| Feature | Your Computer (privacy = off) | LE Speaker (Privacy Enabled) | How it Works |
|---|
| Address Generation | Uses its public or static address. Does not generate its own RPA. | Generates and rotates a new RPA for advertising periodically. | The devices are independent. |
| Address Recognition | Sees an incoming RPA from the speaker. | N/A (It's advertising) | |
| Address Resolution | Uses the speaker's IRK (stored during pairing) to identify that the RPA belongs to the speaker. | N/A | The ability to resolve an address is separate from the policy of generating one. |
Conclusion: The privacy = off setting in BlueZ only affects your computer's "outgoing" privacy. It does not disable its ability to interact with, resolve, and connect to other devices that are properly using BLE Privacy features like RPA. Your connection to the speaker will work just fine.