Compile breakage due to 16579769

Ben Greear greearb at
Wed Oct 18 15:20:13 PDT 2017

The commit below caused the compile to fail for me:

cc -c -o ../src/ap/utils.o  -MMD -O0 -Wall -g   -I/home/greearb/btbits/x64_btbits/3plibs/hostap/src -I/home/greearb/btbits/x64_btbits/3plibs/hostap/src/utils 
-DUSE_KERNEL_HEADERS -I/home/greearb/tmp/local/include -I/home/greearb/btbits/x64_btbits/3plibs/libnl/include 
In file included from ../src/ap/utils.c:14:0:
../src/ap/sta_info.h:255:15: error: field ‘last_tk_alg’ has incomplete type
   enum wpa_alg last_tk_alg;
Makefile:1182: recipe for target '../src/ap/utils.o' failed
make[1]: *** [../src/ap/utils.o] Error 1
make[1]: Leaving directory '/home/greearb/btbits/x64_btbits/3plibs/hostap/hostapd'

commit 16579769ff7bb255e101c6b77fb2c47d3735a883
Author: Jouni Malinen <j at>
Date:   Sat Oct 14 13:41:08 2017 +0300

     Add testing functionality for resetting PN/IPN for configured keys

     This can be used to test replay protection. The "RESET_PN" command in
     wpa_supplicant and "RESET_PN <addr>" command in hostapd resets the local
     counters to zero for the last configured key. For hostapd, the address
     parameter specifies which STA this operation is for or selects GTK
     ("ff:ff:ff:ff:ff:ff") or IGTK ("ff:ff:ff:ff:ff:ff IGTK").

     This functionality is for testing purposes and included only in builds

     Signed-off-by: Jouni Malinen <j at>

This is probably because I am not compiling with MESH support.  This patch
fixes the build...this look like the correct solution?

diff --git a/src/ap/sta_info.h b/src/ap/sta_info.h
index 3fb60f6..a4d314a 100644
--- a/src/ap/sta_info.h
+++ b/src/ap/sta_info.h
@@ -9,10 +9,8 @@
  #ifndef STA_INFO_H
  #define STA_INFO_H

  /* needed for mesh_plink_state enum */
  #include "common/defs.h"
-#endif /* CONFIG_MESH */

  #include "list.h"
  #include "vlan.h"


Ben Greear <greearb at>
Candela Technologies Inc

More information about the Hostap mailing list