]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Add some more debug prints for mgmt frame TX
authorJouni Malinen <j@w1.fi>
Sat, 28 Sep 2013 08:33:38 +0000 (11:33 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 28 Sep 2013 09:10:57 +0000 (12:10 +0300)
Signed-hostap: Jouni Malinen <j@w1.fi>

src/drivers/driver_nl80211.c

index 86a604635ea18059b34b5b036ba1e1893975606a..442db71b1850acf2af74dbe5376c4afd6fccef2a 100644 (file)
@@ -6108,10 +6108,14 @@ static int wpa_driver_nl80211_send_frame(struct i802_bss *bss,
                freq = bss->freq;
        }
 
-       if (drv->use_monitor)
+       if (drv->use_monitor) {
+               wpa_printf(MSG_DEBUG, "nl80211: send_frame(freq=%u bss->freq=%u) -> send_mntr",
+                          freq, bss->freq);
                return wpa_driver_nl80211_send_mntr(drv, data, len,
                                                    encrypt, noack);
+       }
 
+       wpa_printf(MSG_DEBUG, "nl80211: send_frame -> send_frame_cmd");
        return nl80211_send_frame_cmd(bss, freq, wait_time, data, len,
                                      &cookie, no_cck, noack, offchanok);
 }
@@ -6180,7 +6184,7 @@ static int wpa_driver_nl80211_send_mlme(struct i802_bss *bss, const u8 *data,
                        encrypt = 0;
        }
 
-       wpa_printf(MSG_DEBUG, "nl80211: send_mgmt -> send_frame");
+       wpa_printf(MSG_DEBUG, "nl80211: send_mlme -> send_frame");
        return wpa_driver_nl80211_send_frame(bss, data, data_len, encrypt,
                                             noack, freq, no_cck, offchanok,
                                             wait_time);