]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Make rate-not-supported debug print more useful
authorJouni Malinen <j@w1.fi>
Sat, 7 Mar 2015 13:34:17 +0000 (15:34 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 7 Mar 2015 13:35:40 +0000 (15:35 +0200)
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>
wpa_supplicant/events.c

index 05d751cdf64f3ae07787badaffb47ec28222d91d..d275ca424e6ee74d4e51a2313dc13d1423ee2467 100644 (file)
@@ -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;
                        }
                }