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
dcf788d1a4
WPS: Fix configuration strings on config reload
...
Previously, freed memory could be used as device name (and other similar
parameters) when building WPS IE after SIGHUP.
2010-09-09 07:17:20 -07:00
Jouni Malinen
af8ab1ae97
P2P: Use 'Enrollee info' WPS request type in P2P scans
...
This avoids setting explicit Request-to-Enrollee request when
WPS 2.0 is used.
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
131cb37c2d
P2P: Allow pre-authorization of invitation to apply to src addr
...
For client-invites-device case, the pre-authorization of an invitation
to running group will need to allow Invitation Request from specified
address, too. This is for testing uses only.
2010-09-09 07:17:19 -07:00
Jouni Malinen
6d4747a9a2
Add P2P Interface Address into ctrl_iface status output
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
6e6963ea86
P2P: Add test mode for SD to force fragmented response
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
2a43101e48
P2P: Fix memory leak in SD service entries
...
Need to flush stored service entries when wpa_supplicant is being
terminated.
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
706887fc28
P2P: Stop early when processing not-persistent invitation result
2010-09-09 07:17:19 -07:00
Jouni Malinen
2e062d5d74
P2P: Fix Group ID in Invitation Request from active GO
...
Need to get P2P Device Address, not the Interface Address.
2010-09-09 07:17:19 -07:00
Jouni Malinen
108def931e
P2P: Add command for pre-authorizing an invitation to an active group
...
This is mainly designed for testing and allows p2p_connect join auth
to be used to accept a specific invitation to an active group that
may be received in the future.
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
ef922c4a34
P2P: Run a scan before provision discovery in p2p_connect join
...
This is needed to make sure we have fresh BSS information for the GO.
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
07a30a66c3
P2P: Do not schedule new remain-on-channel if waiting for drv event
...
The driver event for remain-on-channel may be delayed in a way that
allows management-frame-received event to be received before
wpa_supplicant knows that the driver is actually already on the
previously requested channel. We should not request a new
remain-on-channel to send a response to just a frame if we are waiting
for the driver to get to the same channel. Instead, just continue
waiting for the driver event.
2010-09-09 07:17:18 -07:00
Jouni Malinen
d6ae995057
P2P: Fix infinite loop on interface selection for Action frame TX
...
When the first wpa_supplicant interface is not the correct one for
transmitting an Action frame (e.g., P2P Presence Request frame
uses a group interface), the code got stuck in an infinite busy
loop. Fix the iteration to go through the interfaces properly.
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
df91238b54
P2P: wpa_qui-qt4: Add P2P functionality into the GUI
2010-09-09 07:17:18 -07:00
Jouni Malinen
4f338bea79
P2P: Document new control interface commands and events
2010-09-09 07:17:18 -07:00
Jouni Malinen
42f0101b4d
P2P: wpa_cli action calls for P2P group started/removed events
2010-09-09 07:17:18 -07:00
Jouni Malinen
57faa1cee8
wpa_cli: Add P2P commands
2010-09-09 07:17:18 -07:00
Jouni Malinen
9fdd0fada7
P2P: Add disassociation/deauthentication IE notifications
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
9bae1be0a1
P2P: Map driver events to P2P event notifications
2010-09-09 07:17:18 -07:00
Jouni Malinen
0c6b310e83
P2P: Show P2P info in ctrl_iface scan results
2010-09-09 07:17:18 -07:00
Jouni Malinen
d23bd8940f
P2P: Show P2P Device Address in wpa_cli status
2010-09-09 07:17:18 -07:00
Jouni Malinen
b563b3882e
P2P: Add control interface commands for P2P
2010-09-09 07:17:18 -07:00
Jouni Malinen
0817de904e
P2P: Optimize scan timeouts for group formation
2010-09-09 07:17:17 -07:00
Jouni Malinen
5f3a6aa0a4
P2P: Add P2P IE into (Re)Association Request frames
2010-09-09 07:17:17 -07:00
Jouni Malinen
0e65037c27
P2P: Add P2P IE into Probe Request frames
2010-09-09 07:17:17 -07:00
Jouni Malinen
f684e608af
P2P: Use PSK format in WPS Credential
2010-09-09 07:17:17 -07:00
Jouni Malinen
6e3f4b89ea
P2P: Let the driver wrapper know if association is for P2P group
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
fdadd5fe03
P2P: Do not register l2_packet on dedicated P2P device interface
2010-09-09 07:17:17 -07:00
Jouni Malinen
73e492693d
P2P: Add TODO note for Group Formation bit use in AP selection
2010-09-09 07:17:17 -07:00
Jouni Malinen
4c2c302893
P2P: Remove 802.11b rates from wpa_supplicant AP mode operations
...
TODO: do this only for P2P group interface
2010-09-09 07:17:17 -07:00