nl80211: Print frame registration match on same debug line
This makes debug log a bit more readable. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
03ed332407
commit
880de8851e
1 changed files with 5 additions and 4 deletions
|
@ -3976,15 +3976,16 @@ static int nl80211_register_frame(struct i802_bss *bss,
|
||||||
struct wpa_driver_nl80211_data *drv = bss->drv;
|
struct wpa_driver_nl80211_data *drv = bss->drv;
|
||||||
struct nl_msg *msg;
|
struct nl_msg *msg;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
char buf[30];
|
||||||
|
|
||||||
msg = nlmsg_alloc();
|
msg = nlmsg_alloc();
|
||||||
if (!msg)
|
if (!msg)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "nl80211: Register frame type=0x%x nl_handle=%p",
|
buf[0] = '\0';
|
||||||
type, nl_handle);
|
wpa_snprintf_hex(buf, sizeof(buf), match, match_len);
|
||||||
wpa_hexdump(MSG_DEBUG, "nl80211: Register frame match",
|
wpa_printf(MSG_DEBUG, "nl80211: Register frame type=0x%x nl_handle=%p match=%s",
|
||||||
match, match_len);
|
type, nl_handle, buf);
|
||||||
|
|
||||||
nl80211_cmd(drv, msg, 0, NL80211_CMD_REGISTER_ACTION);
|
nl80211_cmd(drv, msg, 0, NL80211_CMD_REGISTER_ACTION);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue