libwifi 0.0.3
An 802.11 Frame Parsing and Generation library in C
disassociation.h File Reference

Go to the source code of this file.

Functions

int libwifi_parse_disassoc (struct libwifi_parsed_disassoc *disassoc, struct libwifi_frame *frame)
 TODO: potentally write a parsed_to_gen function that converts a parsed disassoc back into something that can be passed directly into the interface? More...
 

Function Documentation

◆ libwifi_parse_disassoc()

int libwifi_parse_disassoc ( struct libwifi_parsed_disassoc disassoc,
struct libwifi_frame frame 
)

TODO: potentally write a parsed_to_gen function that converts a parsed disassoc back into something that can be passed directly into the interface?

Disassociation frames can originate from the BSS or the STA, with no way to know who sent the frame by looking at just the frame alone. Because of this, they are parsed into a struct libwifi_parsed_deauth instead of a libwifi_bss or libwifi_sta.

┌─────────────────────────────────────────────┐ │ Header (Ordered or Unordered) │ ── Disassociation Header ├─────────────────────────────────────────────┤ │ Fixed Parameters │ ─┐ ├─────────────────────────────────────────────┤ ├── Disassociation Body │ Tagged Parameters │ ─┘ └─────────────────────────────────────────────┘

Definition at line 40 of file disassociation.c.