Jouni Malinen [Sat, 4 Dec 2010 19:18:21 +0000 (11:18 -0800)]
wlantest: Add support for reading DLT_IEEE802_11 pcap files
Jouni Malinen [Thu, 2 Dec 2010 20:56:37 +0000 (12:56 -0800)]
wlantest: Add support for reading pcap files with prism header
Jouni Malinen [Sat, 27 Nov 2010 11:05:37 +0000 (13:05 +0200)]
nl80211: Fix compiler warnings on non-P2P build
Ben Greear [Fri, 26 Nov 2010 19:46:30 +0000 (21:46 +0200)]
Enable sharing of scan result events among virtual interfaces
When controlling multiple virtual interfaces on the same physical
radio, share the scan results events with sibling interfaces. This
decreases the time it takes to connect many virtual interfaces.
This is currently only supported on Linux with cfg80211-based
drivers when using nl80211 or wext driver interface.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Ben Greear [Fri, 26 Nov 2010 19:16:36 +0000 (21:16 +0200)]
Add interface name to some debug prints
This makes it easier to figure out what is happening when controlling
multiple interfaces from a single wpa_supplicant process.
Tomasz Bursztyka [Fri, 26 Nov 2010 17:47:24 +0000 (19:47 +0200)]
dbus: Fix new dbus API for WPS
Start() method's optional Bssid argument needs a byte array, not an
array of arrays.
Jouni Malinen [Fri, 26 Nov 2010 16:14:51 +0000 (18:14 +0200)]
nl80211: Track used interfaces and support multiple P2P groups
Track all the P2P group interfaces within driver_nl80211.c to make
it easier to generate unique P2P Interface Addresses.
Jouni Malinen [Fri, 26 Nov 2010 15:41:21 +0000 (17:41 +0200)]
Allow driver wrappers to indicate whether result codes are sane
Some drivers are not providing exactly reliable error codes (e.g.,
with WEXT), but others may actually indicate reliable information.
Allow driver wrappers to indicate if that is the case and use
optimizations if so. For now, this improves nl80211 with
NL80211_CMD_CONNECT for a case where connection request fails.
Jouni Malinen [Fri, 26 Nov 2010 15:40:10 +0000 (17:40 +0200)]
nl80211: Add BSSID to NL80211_CMD_CONNECT assoc reject event
Jouni Malinen [Fri, 26 Nov 2010 15:39:31 +0000 (17:39 +0200)]
nl80211: Fix NL80211_CMD_CONNECT with WPA/WPS networks
Jouni Malinen [Fri, 26 Nov 2010 15:38:46 +0000 (17:38 +0200)]
Do not segfault on EVENT_ASSOC_REJECT without BSSID
Jouni Malinen [Fri, 26 Nov 2010 15:37:22 +0000 (17:37 +0200)]
SME: Optimize recovery from assocication command failures
mac80211 can indicate this mainly because of channel selection
conflicts with other vifs. If there is another BSS on another
channel, we should try to connect to it instead.
Jouni Malinen [Fri, 26 Nov 2010 13:54:53 +0000 (15:54 +0200)]
nl80211: Add preliminary code for testing separate P2P group interface
driver_param=use_p2p_group_interface=1 can now be used to test
nl80211-drivers with separate P2P group interface. In other words,
the main interface (e.g., wlan0) is reserved for P2P management
operations and non-P2P connections and a new group interface (e.g.,
p2p-wlan0-0) is created for the P2P group.
This implementation is very minimal, i.e., it only support address
allocation for a single P2P group interface (if the driver does not
handle this internally). In addition, not all functionality has yet
been tested, so for now, this is disabled by default and needs that
special driver_param to enable.
Jouni Malinen [Fri, 26 Nov 2010 13:52:16 +0000 (15:52 +0200)]
P2P: Add new driver option for interface allocation
WPA_DRIVER_FLAGS_P2P_MGMT_AND_NON_P2P flag can now be used to
indicate that the initial interface (e.g., wlan0) is used for
P2P management operations and potentially non-P2P connections.
This is otherwise identical to
WPA_DRIVER_FLAGS_P2P_DEDICATED_INTERFACE, but the possibility of
non-P2P connections makes some operations differ.
Jouni Malinen [Fri, 26 Nov 2010 13:50:22 +0000 (15:50 +0200)]
P2P: Rename the group interface name to use p2p- prefix
This may make it less likely for udev to rename the interface that
would previously have been called wlan0-p2p-# (now: p2p-wlan0-#).
In addition, add some workaround code to handle the case where the
main interface name is close to the IFNAMSIZ length limit to
avoid going over that for the P2P group interface.
Jouni Malinen [Fri, 26 Nov 2010 13:49:26 +0000 (15:49 +0200)]
P2P: Use larger pending_interface_name buffer
In theory, the interface name could be longer than IFNAMSIZ in
some systems, so use the same size buffer for this field as is
used with the main interface name.
Jouni Malinen [Fri, 26 Nov 2010 13:47:13 +0000 (15:47 +0200)]
P2P: Use alternative way of starting dnsmasq if needed
Some other dnsmasq users (like libvirt) seem to be binding the DHCP
server to all interfaces which prevents the previously used mechanism
here from working (bind on the DHCP socket fails). If a failure is
noticed, try to start dnsmasq with -z option to avoid that.
Jouni Malinen [Fri, 26 Nov 2010 09:36:03 +0000 (11:36 +0200)]
Extend load balancing optimization in BSS blacklisting
Move the previously SME specific optimization code into generic
function that can be used from non-SME code, too, and use it to
handle disconnection events. In other words, allow disconnection
event to trigger similar optimized scanning case to handle a
common load balancing mechanism. If there is another BSS in the
same ESS when we receive a disconnection event, scan only the
known frequencies of such other BSSes on the next attempt to
speed up recovery.
Jouni Malinen [Fri, 26 Nov 2010 09:23:50 +0000 (11:23 +0200)]
Blacklist BSS on first failure if only a single network is enabled
The special case of requiring blacklisting count to be 2 or higher
is only needed when more than a single network is currently enabled.
As such, we should not do that when only a single network is enabled.
This make the station more likely to follow network side load
balancing attempts where the current AP may disassociate us with
an assumption that we would move to another AP.
Jouni Malinen [Thu, 25 Nov 2010 21:41:32 +0000 (23:41 +0200)]
Fix CONFIG_AP=y build without NEED_AP_MLME driver
Jouni Malinen [Thu, 25 Nov 2010 21:34:56 +0000 (23:34 +0200)]
Fix CONFIG_AP=y build without CONFIG_WPS=y
Jouni Malinen [Thu, 25 Nov 2010 21:32:17 +0000 (23:32 +0200)]
random: Fix a compiler warning about unused variable
In CONFIG_NO_STDOUT_DEBUG=y case, the error variable was not used.
Jouni Malinen [Thu, 25 Nov 2010 20:51:56 +0000 (22:51 +0200)]
SME: Optimize recovery from common load balancing mechanisms
When authentication or association fails when trying to connect to
a BSS in an ESS that has multiple BSSes based on previous scans,
limit the first recovery scan to only the known channels that has
been seen previously. This speeds up recovery in some of the most
commonly used load balancing mechanisms in enterprise WLAN
networks.
Jouni Malinen [Thu, 25 Nov 2010 20:00:04 +0000 (22:00 +0200)]
SME: Fix re-try after auth/assoc timeout/failure
There were various issues in how the SME (i.e., nl80211-based driver
interface) handled various authentication and association timeouts and
failures. Authentication failure was not handled at all (wpa_supplicant
just stopped trying to connect completely), authentication timeout
resulted in blacklisting not working in the expected way (i.e., the same
BSS could be selected continuously), and association cases had similar
problems.
Use a common function to handle all these cases and fix the blacklist
operation. Use smaller delay before trying to scan again during the
initial cycle through the available APs to speed up connection. Add
a special case for another-BSS-in-the-same-ESS being present to
speed up recovery from networks with multiple APs doing load balancing
in various odd ways that are deployed out there.
Jouni Malinen [Thu, 25 Nov 2010 14:04:07 +0000 (16:04 +0200)]
P2P: Fix Action frame sending after disconnection
assoc_freq needs to be cleared when an interface gets disconnected.
This fixes an issue where P2P Action frame transmission may fail
because of missing remain-on-channel operation when using the same
interface for group operations (or non-P2P connections) and P2P
management operations.
Sudhakar Swaminathan [Thu, 25 Nov 2010 11:09:50 +0000 (13:09 +0200)]
P2P: Add p2p_unauthorize command
This can be used to remove authorization from a previous p2p_connect
commands that has not yet resulted in completed GO Negotiation.
Jouni Malinen [Wed, 24 Nov 2010 15:01:21 +0000 (17:01 +0200)]
Convert most commonly used drv ops to real function calls
Getting rid of these inline functions seems to reduce the code size
quite a bit, so convert the most commonly used hostapd driver ops to
function calls.
Jouni Malinen [Wed, 24 Nov 2010 14:55:17 +0000 (16:55 +0200)]
Fix CONFIG_AP=y build without CONFIG_P2P=y
Jouni Malinen [Wed, 24 Nov 2010 14:52:04 +0000 (16:52 +0200)]
Fix wpa_supplicant AP mode build after hostapd changes
Jouni Malinen [Wed, 24 Nov 2010 14:50:06 +0000 (16:50 +0200)]
Get rid of struct hostapd_driver_ops abstraction
This is not needed anymore and just makes things more difficult
to understand, so move the remaining function pointers to direct
function calls and get rid of the struct hostapd_driver_ops.
Jouni Malinen [Wed, 24 Nov 2010 14:34:49 +0000 (16:34 +0200)]
hostapd_driver_ops reduction
send_eapol, set_key, read_sta_data, sta_clear_stats,
set_radius_acl_auth, set_radius_acl_expire, and set_beacon
to use inline functions instead of extra abstraction.
Jouni Malinen [Wed, 24 Nov 2010 13:36:02 +0000 (15:36 +0200)]
hostapd_driver_ops reduction
set_sta_vlan, get_inact_sec, sta_deauth, sta_disassoc, and sta_remove
to use inline functions instead of extra abstraction.
Jouni Malinen [Wed, 24 Nov 2010 13:26:44 +0000 (15:26 +0200)]
hostapd_driver_ops reduction: set_countermeasures
Jouni Malinen [Wed, 24 Nov 2010 13:19:50 +0000 (15:19 +0200)]
hostapd: Start removing struct hostapd_driver_ops abstraction
Commit
bf65bc638fe438b96f2986580ad167d5e276ef4c started the path to
add this new abstraction for driver operations in AP mode to allow
wpa_supplicant to control AP mode operations. At that point, the
extra abstraction was needed, but it is not needed anymore since
hostapd and wpa_supplicant share the same struct wpa_driver_ops.
Start removing the unneeded abstraction by converting
send_mgmt_frame() to an inline function, hostapd_drv_send_mlme().
This is similar to the design that is used in wpa_supplicant and
that was used in hostapd in the past (hostapd_send_mgmt_frame()
inline function).
Jouni Malinen [Wed, 24 Nov 2010 13:00:22 +0000 (15:00 +0200)]
l2_packet: Use wpa_printf() instead of perror()
Jouni Malinen [Wed, 24 Nov 2010 12:58:58 +0000 (14:58 +0200)]
nl80211: Fix send commands to return 0 on success
driver.h defines these functions to return 0 on success, not
number of bytes transmitted. Most callers are checking "< 0" for
error condition, but not all. Address this by following the driver
API specification on 0 meaning success.
Albert Liu [Wed, 24 Nov 2010 12:25:33 +0000 (14:25 +0200)]
P2P: Fix RX ack status on Action frames sent via interface in GO mode
The wpa_supplicant_event() EVENT_TX_STATUS ack field needs to be
converted to use wpas_send_action_tx_status()
enum p2p_send_action_result in this case, too, to avoid getting
incorrect TX status for P2P processing.
Jouni Malinen [Wed, 24 Nov 2010 11:08:03 +0000 (13:08 +0200)]
hostapd: Verify availability of random data when using WPA/WPA2
On Linux, verify that the kernel entropy pool is capable of providing
strong random data before allowing WPA/WPA2 connection to be
established. If 20 bytes of data cannot be read from /dev/random,
force first two 4-way handshakes to fail while collecting entropy
into the internal pool in hostapd. After that, give up on /dev/random
and allow the AP to function based on the combination of /dev/urandom
and whatever data has been collected into the internal entropy pool.
Masashi Honma [Tue, 23 Nov 2010 23:42:50 +0000 (01:42 +0200)]
Fix memory leak on EAPOL Authenticator error path
wlan0: RADIUS No authentication server configured
MEMLEAK[0x999feb8]: len 1040
WPA_TRACE: memleak - START
[3]: ./hostapd(radius_msg_new+0x33) [0x8074f43]
radius_msg_new() ../src/radius/radius.c:117
[4]: ./hostapd() [0x806095e]
ieee802_1x_encapsulate_radius() ../src/ap/ieee802_1x.c:439
ieee802_1x_aaa_send() ../src/ap/ieee802_1x.c:1496
For example, this error occured when I used WPS hostapd without
"eap_server=1" definition in configuration file.
Jouni Malinen [Tue, 23 Nov 2010 23:29:40 +0000 (01:29 +0200)]
Maintain internal entropy pool for augmenting random number generation
By default, make hostapd and wpa_supplicant maintain an internal
entropy pool that is fed with following information:
hostapd:
- Probe Request frames (timing, RSSI)
- Association events (timing)
- SNonce from Supplicants
wpa_supplicant:
- Scan results (timing, signal/noise)
- Association events (timing)
The internal pool is used to augment the random numbers generated
with the OS mechanism (os_get_random()). While the internal
implementation is not expected to be very strong due to limited
amount of generic (non-platform specific) information to feed the
pool, this may strengthen key derivation on some devices that are
not configured to provide strong random numbers through
os_get_random() (e.g., /dev/urandom on Linux/BSD).
This new mechanism is not supposed to replace proper OS provided
random number generation mechanism. The OS mechanism needs to be
initialized properly (e.g., hw random number generator,
maintaining entropy pool over reboots, etc.) for any of the
security assumptions to hold.
If the os_get_random() is known to provide strong ramdom data (e.g., on
Linux/BSD, the board in question is known to have reliable source of
random data from /dev/urandom), the internal hostapd random pool can be
disabled. This will save some in binary size and CPU use. However, this
should only be considered for builds that are known to be used on
devices that meet the requirements described above. The internal pool
is disabled by adding CONFIG_NO_RANDOM_POOL=y to the .config file.
Jouni Malinen [Tue, 23 Nov 2010 23:10:48 +0000 (01:10 +0200)]
Fix hlr_auc_gw build with CONFIG_WPA_TRACE=y
Jouni Malinen [Tue, 23 Nov 2010 23:05:20 +0000 (01:05 +0200)]
Annotate places depending on strong random numbers
This commit adds a new wrapper, random_get_bytes(), that is currently
defined to use os_get_random() as is. The places using
random_get_bytes() depend on the returned value being strong random
number, i.e., something that is infeasible for external device to
figure out. These values are used either directly as a key or as
nonces/challenges that are used as input for key derivation or
authentication.
The remaining direct uses of os_get_random() do not need as strong
random numbers to function correctly.
Jouni Malinen [Tue, 23 Nov 2010 22:52:46 +0000 (00:52 +0200)]
Re-initialize GMK and Key Counter on first station connection
This adds more time for the system entropy pool to be filled before
requesting random data for generating the WPA/WPA2 encryption keys.
This can be helpful especially on embedded devices that do not have
hardware random number generator and may lack good sources of
randomness especially early in the bootup sequence when hostapd is
likely to be started.
GMK and Key Counter are still initialized once in the beginning to
match the RSN Authenticator state machine behavior and to make sure
that the driver does not transmit broadcast frames unencrypted.
However, both GMK (and GTK derived from it) and Key Counter will be
re-initialized when the first station connects and is about to
enter 4-way handshake.
Jouni Malinen [Tue, 23 Nov 2010 12:37:21 +0000 (14:37 +0200)]
wlantest: Update STA State based on broadcast Deauth/Disassoc
Jouni Malinen [Tue, 23 Nov 2010 12:27:28 +0000 (14:27 +0200)]
wlantest: Implement IEEE 802.11 duplicate detection
This cleans up debug logs by avoiding incorrect entries on TKIP/CCMP
replays and some state changes.
Jouni Malinen [Tue, 23 Nov 2010 11:16:23 +0000 (13:16 +0200)]
wlantest: Show broadcast Deauth/Disassoc info in debug
Jouni Malinen [Tue, 23 Nov 2010 11:15:25 +0000 (13:15 +0200)]
wlantest: Check STA State when validating need for CCMP for mgmt
If the STA is in State 1 or 2, Deauth/Disassoc frames are not
protected, so no need to complain about them being sent without CCMP.
Jouni Malinen [Mon, 22 Nov 2010 23:05:26 +0000 (01:05 +0200)]
Report errors from key derivation/configuration
Eventually, these should be acted on, so at least get the return
values passed one layer up.
Jouni Malinen [Mon, 22 Nov 2010 22:57:14 +0000 (00:57 +0200)]
Mix in more data to GTK/IGTK derivation
The example GMK-to-GTK derivation described in the IEEE 802.11 standard
is marked informative and there is no protocol reason for following it
since this derivation is done only on the AP/Authenticator and does not
need to match with the Supplicant. Mix in more data into the derivation
process to get more separation from GMK.
Jouni Malinen [Sun, 21 Nov 2010 19:50:28 +0000 (21:50 +0200)]
wlantest: Add per-BSS counters for BIP deauth/disassoc
Jouni Malinen [Sun, 21 Nov 2010 19:24:20 +0000 (21:24 +0200)]
wlantest: Add per-STA counter for (Re)AssocResp comeback frames
Jouni Malinen [Sun, 21 Nov 2010 16:18:01 +0000 (18:18 +0200)]
wlantest: Use helper functions to parse BSS/STA parameters
Jouni Malinen [Sun, 21 Nov 2010 16:01:18 +0000 (18:01 +0200)]
wlantest: Add functionality for fetching STA/BSS information
Jouni Malinen [Sun, 21 Nov 2010 11:19:43 +0000 (13:19 +0200)]
wlantest: Derive PMK to existing BSSes when a new passphrase is added
Jouni Malinen [Sun, 21 Nov 2010 11:18:57 +0000 (13:18 +0200)]
wlantest: Fix CCMP header generation to include reserved field
Jouni Malinen [Sun, 21 Nov 2010 11:18:02 +0000 (13:18 +0200)]
wlantest: Add more debugging details for PMK selection
Jouni Malinen [Sun, 21 Nov 2010 11:17:35 +0000 (13:17 +0200)]
wlantest: Show encrypted version on injected frame in debug
Jouni Malinen [Sun, 21 Nov 2010 10:35:49 +0000 (12:35 +0200)]
Include own MAC address in status info even in non-P2P builds
Jouni Malinen [Sun, 21 Nov 2010 10:09:27 +0000 (12:09 +0200)]
wlantest: Add history file for wlantest_cli
Jouni Malinen [Sun, 21 Nov 2010 10:07:29 +0000 (12:07 +0200)]
edit: Clear edit line on deinit
Jouni Malinen [Sun, 21 Nov 2010 10:04:44 +0000 (12:04 +0200)]
edit: Limit maximum number of history entries to 100
Jouni Malinen [Sun, 21 Nov 2010 10:01:50 +0000 (12:01 +0200)]
edit: Implement history file read/write
Jouni Malinen [Sun, 21 Nov 2010 09:49:36 +0000 (11:49 +0200)]
edit: Fix history prev selection
Jouni Malinen [Sun, 21 Nov 2010 09:43:09 +0000 (11:43 +0200)]
edit: Move history save file specification to caller
Jouni Malinen [Sun, 21 Nov 2010 09:25:34 +0000 (11:25 +0200)]
edit: Use struct dl_list for history buffer
Jouni Malinen [Sat, 20 Nov 2010 21:05:12 +0000 (23:05 +0200)]
edit: Fix delete_word when not in the end of line
Jouni Malinen [Sat, 20 Nov 2010 20:34:42 +0000 (22:34 +0200)]
wlantest: Parse ICMP echo packet and record STA ping success
Jouni Malinen [Sat, 20 Nov 2010 19:43:49 +0000 (21:43 +0200)]
wlantest: Ignore built files in git status
Jouni Malinen [Sat, 20 Nov 2010 19:40:04 +0000 (21:40 +0200)]
wlantest: Move RX EAPOL processing into its own file
Jouni Malinen [Sat, 20 Nov 2010 15:55:35 +0000 (17:55 +0200)]
edit: Add history buffer search
Ctrl-R can now be used to start history search mode.
Jouni Malinen [Sat, 20 Nov 2010 14:59:55 +0000 (16:59 +0200)]
edit: Clean up escape code parser
Jouni Malinen [Sat, 20 Nov 2010 13:55:51 +0000 (15:55 +0200)]
edit: Split escape code parsing into a separate function
This makes edit_read_char() simpler and easier to extend since it
does not need to know anything about the escape codes anymore.
Jouni Malinen [Sat, 20 Nov 2010 10:43:16 +0000 (12:43 +0200)]
wlantest: Use proper cmd length in fetching STA list
Jouni Malinen [Sat, 20 Nov 2010 10:41:15 +0000 (12:41 +0200)]
edit: Sort completion list
Jouni Malinen [Sat, 20 Nov 2010 10:35:11 +0000 (12:35 +0200)]
wlantest: Add pre-command completion functions
This allows the parameters to each command to be completed.
Jouni Malinen [Sat, 20 Nov 2010 10:27:06 +0000 (12:27 +0200)]
edit: Really fix the completion of last character
The previous commit broke completion in various places. The proper
way of handling the completion of full word is to verify whether
there are more than one possible match at that point.
Jouni Malinen [Sat, 20 Nov 2010 09:59:04 +0000 (11:59 +0200)]
edit: Fix completion at the last character
Completion needs to be done even if the full word has been entered.
In addition, fix the space-after-full-word to properly allocate room
for the extra character when completion is used in the middle of the
string.
Jouni Malinen [Sat, 20 Nov 2010 09:48:00 +0000 (11:48 +0200)]
edit: Fix delete word to update current position
Jouni Malinen [Sat, 20 Nov 2010 09:45:42 +0000 (11:45 +0200)]
edit: Fix completion of arguments other than the first one
Jouni Malinen [Sat, 20 Nov 2010 09:20:48 +0000 (11:20 +0200)]
edit: Fix Home/End escape codes
Jouni Malinen [Sat, 20 Nov 2010 08:48:32 +0000 (10:48 +0200)]
wlantest: Add interactive mode to wlantest_cli
Jouni Malinen [Fri, 19 Nov 2010 22:42:02 +0000 (00:42 +0200)]
edit: Add string completion support on tab
Jouni Malinen [Fri, 19 Nov 2010 20:00:10 +0000 (22:00 +0200)]
wlantest: Do not add new BSS/STA entries based on ctrl commands
Introduce bss_find()/sta_find() as an alternative bss_get()/sta_get()
command that do not allocate new BSS/STA entry if no existing entry
is found.
Jouni Malinen [Fri, 19 Nov 2010 17:31:55 +0000 (19:31 +0200)]
wlantest: Add add_passphrase command
This can be used to add a new known passphrase without having to
restart wlantest.
Jouni Malinen [Fri, 19 Nov 2010 15:45:19 +0000 (17:45 +0200)]
wlantest: Add command for fetching wlantest version
Jouni Malinen [Fri, 19 Nov 2010 15:09:02 +0000 (17:09 +0200)]
wlantest: Add support for injecting (Re)Association Request frames
Jouni Malinen [Fri, 19 Nov 2010 14:48:33 +0000 (16:48 +0200)]
wlantest: Add support for protecting injected broadcast frames
Jouni Malinen [Fri, 19 Nov 2010 14:22:44 +0000 (16:22 +0200)]
wlantest: Add support for injecting Deauth/Disassoc frames
Jouni Malinen [Fri, 19 Nov 2010 14:12:46 +0000 (16:12 +0200)]
wlantest: Update SA Query trans id based on injected frame
This allows the SA Query transaction id matching code to be used
to verify that a valid response is received for the injected
request.
Jouni Malinen [Fri, 19 Nov 2010 14:09:19 +0000 (16:09 +0200)]
wlantest: Add support for CCMP protection for injected frames
Jouni Malinen [Fri, 19 Nov 2010 11:24:45 +0000 (13:24 +0200)]
P2P: Add some initial documentation for P2P use
Jouni Malinen [Fri, 19 Nov 2010 10:58:31 +0000 (12:58 +0200)]
P2P: Accept invitations to already running persistent group
We can automatically accept invitations that are for a persistent
group that is already running. There is no need to confirm this
separately or preparare a new group interface.
Jouni Malinen [Fri, 19 Nov 2010 10:58:03 +0000 (12:58 +0200)]
P2P: Stop p2p_find/p2p_listen when Invitation is accepted
When an Invitation to reinvoke a persistent group is accepted,
we need to make sure that any pending p2p_find or p2p_listen
operation gets stopped to avoid consuming all radio resources
doing device discovery while the group is being set up.
Jouni Malinen [Fri, 19 Nov 2010 10:57:36 +0000 (12:57 +0200)]
P2P: Do not start multiple copies of same persistent group
When running p2p_group_add persistent=<id>, verify whether the
requested group is already running and if so, do not try to
start another copy of it.
Jouni Malinen [Thu, 18 Nov 2010 22:35:13 +0000 (00:35 +0200)]
wlantest: Add preliminary infrastructure for injecting frames
This adds new commands for wlantest_cli to request wlantest to
inject frames. This version can only send out Authentication
frames and unprotected SA Query Request frames, but there is
now place to add more frames and encryption with future commits.
Jouni Malinen [Thu, 18 Nov 2010 17:05:29 +0000 (19:05 +0200)]
wlantest: Add BSS/STA statistics counters
These counters can be cleared and queried from external programs to
script various testing tasks.
Jouni Malinen [Thu, 18 Nov 2010 15:36:08 +0000 (17:36 +0200)]
wlantest: Add flush command for dropping all BSS data
Jouni Malinen [Thu, 18 Nov 2010 15:17:18 +0000 (17:17 +0200)]
wlantest: Add list_bss and list_sta commands
These can be used to list the current BSS and STA information
maintained in wlantest.
Jouni Malinen [Thu, 18 Nov 2010 14:27:25 +0000 (16:27 +0200)]
wlantest: Fix wlantest_cli dependency to include wlantest library
Jouni Malinen [Thu, 18 Nov 2010 10:42:02 +0000 (12:42 +0200)]
P2P: Indicate WPS events from AP mode only during group formation
The duplicated WPS event in the parent interface should only be used
during P2P group formation, i.e., when the WPS operation was actually
started using the parent interface. When authorizing a client to
connect to an already running group, the WPS command is issued on
the group interface and there is no need to duplicate the event to
the parent interface.