Fix a debug print in p2p_manager_disconnect()
fc2str() expects to get the 16-bit frame control value in host byte order. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
f367c08dd5
commit
ebae413550
1 changed files with 1 additions and 1 deletions
|
@ -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
|
wpa_dbg(hapd->msg_ctx, MSG_DEBUG, "P2P: Disconnect STA " MACSTR
|
||||||
" with minor reason code %u (stype=%u (%s))",
|
" with minor reason code %u (stype=%u (%s))",
|
||||||
MAC2STR(addr), minor_reason_code, stype,
|
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->da, addr, ETH_ALEN);
|
||||||
os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN);
|
os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN);
|
||||||
|
|
Loading…
Reference in a new issue