eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6902bb9dae787aa6d6556cc5b5cd6ec47ffc4d24
parent 50c947b53c26ac1dad954899da6eabb88ae84914
Author: James Prestwood <prestwoj@gmail.com>
Date:   Mon,  9 Sep 2019 10:41:45 -0700

monitor: print association response events

Diffstat:
Mmonitor/nlmon.c | 25++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/monitor/nlmon.c b/monitor/nlmon.c @@ -3634,6 +3634,26 @@ static void print_mmpdu_header(unsigned int level, MPDU_SEQUENCE_NUMBER(*mmpdu)); } +static void print_association_mgmt_frame(unsigned int level, + const struct mmpdu_header *mmpdu, + size_t size) +{ + const struct mmpdu_association_response *body; + + body = mmpdu_body(mmpdu); + + print_attr(level, "Association Response:"); + + print_mpdu_frame_control(level + 1, &mmpdu->fc); + print_mmpdu_header(level + 1, mmpdu); + + print_attr(level + 1, "Status Code: %u", body->status_code); + print_attr(level + 1, "AID: %u", body->aid); + + print_management_ies(level, "IEs", body->ies, + size - 6 - sizeof(struct mmpdu_header)); +} + static void print_authentication_mgmt_frame(unsigned int level, const struct mmpdu_header *mmpdu, size_t size) @@ -4068,7 +4088,10 @@ static void print_frame_type(unsigned int level, const char *label, str = "Association request"; break; case 0x01: - str = "Association response"; + if (mpdu) + print_association_mgmt_frame(level + 1, mpdu, size); + else + str = "Association response"; break; case 0x02: str = "Reassociation request";