1*a1157835SDaniel Fojt /*
2*a1157835SDaniel Fojt * IEEE 802.1X-2010 KaY Interface
3*a1157835SDaniel Fojt * Copyright (c) 2019, The Linux Foundation
4*a1157835SDaniel Fojt *
5*a1157835SDaniel Fojt * This software may be distributed under the terms of the BSD license.
6*a1157835SDaniel Fojt * See README for more details.
7*a1157835SDaniel Fojt */
8*a1157835SDaniel Fojt
9*a1157835SDaniel Fojt #ifndef WPA_AUTH_KAY_H
10*a1157835SDaniel Fojt #define WPA_AUTH_KAY_H
11*a1157835SDaniel Fojt
12*a1157835SDaniel Fojt #ifdef CONFIG_MACSEC
13*a1157835SDaniel Fojt
14*a1157835SDaniel Fojt int ieee802_1x_alloc_kay_sm_hapd(struct hostapd_data *hapd,
15*a1157835SDaniel Fojt struct sta_info *sta);
16*a1157835SDaniel Fojt void * ieee802_1x_notify_create_actor_hapd(struct hostapd_data *hapd,
17*a1157835SDaniel Fojt struct sta_info *sta);
18*a1157835SDaniel Fojt void ieee802_1x_dealloc_kay_sm_hapd(struct hostapd_data *hapd);
19*a1157835SDaniel Fojt
20*a1157835SDaniel Fojt void * ieee802_1x_create_preshared_mka_hapd(struct hostapd_data *hapd,
21*a1157835SDaniel Fojt struct sta_info *sta);
22*a1157835SDaniel Fojt
23*a1157835SDaniel Fojt #else /* CONFIG_MACSEC */
24*a1157835SDaniel Fojt
ieee802_1x_alloc_kay_sm_hapd(struct hostapd_data * hapd,struct sta_info * sta)25*a1157835SDaniel Fojt static inline int ieee802_1x_alloc_kay_sm_hapd(struct hostapd_data *hapd,
26*a1157835SDaniel Fojt struct sta_info *sta)
27*a1157835SDaniel Fojt {
28*a1157835SDaniel Fojt return 0;
29*a1157835SDaniel Fojt }
30*a1157835SDaniel Fojt
31*a1157835SDaniel Fojt static inline void *
ieee802_1x_notify_create_actor_hapd(struct hostapd_data * hapd,struct sta_info * sta)32*a1157835SDaniel Fojt ieee802_1x_notify_create_actor_hapd(struct hostapd_data *hapd,
33*a1157835SDaniel Fojt struct sta_info *sta)
34*a1157835SDaniel Fojt {
35*a1157835SDaniel Fojt return NULL;
36*a1157835SDaniel Fojt }
37*a1157835SDaniel Fojt
ieee802_1x_dealloc_kay_sm_hapd(struct hostapd_data * hapd)38*a1157835SDaniel Fojt static inline void ieee802_1x_dealloc_kay_sm_hapd(struct hostapd_data *hapd)
39*a1157835SDaniel Fojt {
40*a1157835SDaniel Fojt }
41*a1157835SDaniel Fojt
42*a1157835SDaniel Fojt static inline void *
ieee802_1x_create_preshared_mka_hapd(struct hostapd_data * hapd,struct sta_info * sta)43*a1157835SDaniel Fojt ieee802_1x_create_preshared_mka_hapd(struct hostapd_data *hapd,
44*a1157835SDaniel Fojt struct sta_info *sta)
45*a1157835SDaniel Fojt {
46*a1157835SDaniel Fojt return NULL;
47*a1157835SDaniel Fojt }
48*a1157835SDaniel Fojt
49*a1157835SDaniel Fojt #endif /* CONFIG_MACSEC */
50*a1157835SDaniel Fojt
51*a1157835SDaniel Fojt #endif /* WPA_AUTH_KAY_H */
52