Please sign in to comment.
Bluetooth: SMP: Don't return STK if it hasn't been generated yet
The SMP_FLAG_ENC_PENDING flag indicates that we've generated an STK and are waiting for encryption to happen. In case the remote enables encryption prematurely we should not try to encrypt with whatever is stored in smp->tk, rather reject the pairing attempt. Fixes #3222 Signed-off-by: Johan Hedberg <firstname.lastname@example.org>
- Loading branch information...