mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
netdev: add more info to key setting debug messages
Specify that the ifindex is being printed and print the key ID as well.
This commit is contained in:
parent
91daa22ed4
commit
707b12abf8
@ -1635,7 +1635,7 @@ static void netdev_set_gtk(struct handshake_state *hs, uint16_t key_index,
|
|||||||
|
|
||||||
nhs->gtk_installed = false;
|
nhs->gtk_installed = false;
|
||||||
|
|
||||||
l_debug("%d", netdev->index);
|
l_debug("ifindex=%d key_idx=%u", netdev->index, key_index);
|
||||||
|
|
||||||
if (crypto_cipher_key_len(cipher) != gtk_len) {
|
if (crypto_cipher_key_len(cipher) != gtk_len) {
|
||||||
l_error("Unexpected key length: %d", gtk_len);
|
l_error("Unexpected key length: %d", gtk_len);
|
||||||
@ -1680,7 +1680,7 @@ static void netdev_set_igtk(struct handshake_state *hs, uint16_t key_index,
|
|||||||
|
|
||||||
nhs->igtk_installed = false;
|
nhs->igtk_installed = false;
|
||||||
|
|
||||||
l_debug("%d", netdev->index);
|
l_debug("ifindex=%d key_idx=%u", netdev->index, key_index);
|
||||||
|
|
||||||
if (crypto_cipher_key_len(cipher) != igtk_len) {
|
if (crypto_cipher_key_len(cipher) != igtk_len) {
|
||||||
l_error("Unexpected key length: %d", igtk_len);
|
l_error("Unexpected key length: %d", igtk_len);
|
||||||
@ -2054,7 +2054,7 @@ static void netdev_set_tk(struct handshake_state *hs, uint8_t key_index,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
l_debug("%d", netdev->index);
|
l_debug("ifindex=%d key_idx=%u", netdev->index, key_index);
|
||||||
|
|
||||||
err = -ENOENT;
|
err = -ENOENT;
|
||||||
if (!netdev_copy_tk(tk_buf, tk, cipher, false))
|
if (!netdev_copy_tk(tk_buf, tk, cipher, false))
|
||||||
|
Loading…
Reference in New Issue
Block a user