]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix a debug print in p2p_manager_disconnect()
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 23 Jun 2016 22:58:33 +0000 (01:58 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 24 Jun 2016 16:02:58 +0000 (19:02 +0300)
fc2str() expects to get the 16-bit frame control value in host byte
order.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ctrl_iface_ap.c

index 917341cd590eeb9b301f2996ae8da9e0e5aaf299..14c154f8099a1a95065db4bd6b79383758c40ac1 100644 (file)
@@ -269,7 +269,7 @@ static int p2p_manager_disconnect(struct hostapd_data *hapd, u16 stype,
        wpa_dbg(hapd->msg_ctx, MSG_DEBUG, "P2P: Disconnect STA " MACSTR
                " with minor reason code %u (stype=%u (%s))",
                MAC2STR(addr), minor_reason_code, stype,
-               fc2str(mgmt->frame_control));
+               fc2str(le_to_host16(mgmt->frame_control)));
 
        os_memcpy(mgmt->da, addr, ETH_ALEN);
        os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN);