Wait a second.

In your output... this output line:

SSP CONFIRM a0:56:b2:4c:66:30 593250

Was that 593250 ... was that the randomly-generated passkey? If so then the code merely needs to spit it back, right? Literally echo the entire line back to the sender as-is.
_________________________
Tony Fabris