mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-09 00:02:48 +01:00
mpdu: Add x-ref in comments for struct definitions
This commit is contained in:
parent
805619fc9d
commit
002290998e
@ -23,20 +23,24 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
/* 802.11, Table 8-1 "Valid type and subtype combinations" */
|
||||||
enum mpdu_type {
|
enum mpdu_type {
|
||||||
MPDU_TYPE_MANAGEMENT = 0,
|
MPDU_TYPE_MANAGEMENT = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* 802.11, Table 8-1 "Valid type and subtype combinations" */
|
||||||
enum mpdu_mgmt_type {
|
enum mpdu_mgmt_type {
|
||||||
MPDU_MGMT_TYPE_AUTHENTICATION = 0xB,
|
MPDU_MGMT_TYPE_AUTHENTICATION = 0xB,
|
||||||
MPDU_MGMT_TYPE_DEAUTHENTICATION = 0xC,
|
MPDU_MGMT_TYPE_DEAUTHENTICATION = 0xC,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* 802.11, Section 8.4.1.1 Authentication Algorithm Number field */
|
||||||
enum mpdu_authentication_algorithm_number {
|
enum mpdu_authentication_algorithm_number {
|
||||||
MPDU_AUTH_ALGO_OPEN = 0,
|
MPDU_AUTH_ALGO_OPEN = 0,
|
||||||
MPDU_AUTH_ALGO_SK,
|
MPDU_AUTH_ALGO_SK,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* 802.11, Section 8.2.4.1.1, Figure 8-2 */
|
||||||
struct mpdu_fc {
|
struct mpdu_fc {
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
@ -56,6 +60,7 @@ struct mpdu_fc {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* 802.11, Section 8.3.3.1 */
|
||||||
struct mpdu_mgmt_header {
|
struct mpdu_mgmt_header {
|
||||||
uint16_t duration;
|
uint16_t duration;
|
||||||
unsigned char address_1[6];
|
unsigned char address_1[6];
|
||||||
@ -71,6 +76,7 @@ struct mpdu_mgmt_header {
|
|||||||
uint32_t ht_control; /* ToDo? */
|
uint32_t ht_control; /* ToDo? */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* 802.11, Section 8.3.3.11 */
|
||||||
struct mpdu_authentication {
|
struct mpdu_authentication {
|
||||||
uint16_t algorithm;
|
uint16_t algorithm;
|
||||||
uint16_t transaction_sequence;
|
uint16_t transaction_sequence;
|
||||||
@ -80,6 +86,7 @@ struct mpdu_authentication {
|
|||||||
/* ToDo: FT and SAE parts? */
|
/* ToDo: FT and SAE parts? */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* 802.11, Section 8.3.3.12 */
|
||||||
struct mpdu_deauthentication {
|
struct mpdu_deauthentication {
|
||||||
uint16_t reason_code;
|
uint16_t reason_code;
|
||||||
/* ToDo: Vendor specific IE? MME? */
|
/* ToDo: Vendor specific IE? MME? */
|
||||||
|
Loading…
Reference in New Issue
Block a user