LCOV - code coverage report
Current view: top level - wpa_supplicant - wpas_kay.h (source / functions) Hit Total Coverage
Test: wpa_supplicant/hostapd combined for hwsim test run 1443382998 Lines: 6 6 100.0 %
Date: 2015-09-27 Functions: 3 3 100.0 %

          Line data    Source code
       1             : /*
       2             :  * IEEE 802.1X-2010 KaY Interface
       3             :  * Copyright (c) 2013-2014, Qualcomm Atheros, Inc.
       4             :  *
       5             :  * This software may be distributed under the terms of the BSD license.
       6             :  * See README for more details.
       7             :  */
       8             : 
       9             : #ifndef WPAS_KAY_H
      10             : #define WPAS_KAY_H
      11             : 
      12             : #ifdef CONFIG_MACSEC
      13             : 
      14             : int ieee802_1x_alloc_kay_sm(struct wpa_supplicant *wpa_s,
      15             :                             struct wpa_ssid *ssid);
      16             : void * ieee802_1x_notify_create_actor(struct wpa_supplicant *wpa_s,
      17             :                                       const u8 *peer_addr);
      18             : void ieee802_1x_dealloc_kay_sm(struct wpa_supplicant *wpa_s);
      19             : 
      20             : #else /* CONFIG_MACSEC */
      21             : 
      22        3416 : static inline int ieee802_1x_alloc_kay_sm(struct wpa_supplicant *wpa_s,
      23             :                                           struct wpa_ssid *ssid)
      24             : {
      25        3416 :         return 0;
      26             : }
      27             : 
      28             : static inline void *
      29        1780 : ieee802_1x_notify_create_actor(struct wpa_supplicant *wpa_s,
      30             :                                const u8 *peer_addr)
      31             : {
      32        1780 :         return NULL;
      33             : }
      34             : 
      35         612 : static inline void ieee802_1x_dealloc_kay_sm(struct wpa_supplicant *wpa_s)
      36             : {
      37         612 : }
      38             : 
      39             : #endif /* CONFIG_MACSEC */
      40             : 
      41             : #endif /* WPAS_KAY_H */

Generated by: LCOV version 1.10