HS 2.0: Include OSU client sample in wpa_supplicant release package

This adds the new hs20 subdirectory into release tarballs.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests: Verify SQLite DB as hostapd EAP user database

Signed-off-by: Jouni Malinen <j@w1.fi>
GAS: Send error response if no room for pending dialog context

Instead of silently dropping the response that requires fragmentation,
send an error response to the station to make it aware that no full
response will be available.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests: Limit on number of GAS pending dialog contexts

Signed-off-by: Jouni Malinen <j@w1.fi>
tests: No pending query for GAS comeback

Signed-off-by: Jouni Malinen <j@w1.fi>
Add DRIVER_EVENT AVOID_FREQUENCIES for testing

This can be used to simulate driver events indicating frequencies to
avoid.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests: P2P and driver event to avoid frequencies

Signed-off-by: Jouni Malinen <j@w1.fi>
tests: Add printf encoding/decoding module tests

This replaces tests/test-printf.c.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests: Move bitfield unit tests into wpa_supplicant module test

Signed-off-by: Jouni Malinen <j@w1.fi>
tests: int_array unit tests

Signed-off-by: Jouni Malinen <j@w1.fi>
Remove unused hostapd_ip_diff()

There are no users of this function.

Signed-off-by: Jouni Malinen <j@w1.fi>
P2P: Add 60 GHz in channel to frequency conversion

Add regulatory classes for the 60GHz band.

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Boris Sorochkin <qca_bsoroc@qca.qualcomm.com>
Parse DMG capabilities when reporting to external interfaces

This adds [DMG] and [PBSS] flags for scan results and BSS table entries
using the IEEE Std 802.11ad-2012 updated definition of the Capability
field.

Signed-off-by: Boris Sorochkin <qca_bsoroc@qca.qualcomm.com>
tests: Add unit tests for ext_password

Signed-off-by: Jouni Malinen <j@w1.fi>
tests: Unit tests for WPA_TRACE

Signed-off-by: Jouni Malinen <j@w1.fi>
P2P: Clear p2p_auth_invite after each persistent group invitation

This makes the operations more consistent when going through multiple
persistent group re-invocation sequences in a row. Each invitation needs
to be accepted separately if persistent reconnect is not enabled.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests: Persistent P2P group re-invocation without persistent reconnect

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests: P2P persistent group during concurrent operation

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests: Persistent group invitation while GO already running

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
nl80211: Fix del_ifidx() with mixed parent interface cases

It is possible for a virtual interface to be added and removed by
different parent interfaces. This can happen, e.g., with P2P group
interfaces if the P2P parent interface does not happen to be the first
entry in the wpa_supplicant global interface list. That first entry is
used to remove the group interface while the addition would have
happened with the dedicated P2P management interface.

This can result in the interface that added a new virtual interface
getting stuck with an obsolete ifindex value in the drv->if_indeces list
and as such, deliver some extra events to incorrect destination wpa_s
instance. In particular, this can result in INTERFACE_DISABLED event
from deletion of a P2P group interface getting delivered incorrectly to
the parent wpa_s instance which would disable that interface even though
the interface remains in enabled state.

Fix this by clearing the removed interface from all if_indeces lists
instead of just the one that was used to delete the interface. This is
the simplest approach since the ifindex is unique and there is no need
to track which interface added the new virtual interface to always hit
the same one when removing the interface.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>