aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-03-27 05:22:38 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-27 05:22:38 (GMT)
commit9fad706c686dff097bcbffe3d335eb93f76ab135 (patch)
tree27d7056d8b9a68ff30264d8e873213a47a8cddee /src
parent15664ad01a5a3383f1d283c360c9679dcc65b645 (diff)
downloadhostap-9fad706c686dff097bcbffe3d335eb93f76ab135.zip
hostap-9fad706c686dff097bcbffe3d335eb93f76ab135.tar.gz
hostap-9fad706c686dff097bcbffe3d335eb93f76ab135.tar.bz2
nl80211: Add more debug information about scan request parameters
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index a3cd65e..ddd2b2d 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -1546,6 +1546,9 @@ static int wpa_driver_nl80211_scan(void *priv,
NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, drv->ifindex);
for (i = 0; i < params->num_ssids; i++) {
+ wpa_hexdump_ascii(MSG_MSGDUMP, "nl80211: Scan SSID",
+ params->ssids[i].ssid,
+ params->ssids[i].ssid_len);
NLA_PUT(ssids, i + 1, params->ssids[i].ssid_len,
params->ssids[i].ssid);
}
@@ -1553,13 +1556,18 @@ static int wpa_driver_nl80211_scan(void *priv,
nla_put_nested(msg, NL80211_ATTR_SCAN_SSIDS, ssids);
if (params->extra_ies) {
+ wpa_hexdump_ascii(MSG_MSGDUMP, "nl80211: Scan extra IEs",
+ params->extra_ies, params->extra_ies_len);
NLA_PUT(msg, NL80211_ATTR_IE, params->extra_ies_len,
params->extra_ies);
}
if (params->freqs) {
- for (i = 0; params->freqs[i]; i++)
+ for (i = 0; params->freqs[i]; i++) {
+ wpa_printf(MSG_MSGDUMP, "nl80211: Scan frequency %u "
+ "MHz", params->freqs[i]);
NLA_PUT_U32(freqs, i + 1, params->freqs[i]);
+ }
nla_put_nested(msg, NL80211_ATTR_SCAN_FREQUENCIES, freqs);
}