LCOV - code coverage report
Current view: top level - src/ap - preauth_auth.h (source / functions) Hit Total Coverage
Test: wpa_supplicant/hostapd combined for hwsim test run 1393793999 Lines: 6 10 60.0 %
Date: 2014-03-02 Functions: 3 5 60.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * hostapd - Authenticator for IEEE 802.11i RSN pre-authentication
       3                 :            :  * Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
       4                 :            :  *
       5                 :            :  * This software may be distributed under the terms of the BSD license.
       6                 :            :  * See README for more details.
       7                 :            :  */
       8                 :            : 
       9                 :            : #ifndef PREAUTH_H
      10                 :            : #define PREAUTH_H
      11                 :            : 
      12                 :            : #ifdef CONFIG_RSN_PREAUTH
      13                 :            : 
      14                 :            : int rsn_preauth_iface_init(struct hostapd_data *hapd);
      15                 :            : void rsn_preauth_iface_deinit(struct hostapd_data *hapd);
      16                 :            : void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta,
      17                 :            :                           int success);
      18                 :            : void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta,
      19                 :            :                       u8 *buf, size_t len);
      20                 :            : void rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta);
      21                 :            : 
      22                 :            : #else /* CONFIG_RSN_PREAUTH */
      23                 :            : 
      24                 :         82 : static inline int rsn_preauth_iface_init(struct hostapd_data *hapd)
      25                 :            : {
      26                 :         82 :         return 0;
      27                 :            : }
      28                 :            : 
      29                 :         86 : static inline void rsn_preauth_iface_deinit(struct hostapd_data *hapd)
      30                 :            : {
      31                 :         86 : }
      32                 :            : 
      33                 :          0 : static inline void rsn_preauth_finished(struct hostapd_data *hapd,
      34                 :            :                                         struct sta_info *sta,
      35                 :            :                                         int success)
      36                 :            : {
      37                 :          0 : }
      38                 :            : 
      39                 :          0 : static inline void rsn_preauth_send(struct hostapd_data *hapd,
      40                 :            :                                     struct sta_info *sta,
      41                 :            :                                     u8 *buf, size_t len)
      42                 :            : {
      43                 :          0 : }
      44                 :            : 
      45                 :        187 : static inline void rsn_preauth_free_station(struct hostapd_data *hapd,
      46                 :            :                                             struct sta_info *sta)
      47                 :            : {
      48                 :        187 : }
      49                 :            : 
      50                 :            : #endif /* CONFIG_RSN_PREAUTH */
      51                 :            : 
      52                 :            : #endif /* PREAUTH_H */

Generated by: LCOV version 1.9