3
0
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:
Andrew Zaborowski 2017-03-10 12:29:05 +01:00 committed by Denis Kenzior
parent 257aa441a1
commit b0167f2469
2 changed files with 4 additions and 1 deletions

View File

@ -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);

View File

@ -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,