Hi, Den ons 17 apr. 2019 kl 20:46 skrev <YouRen.Chen@xxxxxxxxxxxx>: > > Could you try remove these two lines at > > https://github.com/torvalds/linux/blob/v5.0/net/bluetooth/smp.c#L693 > > to see if it works (also make sure by looking at the log later that those bits > > were not set in the Key Distribution field)?: > > local_dist |= SMP_DIST_LINK_KEY; > > remote_dist |= SMP_DIST_LINK_KEY; > > > > We have seen the exact same problem when Android 6 was released. > > However they have a workaround that they don't set the LinkKey bit if they > > suspect the device doesn't support it. I think they look at the advertising data > > which indicates in the flags that it doesn't support BR/EDR. I think BlueZ > > should do the same to workaround these incompatibility issues. > > > > /Emil > > Sorry for the late response, the pairing process succeeds when the two > lines are removed from smp.c. I'm inquiring whether we have a patch > that already addresses this issue and if not, how it can be implemented. Good. Tell me if you need help with the patch on the peripheral side. > Just to make sure I understand this correctly, the PN557W sees the Link > Bit and returns Invalid Parameters because the bit is nonzero, correct? > This causes the pairing process to fail. By commenting out those two > lines, we are telling the master to not set the link bit to 1 before sending > the parameters? > > /Joey Exactly. /Emil