mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-20 10:52:33 +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;
|
||||
socklen_t sll_len;
|
||||
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));
|
||||
sll_len = sizeof(sll);
|
||||
|
@ -25,6 +25,9 @@
|
||||
#include <asm/byteorder.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" */
|
||||
enum mpdu_type {
|
||||
MPDU_TYPE_MANAGEMENT = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user