Bluetooth: Remove unnecessary SMP STK define
We never store the "master" type of STKs since we request encryption directly with them so we only need one STK type (the one that's looked-up on the slave side). Simply remove the unnecessary define and rename the _SLAVE one to the shorter form. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:

committed by
Marcel Holtmann

parent
c29d244417
commit
7d5843b7b7
@@ -4241,7 +4241,7 @@ static void hci_le_ltk_request_evt(struct hci_dev *hdev, struct sk_buff *skb)
|
||||
* distribute the keys. Later, security can be re-established
|
||||
* using a distributed LTK.
|
||||
*/
|
||||
if (ltk->type == HCI_SMP_STK_SLAVE) {
|
||||
if (ltk->type == HCI_SMP_STK) {
|
||||
list_del(<k->list);
|
||||
kfree(ltk);
|
||||
}
|
||||
|
Reference in New Issue
Block a user