aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-03-07 13:34:17 (GMT)
committerJouni Malinen <j@w1.fi>2015-03-07 13:35:40 (GMT)
commit1d246a1db9e6185d11569da6fa3c8d72462e66b0 (patch)
tree282a62c6006876044a71af65cba6d5f4ea948d3c /wpa_supplicant/events.c
parent761396e4bef0218cd64347976520235f4868fbc7 (diff)
downloadhostap-1d246a1db9e6185d11569da6fa3c8d72462e66b0.zip
hostap-1d246a1db9e6185d11569da6fa3c8d72462e66b0.tar.gz
hostap-1d246a1db9e6185d11569da6fa3c8d72462e66b0.tar.bz2
Make rate-not-supported debug print more useful
It looks like "hardware does not support required rate 1.0 Mbps" has started showing up in some hwsim test cases as a reason for failure. This should not really occur with mac80211_hwsim, so add more details to the debug print to make it easier to figure out what exactly happened. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 05d751c..d275ca4 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -678,9 +678,10 @@ static int rate_match(struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
* order to join a BSS all required rates
* have to be supported by the hardware.
*/
- wpa_dbg(wpa_s, MSG_DEBUG, " hardware does "
- "not support required rate %d.%d Mbps",
- r / 10, r % 10);
+ wpa_dbg(wpa_s, MSG_DEBUG,
+ " hardware does not support required rate %d.%d Mbps (freq=%d mode==%d num_rates=%d)",
+ r / 10, r % 10,
+ bss->freq, mode->mode, mode->num_rates);
return 0;
}
}