LCOV - code coverage report
Current view: top level - src/ap - hs20.c (source / functions) Hit Total Coverage
Test: hostapd hwsim test run 1388338050 Lines: 10 10 100.0 %
Date: 2013-12-29 Functions: 1 1 100.0 %
Branches: 2 2 100.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * Hotspot 2.0 AP ANQP processing
       3                 :            :  * Copyright (c) 2009, Atheros Communications, Inc.
       4                 :            :  * Copyright (c) 2011-2012, Qualcomm Atheros, Inc.
       5                 :            :  *
       6                 :            :  * This software may be distributed under the terms of the BSD license.
       7                 :            :  * See README for more details.
       8                 :            :  */
       9                 :            : 
      10                 :            : #include "includes.h"
      11                 :            : 
      12                 :            : #include "common.h"
      13                 :            : #include "common/ieee802_11_defs.h"
      14                 :            : #include "hostapd.h"
      15                 :            : #include "ap_config.h"
      16                 :            : #include "hs20.h"
      17                 :            : 
      18                 :            : 
      19                 :       1996 : u8 * hostapd_eid_hs20_indication(struct hostapd_data *hapd, u8 *eid)
      20                 :            : {
      21         [ +  + ]:       1996 :         if (!hapd->conf->hs20)
      22                 :       1726 :                 return eid;
      23                 :        270 :         *eid++ = WLAN_EID_VENDOR_SPECIFIC;
      24                 :        270 :         *eid++ = 5;
      25                 :        270 :         WPA_PUT_BE24(eid, OUI_WFA);
      26                 :        270 :         eid += 3;
      27                 :        270 :         *eid++ = HS20_INDICATION_OUI_TYPE;
      28                 :            :         /* Hotspot Configuration: DGAF Enabled */
      29                 :        270 :         *eid++ = hapd->conf->disable_dgaf ? 0x01 : 0x00;
      30                 :       1996 :         return eid;
      31                 :            : }

Generated by: LCOV version 1.9