about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libwifi/core/frame/frame.c1
-rw-r--r--src/libwifi/core/frame/frame.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libwifi/core/frame/frame.c b/src/libwifi/core/frame/frame.c index d885d96..b4f50ad 100644 --- a/src/libwifi/core/frame/frame.c +++ b/src/libwifi/core/frame/frame.c
@@ -99,6 +99,7 @@ int libwifi_get_wifi_frame(struct libwifi_frame *fi, const unsigned char *frame,
99 break; 99 break;
100 case TYPE_MANAGEMENT: 100 case TYPE_MANAGEMENT:
101 if (frame_control->flags.ordered) { 101 if (frame_control->flags.ordered) {
102 fi->flags |= LIBWIFI_FLAGS_IS_ORDERED;
102 header_len = sizeof(struct libwifi_mgmt_ordered_frame_header); 103 header_len = sizeof(struct libwifi_mgmt_ordered_frame_header);
103 if (frame_data_len < header_len) { 104 if (frame_data_len < header_len) {
104 free(frame_data); 105 free(frame_data);
diff --git a/src/libwifi/core/frame/frame.h b/src/libwifi/core/frame/frame.h index 8c5c89f..5d44dbe 100644 --- a/src/libwifi/core/frame/frame.h +++ b/src/libwifi/core/frame/frame.h
@@ -24,6 +24,7 @@
24/* libwifi_frame Flags */ 24/* libwifi_frame Flags */
25#define LIBWIFI_FLAGS_FCS_PRESENT (1 << 0) 25#define LIBWIFI_FLAGS_FCS_PRESENT (1 << 0)
26#define LIBWIFI_FLAGS_IS_QOS (1 << 1) 26#define LIBWIFI_FLAGS_IS_QOS (1 << 1)
27#define LIBWIFI_FLAGS_IS_ORDERED (1 << 2)
27 28
28/* Defined frame types and sub-types */ 29/* Defined frame types and sub-types */
29enum libwifi_frame_type { 30enum libwifi_frame_type {