I set IRK on Zephyr and it seems to keep the same mac address(after bonding), why?

Hi all,
Since we dont need to worry about privacy I am trying to turn off the IRK.

My setup:
central side : pcb-ble-driver, typescript central.
peripheral side: zephyr with ncs 2.2.0

we are moving from nrf5 to zephyr (ncs 2.2.0) and we are willing to add in bleadapter -> authenticate MITM + LESC so I set :
as u can read I set IRK (aka id:true) to support IRK

    const secParamsCentral: SecurityParameters = {
      bond: true,
      mitm: true,
      lesc: true,
      keypress: false,
      // eslint-disable-next-line camelcase
      io_caps: this.adapter.driver.BLE_GAP_IO_CAPS_KEYBOARD_ONLY,
      oob: false,
      // eslint-disable-next-line camelcase
      min_key_size: 7,
      // eslint-disable-next-line camelcase
      max_key_size: 16,
      // eslint-disable-next-line camelcase
      kdist_own: {
        enc: true /** Long Term Key and Master Identification. */,
        id: true /** Identity Resolving Key and Identity Address Information. */,
        sign: false /** Connection Signature Resolving Key. */,
        link: false /** Derive the Link Key from the LTK. */,
      },
      // eslint-disable-next-line camelcase
      kdist_peer: {
        enc: true /** Long Term Key and Master Identification. */,
        id: true /** Identity Resolving Key and Identity Address Information. */,
        sign: false /** Connection Signature Resolving Key. */,
        link: false /** Derive the Link Key from the LTK. */,
      },
    };

On peripheral I set :

CONFIG_BT_PRIVACY=y


(just for testing purpose)

Central and peripheral paired and bonded successfully (with MITM+LESC).
Later on, I opened nrf connect and choose ble app, and I have noticed that the mac address of the peripheral stayed the same.
I also tried(since we dont need irk) to set CONFIG_BT_PRIVACY=n , but on central id= true -> so on authenticate central will still demand  privacy protection(IRK) BUT the mac address of the peripheral was the same.

Does ncs 2.2.0 support IRK?
Will it be like that in the future?

Thank you!
Ben
Parents Reply Children
No Data
Related