3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

monitor: parse probe response frames

This commit is contained in:
James Prestwood 2022-09-15 14:18:53 -07:00 committed by Denis Kenzior
parent af9111355c
commit 9a447b9b31

View File

@ -5018,6 +5018,16 @@ static void print_action_mgmt_frame(unsigned int level,
print_mmpdu_header(level + 1, mmpdu);
}
static void print_probe_response(unsigned int level,
const struct mmpdu_header *mmpdu, size_t len)
{
const struct mmpdu_probe_response *resp = mmpdu_body(mmpdu);
print_attr(level, "Subtype: Probe Response");
print_ie(level + 1, "Probe Response IEs", resp->ies,
(const uint8_t *) mmpdu + len - resp->ies);
}
static void print_frame_type(unsigned int level, const char *label,
const void *data, uint16_t size)
{
@ -5063,7 +5073,10 @@ static void print_frame_type(unsigned int level, const char *label,
str = "Probe request";
break;
case 0x05:
str = "Probe response";
if (mpdu)
print_probe_response(level + 1, mpdu, size);
else
str = "Probe response";
break;
case 0x06:
str = "Timing Advertisement";