about summary refs log tree commit diff stats
path: root/src/libwifi/core/frame/control/rts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libwifi/core/frame/control/rts.h')
-rw-r--r--src/libwifi/core/frame/control/rts.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/libwifi/core/frame/control/rts.h b/src/libwifi/core/frame/control/rts.h new file mode 100644 index 0000000..0fbaacc --- /dev/null +++ b/src/libwifi/core/frame/control/rts.h
@@ -0,0 +1,38 @@
1/* Copyright 2021 The libwifi Authors
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#ifndef LIBWIFI_CORE_RTS_H
17#define LIBWIFI_CORE_RTS_H
18
19#include "../frame.h"
20
21/**
22 * Request-to-Send Layout
23 * ───────────────────────────────────
24 * ┌─────────────────────────────────┐
25 * │ Header │ Bytes: 4
26 * ├─────────────────────────────────┤
27 * │ Receiver Address │ Bytes: 6
28 * ├─────────────────────────────────┤
29 * │ Transmitter Address │ Bytes: 4
30 * └─────────────────────────────────┘
31 */
32struct libwifi_rts {
33 struct libwifi_ctrl_frame_header frame_header;
34 unsigned char receiver_addr[6];
35 unsigned char transmitter_addr[6];
36};
37
38#endif /* LIBWIFI_CORE_RTS_H */