aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2020-03-15 21:42:21 (GMT)
committerJouni Malinen <j@w1.fi>2020-03-15 21:42:21 (GMT)
commit796253a65f5875bb60d4f3a51dc938a193a3c36f (patch)
treee7de977ccbc57274caf9dc067ed9114daee563a2
parentac222415326a4c749e6ea51aaed974489cf874a6 (diff)
downloadhostap-796253a65f5875bb60d4f3a51dc938a193a3c36f.zip
hostap-796253a65f5875bb60d4f3a51dc938a193a3c36f.tar.gz
hostap-796253a65f5875bb60d4f3a51dc938a193a3c36f.tar.bz2
nl80211: Debug print set_key() command names
This makes it easier to understand the debug log for various set_key() operations. Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--src/drivers/driver_nl80211.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index ba8d079..efcd69a 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -3107,6 +3107,8 @@ static int wpa_driver_nl80211_set_key(struct i802_bss *bss,
if ((key_flag & KEY_FLAG_PAIRWISE_MASK) ==
KEY_FLAG_PAIRWISE_RX_TX_MODIFY) {
+ wpa_printf(MSG_DEBUG,
+ "nl80211: SET_KEY (pairwise RX/TX modify)");
msg = nl80211_ifindex_msg(drv, ifindex, 0, NL80211_CMD_SET_KEY);
if (!msg)
goto fail2;
@@ -3116,6 +3118,7 @@ static int wpa_driver_nl80211_set_key(struct i802_bss *bss,
ret = -EINVAL;
goto fail2;
} else if (alg == WPA_ALG_NONE) {
+ wpa_printf(MSG_DEBUG, "nl80211: DEL_KEY");
msg = nl80211_ifindex_msg(drv, ifindex, 0, NL80211_CMD_DEL_KEY);
if (!msg)
goto fail2;
@@ -3127,6 +3130,7 @@ static int wpa_driver_nl80211_set_key(struct i802_bss *bss,
ret = -EINVAL;
goto fail2;
}
+ wpa_printf(MSG_DEBUG, "nl80211: NEW_KEY");
msg = nl80211_ifindex_msg(drv, ifindex, 0, NL80211_CMD_NEW_KEY);
if (!msg)
goto fail2;