Hi Marcel, > don't we also need to clear the flag when the new pairing succeed? Yep, in fact that's the whole point of the flag .... which I missed. Thanks for your patience :) > If we destroy hci_conn anyway, there is pretty much no point in test_and_clear_bit and we could just use test_bit here. Fair point, I will change them to test_bit. -- Alfonso Acosta Embedded Systems Engineer at Spotify Birger Jarlsgatan 61, Stockholm, Sweden http://www.spotify.com -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html