Jouni Malinen
2f837b41dc
P2P: Fix build after WSC 2.0 change to use WFA vendor extension
2010-09-09 07:17:21 -07:00
Jouni Malinen
2d509b39b1
WPS: Fix ER PBC overlap detection build with P2P changes
2010-09-09 07:17:21 -07:00
Jouni Malinen
5ded7d3eb8
P2P: Fix GAS fragmentation to match with IEEE 802.11u
...
P2P specification v1.15 fixed the description of the GAS fragmentation
to not duplicate NQP Query Response Field header in all fragments. This
change makes the fragmentation match with the description in IEEE
802.11u. The change is not backwards compatible with previous P2P
specification versions as far as fragmented SD responses are concerned.
2010-09-09 07:17:21 -07:00
Jouni Malinen
3dfda83d9c
P2P: Add Device Password ID to GO Neg Request RX event
...
This event indicates the Device Password ID that the peer tried
to use in GO Negotiation. For example:
P2P-GO-NEG-REQUEST 02:40:61:c2:f3:b7 dev_passwd_id=4
2010-09-09 07:17:20 -07:00
Jouni Malinen
4147a2cc64
P2P: Fix p2p_connect join with interface address
...
Need to fetch P2P Device Address from the peers table in case the
p2p_connect join command uses interface address.
2010-09-09 07:17:20 -07:00
Jouni Malinen
72044390f3
P2P: Add support for cross connection
...
If enabled, cross connection allows GO to forward IPv4 packets
using masquerading NAT from the P2P clients in the group to an
uplink WLAN connection. This is disabled by default and can be
enabled with "wpa_cli p2p_set cross_connect 1" on the P2P device
interface.
2010-09-09 07:17:20 -07:00
Jouni Malinen
6c6915f3db
P2P: Add defined values for P2P Manageability Bitmap
2010-09-09 07:17:20 -07:00
Jouni Malinen
0af196088c
P2P: Fix device discoverability to not wait before sending GO Neg Req
...
When we receive Device Discoverability Response, we need to initiate
new GO Negotiation as quickly as possible to avoid the target client
from going back to sleep. Make sure we do not end up in
P2P_CONNECT_LISTEN state (short Listen mode) in this case.
2010-09-09 07:17:20 -07:00
Jouni Malinen
aefb53bd5d
P2P: Disable periodic NoA when non-P2P STA is connected
...
For now, this applies to the test command that can be used to set
periodic NoA (p2p_set noa). The value are stored and periodic NoA
is enabled whenever there are no non-P2P STAs connected to the GO.
2010-09-09 07:17:20 -07:00
Jouni Malinen
4c08c0bd57
P2P: Include P2P IE in (Re)AssocReq to infra AP if it uses P2P IE
...
While this is not strictly speaking required by the P2P specification
for a not-P2P Managed Device, this can provide useful information for
the P2P manager AP and may be needed to pass certification tests.
2010-09-09 07:17:20 -07:00
Jouni Malinen
5be5305b7e
P2P: Include Extended Listen Timing attribute in (Re)AssocReq
...
If extended listen timing is enabled, it should be advertised in
(Re)Association Request frames sent to GOs.
2010-09-09 07:17:20 -07:00
Jouni Malinen
04d8dad5c7
P2P: Wait on operating channel between invitation requests
...
If running in active GO mode to invite a device to join the group,
wait on operating channel instead of listen channel.
2010-09-09 07:17:20 -07:00
Jouni Malinen
d9d6a58c8f
P2P: Fix invitation to active group to use correct operating channel
...
Invitation Request must use the current operating frequency of the
group, not the default operating channel.
2010-09-09 07:17:20 -07:00
Jouni Malinen
48e4377093
P2P: Fix WSC IE not to include two Device Name attrs with WPS 2.0 is used
2010-09-09 07:17:20 -07:00
Jouni Malinen
d5b20a73b2
P2P: Fix channel forcing for p2p_connect auth
2010-09-09 07:17:19 -07:00
Jouni Malinen
18eff3a3a7
P2P: Use 0-timeout when inviting to running group as client
2010-09-09 07:17:19 -07:00
Jouni Malinen
952f119242
P2P: Add Device Info attribute to Invitation Request
...
This was added as a mandatory attribute in one of the recent spec
updates.
2010-09-09 07:17:19 -07:00
Jouni Malinen
55a625799f
P2P: Add Group Info attr into Probe Response in GO without clients
...
While there is no real value in this, the spec seems to mark this
attribute as mandatory from GO, so better included it regardless
of whether we have clients or not (the attribute is empty in case
no clients are connected).
2010-09-09 07:17:19 -07:00
Jouni Malinen
80c9582a5f
P2P: Add test command for filtering which peers are discovered
...
"wpa_cli p2p_set peer_filter <MAC address>" can now be used to
only allow a single P2P Device (based on P2P Device Address) to be
discovered for testing. Setting the address to 00:00:00:00:00:00
disables the filter.
2010-09-09 07:17:19 -07:00
Jouni Malinen
9e00ea1aa3
P2P: Fix country string mismatch validation off-by-one offset
...
0x04 was being checked from incorrect location when skipping country
code validation.
2010-09-09 07:17:19 -07:00
Jouni Malinen
18708aadfc
P2P: Initial support for SD fragmentation (GAS Comeback Request/Response)
2010-09-09 07:17:19 -07:00
Jouni Malinen
bf608cad56
P2P: Rename SD info not available define to match with spec change
2010-09-09 07:17:19 -07:00
Jouni Malinen
3c5126a41f
P2P: Set Device Password ID in WPS M1/M2 per new rules
...
If the P2P client (WPS Enrollee) uses a PIN from the GO (Registrar),
Device Password ID in M1 & M2 is set to Registrar-specified.
2010-09-09 07:17:19 -07:00
Jouni Malinen
c381508d88
P2P: Implement power save configuration
...
wpa_cli p2p_set ps <0/1/2>
wpa_cli p2p_set oppps <0/1>
wpa_cli p2p_set ctwindow <0..> msec
2010-09-09 07:17:19 -07:00
Jouni Malinen
40c03fd40b
P2P: Handle p2p_scan tracking in SEARCH state
...
Previously, only the initial p2p_scan was used to delay starting new
P2P operations. However, this should have applied to the SEARCH state
scans, too.
2010-09-09 07:17:18 -07:00
Jouni Malinen
962473c136
P2P: Add preliminary P2P Manager AP support for hostapd
2010-09-09 07:17:18 -07:00
Jouni Malinen
ef7963917c
P2P: Add group notification from (re)association request
2010-09-09 07:17:18 -07:00
Jouni Malinen
f684e608af
P2P: Use PSK format in WPS Credential
2010-09-09 07:17:17 -07:00
Jouni Malinen
8ccbe415ba
P2P: Add group notifications
2010-09-09 07:17:17 -07:00
Jouni Malinen
e44f8bf20a
P2P: Add P2P configuration and callbacks in hostapd code
2010-09-09 07:17:17 -07:00
Jouni Malinen
b22128efdc
P2P: Add initial version of P2P Module
2010-09-09 07:17:17 -07:00
Jouni Malinen
c2af2afb3b
P2P: Preparations for adding P2P IE into Beacon/Probe Response frames
2010-09-09 07:17:17 -07:00
Jouni Malinen
b305c684b8
P2P: Save a copy of P2P IE(s) data from (Re)Association Request
2010-09-09 07:17:17 -07:00
Jouni Malinen
046b26a24e
nl80211: Add P2P operations
2010-09-09 07:17:17 -07:00
Jouni Malinen
2883205ec8
driver_test: Add functionality for allowing P2P testing
2010-09-09 07:17:17 -07:00
Jouni Malinen
75bde05d53
P2P: Add driver operations for P2P use
2010-09-09 07:17:16 -07:00
Jouni Malinen
62281bc690
P2P: Do no process Probe Request with P2P wildcard SSID in WPS
...
The Probe Request frames used in P2P Device Discovery should not be
processed by the WPS implementation.
2010-09-09 07:17:16 -07:00
Jouni Malinen
935a948f97
P2P: Enable use of WPS Requested Device Type without WPS 2.0
2010-09-09 07:17:16 -07:00
Jouni Malinen
63675def6e
P2P: Add Device Name into WPS IE in Probe Request frames
2010-09-09 07:17:16 -07:00
Jouni Malinen
91a9464528
Make IEEE 802.11 IE parser aware of P2P IE
...
This does not handle fragmented IEs and is only used to check quickly
whether the IE blob includes any P2P IE(s).
2010-09-09 07:17:16 -07:00
Jouni Malinen
dd6cc5a20c
P2P: Wi-Fi Direct frame format definitions
2010-09-09 07:17:16 -07:00
Jouni Malinen
fdc9eeb175
WPS 2.0: Convert new attributes into WFA vendor extension
...
The WSC 2.0 specification moved to use another design for the new
attributes to avoid backwards compatibility issues with some
deployed implementations.
2010-09-09 06:07:49 -07:00
Jouni Malinen
ac4dcaf7bf
WPS 2.0: Fix strict mode validation of UPnP MAC Address format
...
This was supposed to only reject the message from WPS 2.0 ER, not from
WPS 1.0 ER.
2010-09-09 06:07:49 -07:00
Jouni Malinen
42f50264c0
WPS: Make fragment size configurable for EAP-WSC peer
...
"wpa_cli set wps_fragment_size <val>" can now be used to configure the
fragment size limit for EAP-WSC.
2010-09-09 06:07:49 -07:00
Jouni Malinen
ecece754db
WPS: Add more debug prints for authorized MACs operations
2010-09-09 06:07:49 -07:00
Jouni Malinen
498cdee0c7
WPS ER: Use PBC overlap detection
...
ER should follow same rules as internal Registrar in an AP for
session overlap detection.
2010-09-09 06:07:49 -07:00
Jouni Malinen
6a4477236e
WPS 2.0: Only reject Probe Request frames from WPS 2.0 devices
2010-09-09 06:07:49 -07:00
Jouni Malinen
e69b86b71d
WPS 2.0: By default, use strict validation reject only with WPS 2.0
2010-09-09 06:07:49 -07:00
Jouni Malinen
5fabd9fefb
WPS: Fix strict validation to mandate Network Index attribute
...
While this attribute is is now deprecated, it is still required
for backwards compatibility. Better check this if strict validation
is enabled.
2010-09-09 06:07:49 -07:00
Jouni Malinen
e6e25d37a3
WPS 2.0: Use strict validation of NewWLANEventMAC only with WPS 2.0
...
This avoids some testing issues with WPS 1.0 implementations while
maintaining strict validation for WPS 2.0 implementations.
2010-09-09 06:07:49 -07:00