VSF Documented
vsf_wifi_wpa.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_WIFI_WPA_H__
19#define __VSF_WIFI_WPA_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "./vsf_wifi.h"
24
25#if VSF_USE_WIFI == ENABLED && VSF_WIFI_USE_WPA == ENABLED
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31/*============================ PROTOTYPES =====================================*/
32
33/*
34 * WPA2-PSK 4-way handshake EAPOL-Key entry point.
35 *
36 * Called by vsf_wifi_data_rx() with the EAPOL payload that follows the
37 * 802.11 data header and the LLC/SNAP + 0x888E ethertype, i.e. `eapol`
38 * points at the 802.1X header (version / type / length) and `len` is the
39 * number of EAPOL bytes. The 4-way handshake state machine (M1..M4,
40 * PTK/GTK derivation and installation) is driven from here.
41 *
42 * Task 3 provides only the routing plumbing; the handshake logic is added
43 * in Task 4.
44 */
45void vsf_wifi_eapol_rx(vsf_wifi_t *wifi, const uint8_t *eapol, uint16_t len);
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif // VSF_USE_WIFI && VSF_WIFI_USE_WPA
52#endif // __VSF_WIFI_WPA_H__
unsigned short uint16_t
Definition stdint.h:7
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_wifi_priv.h:53
void vsf_wifi_eapol_rx(vsf_wifi_t *wifi, const uint8_t *eapol, uint16_t len)
Definition vsf_wifi_wpa.c:461
Generated from commit: vsfteam/vsf@fb3db43