Bluetooth: Host: Avoid processing "no change" encryption changes

If the new encryption state is the same as the old one, there's no point in
doing additional processing or callbacks. Simply log a warning and ignore
the HCI event in such a case.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
(cherry picked from commit bf363d7c3e4614ebc9b7e7a051657ae6fde6283b)
1 file changed