wpa_auth_kay.h revision 351611
1159307Spjd/* 2220922Spjd * IEEE 802.1X-2010 KaY Interface 3159307Spjd * Copyright (c) 2019, The Linux Foundation 4159307Spjd * 5159307Spjd * This software may be distributed under the terms of the BSD license. 6159307Spjd * See README for more details. 7159307Spjd */ 8159307Spjd 9159307Spjd#ifndef WPA_AUTH_KAY_H 10159307Spjd#define WPA_AUTH_KAY_H 11159307Spjd 12159307Spjd#ifdef CONFIG_MACSEC 13159307Spjd 14159307Spjdint ieee802_1x_alloc_kay_sm_hapd(struct hostapd_data *hapd, 15159307Spjd struct sta_info *sta); 16159307Spjdvoid * ieee802_1x_notify_create_actor_hapd(struct hostapd_data *hapd, 17159307Spjd struct sta_info *sta); 18159307Spjdvoid ieee802_1x_dealloc_kay_sm_hapd(struct hostapd_data *hapd); 19159307Spjd 20159307Spjdvoid * ieee802_1x_create_preshared_mka_hapd(struct hostapd_data *hapd, 21159307Spjd struct sta_info *sta); 22159307Spjd 23159307Spjd#else /* CONFIG_MACSEC */ 24159307Spjd 25159307Spjdstatic inline int ieee802_1x_alloc_kay_sm_hapd(struct hostapd_data *hapd, 26159307Spjd struct sta_info *sta) 27159307Spjd{ 28159307Spjd return 0; 29159307Spjd} 30159307Spjd 31159307Spjdstatic inline void * 32159307Spjdieee802_1x_notify_create_actor_hapd(struct hostapd_data *hapd, 33159307Spjd struct sta_info *sta) 34159307Spjd{ 35159307Spjd return NULL; 36159307Spjd} 37159307Spjd 38159307Spjdstatic inline void ieee802_1x_dealloc_kay_sm_hapd(struct hostapd_data *hapd) 39159307Spjd{ 40159307Spjd} 41159307Spjd 42159307Spjdstatic inline void * 43159307Spjdieee802_1x_create_preshared_mka_hapd(struct hostapd_data *hapd, 44159307Spjd struct sta_info *sta) 45159307Spjd{ 46159307Spjd return NULL; 47159307Spjd} 48159307Spjd 49159307Spjd#endif /* CONFIG_MACSEC */ 50159307Spjd 51159307Spjd#endif /* WPA_AUTH_KAY_H */ 52159307Spjd