mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-18 10:19:24 +01:00
eapol: Define and use IEEE80211_MAX_DATA_LEN
The same constant will be used in multiple places so define it in a header file.
This commit is contained in:
parent
257aa441a1
commit
b0167f2469
@ -95,7 +95,7 @@ static bool pae_read(struct l_io *io, void *user_data)
|
|||||||
struct sockaddr_ll sll;
|
struct sockaddr_ll sll;
|
||||||
socklen_t sll_len;
|
socklen_t sll_len;
|
||||||
ssize_t bytes;
|
ssize_t bytes;
|
||||||
uint8_t frame[2304]; /* IEEE Std 802.11 ch. 8.2.3 */
|
uint8_t frame[IEEE80211_MAX_DATA_LEN];
|
||||||
|
|
||||||
memset(&sll, 0, sizeof(sll));
|
memset(&sll, 0, sizeof(sll));
|
||||||
sll_len = sizeof(sll);
|
sll_len = sizeof(sll);
|
||||||
|
@ -25,6 +25,9 @@
|
|||||||
#include <asm/byteorder.h>
|
#include <asm/byteorder.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
|
/* Std 802.11, Section 8.2.3 */
|
||||||
|
#define IEEE80211_MAX_DATA_LEN 2304
|
||||||
|
|
||||||
/* 802.11, Table 8-1 "Valid type and subtype combinations" */
|
/* 802.11, Table 8-1 "Valid type and subtype combinations" */
|
||||||
enum mpdu_type {
|
enum mpdu_type {
|
||||||
MPDU_TYPE_MANAGEMENT = 0,
|
MPDU_TYPE_MANAGEMENT = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user