Android: Use correct header file path for capability.h

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Android: Use keystore ENGINE for private key operations

The new keystore ENGINE is usable to perform private key operations when
we can't get the actual private key data. This is the case when hardware
crypto is enabled: the private key never leaves the hardware.

Subsequently, we need to be able to talk to OpenSSL ENGINEs that aren't
PKCS#11 or OpenSC. This just changes a few #define variables to allow us
to talk to our keystore engine without having one of those enabled and
without using a PIN.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Android: Remove obsolete keystore path

It's not possible to get a raw private key from keystore anymore, so
this would fail every time anyway. Remove it so it doesn't confuse
anyone that looks at this code.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Android: Restore OpenSSL ENGINE support

We now use an OpenSSL ENGINE to support keystore functionality.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Android: Get rid of LOCAL_MODULE_TAGS := user

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Android: Switch keystore to binder

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Android: Add liblog

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Android: Add CONFIG_EAP_UNAUTH_TLS option to makefile

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Android: Add CONFIG_IEEE80211AC option to makefile

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Android: Fix CONFIG_EAP_PROXY option and move it to right place

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Android: Add CONFIG_ACS option to makefile

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Android: Set proper path to keystore include dir

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Android: Sync Android.mk with Makefile

This brings in commit 411f56705019ac5b13b4daf62f423fceb3c703e2 changes
to allow libdl to be linked in after OpenSSL.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Android: Sync Android.mk with Makefile

This brings in commit fd2f2d0489635d590930bc0945fbc438ba1387e2 changes
to remove optional gnutls-extra dependency.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Android: Sync Android.mk with Makefile

This brings in commit 0648c3b8f5c38bc2206758738278e074f6f5b11b changes
to add Linux tracing option for hostapd.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Android: Reset MD5OBJS value before += operation

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
tests: Use proper admin group in start.sh

wpa_supplicant configuration files had a hardcoded GROUP=admin. The
start.sh script failed on a system without admin group (some systems
have it named adm).

Generate configuration files with appropriate GROUP in the log dir
and use them.

Signed-hostap: Michal Kazior <michal.kazior@tieto.com>
tests: Remove duplicated mkdir for LOGDIR

LOGDIR directory is created automatically if LOGDIR variable was not
set. If the variable is set, that directory is expected to exist.

Signed-hostap: Jouni Malinen <j@w1.fi>
tests: Do not override existing .config from build.sh

This allows the build.sh script to be used to rebuild binaries based on
existing configuration in addition to the initial case of preparing
suitable build configuration.

Signed-hostap: Jouni Malinen <j@w1.fi>
nl80211: Remove read-only last_freq/last_freq_ht

These variables were originally used in hostapd to clear HT channel
information when exiting. However, that functionality was lost with
commit f019981aee20f53d29ee1079973e609517d6d7e6 when moving to a common
code for setting the channel. Taken into account that no one seems to
have missed this functionality over the last four years, it seems safe
to drop this rather than try to fix the old hostapd behavior.

Signed-hostap: Jouni Malinen <j@w1.fi>