]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
RRM: Use wpa_hexdump_buf() instead of wpa_hexdump()
authorJouni Malinen <j@w1.fi>
Sat, 7 Jan 2017 16:47:37 +0000 (18:47 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 7 Jan 2017 16:47:37 +0000 (18:47 +0200)
Simplify the code a bit by using the appropriate debugging function to
dump a wpabuf contents.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/rrm.c

index 0786e0470ff6241706dddf7ab56806613eaeb7af..92cc8ce275825450e8ae373f50f5b36fe79e80c1 100644 (file)
@@ -1305,8 +1305,7 @@ void wpas_rrm_handle_link_measurement_request(struct wpa_supplicant *wpa_s,
        wpabuf_put_u8(buf, WLAN_ACTION_RADIO_MEASUREMENT);
        wpabuf_put_u8(buf, WLAN_RRM_LINK_MEASUREMENT_REPORT);
        wpabuf_put_data(buf, &report, sizeof(report));
-       wpa_hexdump(MSG_DEBUG, "RRM: Link measurement report:",
-                   wpabuf_head(buf), wpabuf_len(buf));
+       wpa_hexdump_buf(MSG_DEBUG, "RRM: Link measurement report", buf);
 
        if (wpa_drv_send_action(wpa_s, wpa_s->assoc_freq, 0, src,
                                wpa_s->own_addr, wpa_s->bssid,