OSDN Git Service

android-x86/external-wpa_supplicant_8.git
11 years agoam 12b1cd9e: Support conc_pref when use_p2p_group_interface=0
Jeff Johnson [Wed, 17 Oct 2012 21:13:09 +0000 (14:13 -0700)]
am 12b1cd9e: Support conc_pref when use_p2p_group_interface=0

* commit '12b1cd9e151d1e5c4d35aa38531f38b4ef5cc805':
  Support conc_pref when use_p2p_group_interface=0

11 years agoSupport conc_pref when use_p2p_group_interface=0
Jeff Johnson [Mon, 8 Oct 2012 02:34:24 +0000 (19:34 -0700)]
Support conc_pref when use_p2p_group_interface=0

The original implementation of wpas_p2p_handle_frequency_conflicts()
only works correctly when P2P groups use a separate interface
(i.e. use_p2p_group_interface=1).  Update the implementation so
that it also works when the device interfaces is used
(i.e. use_p2p_group_interface=0).

Bug: 7290509
Change-Id: Icbc489125c5b7bd6e174d6aecd53555cdc9ad99d

11 years agoam 81931b8b: Increase channel delay to 100ms
Irfan Sheriff [Wed, 17 Oct 2012 05:55:47 +0000 (22:55 -0700)]
am 81931b8b: Increase channel delay to 100ms

* commit '81931b8bb302c38828763358f9e15af2b22c52c6':
  Increase channel delay to 100ms

11 years agoIncrease channel delay to 100ms
Irfan Sheriff [Wed, 17 Oct 2012 04:40:46 +0000 (21:40 -0700)]
Increase channel delay to 100ms

There is an inherent flaw in the p2p protocol design where an ACK loss right
before channel switch leads to peers being out of sync.

A work around of 50ms was added persistent case, but it turns out in heavy lossy
conditions that is not enough. Increase it to 100ms.

Experimental evaluation showed 100ms improves the reliability of p2p persistence
reinvocation.

Bug: 7359500
Change-Id: I73ab1b64e32b87101e95b0e487c90818c2c0aaf3

11 years agoam 2c5b17df: P2P: Improve robustness against lost ctrl::ack
Jouni Malinen [Sun, 14 Oct 2012 20:04:12 +0000 (13:04 -0700)]
am 2c5b17df: P2P: Improve robustness against lost ctrl::ack

* commit '2c5b17df4c29abdf11a85216c2f6272af796c576':
  P2P: Improve robustness against lost ctrl::ack

11 years agoP2P: Improve robustness against lost ctrl::ack
Jouni Malinen [Sun, 14 Oct 2012 04:52:46 +0000 (21:52 -0700)]
P2P: Improve robustness against lost ctrl::ack

P2P includes two use cases where one of the devices is going to start a
group and likely change channels immediately after processing a frame.
This operation may be fast enough to make the device leave the current
channel before the peer has completed layer 2 retransmission of the
frame in case the ctrl::ack frame was lost. This can result in the peer
not getting TX status success notification.

For GO Negotiation Confirm frame, p2p_go_neg_conf_cb() has a workaround
that ignores the TX status failure and will continue with the group
formation with the assumption that the peer actually received the frame
even though we did not receive ctrl::ack. For Invitation Response frame
to re-invoke a persistent group, no such workaround is used in
p2p_invitation_resp_cb(). Consequently, TX status failure due to lost
ctrl::ack frame results in one of the peers not starting the group.

Increase the likelihood of layer 2 retransmission getting acknowledged
and ctrl::ack being received by waiting a short duration after having
processed the GO Negotiation Confirm and Invitation Response frames for
the re-invocation case. For the former, use 20 ms wait since this case
has been worked around in deployed devices. For the latter, use 50 ms
wait to get even higher likelihood of getting ctrl::ack through since
deployed devices (and the current wpa_supplicant implementation) do not
have a workaround to ignore TX status failure.

20 ms is long enough to include at least couple of retries and that
should increase likelihood of getting ctrl::ack through quite a bit. The
longer 50 ms wait is likely to include full set of layer 2 retries.

Bug: 7282991
Change-Id: If063895046ff42fb52579bfb386281085bedce58
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

11 years agoam 9d712833: P2P: Fix network removal to select correct block
Jouni Malinen [Fri, 5 Oct 2012 18:37:16 +0000 (11:37 -0700)]
am 9d712833: P2P: Fix network removal to select correct block

* commit '9d71283328fbad680cc74d9b287580e373eb4d6c':
  P2P: Fix network removal to select correct block

11 years agoP2P: Fix network removal to select correct block
Jouni Malinen [Fri, 5 Oct 2012 18:01:57 +0000 (11:01 -0700)]
P2P: Fix network removal to select correct block

If wpa_s->current_ssid is not set (e.g., after disconnection that
did not result in immediate group removal), an incorrect group could
have been removed since the network block iteration here could select
the network block that is used to store persistent group credentials.
Fix this by verifying that disabled != 2 to avoid picking the network
block that could not have been the temporary P2P group.

Bug: 7290511
Change-Id: Ia61bab3e11137ab2c0c34014e4d8d8bdee2a0469

11 years agoam adddfc48: P2P: Fix p2p_cancel processing during group formation
Jouni Malinen [Wed, 3 Oct 2012 23:28:53 +0000 (16:28 -0700)]
am adddfc48: P2P: Fix p2p_cancel processing during group formation

* commit 'adddfc48d2d7bfa2b1a2405ab8f404b6383ec236':
  P2P: Fix p2p_cancel processing during group formation

11 years agoP2P: Fix p2p_cancel processing during group formation
Jouni Malinen [Wed, 3 Oct 2012 21:31:41 +0000 (14:31 -0700)]
P2P: Fix p2p_cancel processing during group formation

The wpa_s->p2p_in_provisioning flag did not get cleared in some cases
where p2p_cancel command is used to stop group formation. This can result
in some operations (like p2p_find) failing afterwards. Fix this by using
wpas_group_formation_completed() when processing p2p_cancel for a group
that has not yet completed group formation.

Bug: 7280743
Change-Id: I2dea935bd7c0509237de54bd048954f75ce80bfc
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agoam 069fa2c3: Remove unnecessary channel list filtering
Irfan Sheriff [Wed, 26 Sep 2012 21:28:49 +0000 (14:28 -0700)]
am 069fa2c3: Remove unnecessary channel list filtering

* commit '069fa2c39ec7120656a2ea8cca83c5ee41ddab60':
  Remove unnecessary channel list filtering

11 years agoRemove unnecessary channel list filtering
Irfan Sheriff [Tue, 25 Sep 2012 06:59:04 +0000 (23:59 -0700)]
Remove unnecessary channel list filtering

Operating channel is always set even without an STA connected. Remove
channel list filtering based on that.

Channel list is filtered in the p2p_connect and p2p_invite path based
on force_freq which is essentially the operating channel for STA

This patch helps fix WifiDirect b/w two android devices for SCC while at
the same time keeping channel compliance with WFD dongle

Bug: 7232932
Change-Id: Ie9524f9e45b6f997959c3359a81b05f63b576045

11 years agoam 91c40cdc: wpa_supplicant: P2P-related fixes
Dmitry Shmidt [Tue, 25 Sep 2012 21:49:51 +0000 (14:49 -0700)]
am 91c40cdc: wpa_supplicant: P2P-related fixes

* commit '91c40cdce17424d9a4718876becf0b7811cf68f2':
  wpa_supplicant: P2P-related fixes

11 years agowpa_supplicant: P2P-related fixes
Dmitry Shmidt [Tue, 25 Sep 2012 21:23:53 +0000 (14:23 -0700)]
wpa_supplicant: P2P-related fixes

- P2P: Show own channel list in debug log
- P2P: Allow peer to propose channel in invitation process
- P2P: Clear sta_scan_pending on group removal
- P2P: Fix ignoring of PD Response due to dialog token mismatch

BUG: 72260657231289

Change-Id: Iacb0f85d80f63bcdf311ccc0d29d0c282a0c0576
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoam aa532510: wpa_supplicant: P2P-related fixes
Dmitry Shmidt [Mon, 24 Sep 2012 19:01:22 +0000 (12:01 -0700)]
am aa532510: wpa_supplicant: P2P-related fixes

* commit 'aa532510a7b8c4da2d7d6e2c11dda5db840894e4':
  wpa_supplicant: P2P-related fixes

11 years agowpa_supplicant: P2P-related fixes
Dmitry Shmidt [Mon, 24 Sep 2012 17:35:31 +0000 (10:35 -0700)]
wpa_supplicant: P2P-related fixes

- Remove unused function warning in WPS-NFC case
- P2P: Fix p2p_ctrl_invite_persistent to parse peer parameter
- hostapd: Fix CONFIG_INTERWORKING=y build without CONFIG_HS20=y
- hostapd: Fix WDS VLAN bridge handling
- hostapd: Send EAPOL frames from the VO queue if WMM is active
- P2P: Remove channel 14 from supported P2P channels
- hostapd: Clear WLAN_STA_ASSOC_REQ_OK if sending the assoc response failed
- hostapd: Add check for the wds sta flag before creating 4addr VLANs
- nl80211: Use the monitor interface if socket tx status is not supported
- wpa_supplicant: Set state to DISCONNECTED on AP creation errors
- P2P: Fix p2p_group_idle in no-group-interface P2P client case
- P2P: Fix PSK configuration for GO network
- Print control interface commands in easier format
- Add debug print for no enabled networks case
- P2P: Add more debug prints for GO start routines
- P2P: Fix pending sta scan processing for concurrent operation cases

BUG: 6940646
Change-Id: I1b1c54a08c61ec4af2bfd2274afc93501004eea2

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoam f0619665: Fix build: Add ANDROID_P2P for SCC interop fixes
Irfan Sheriff [Mon, 24 Sep 2012 15:29:37 +0000 (08:29 -0700)]
am f0619665: Fix build: Add ANDROID_P2P for SCC interop fixes

* commit 'f06196652a3e12af00503f4a548c56d4e60f7246':
  Fix build: Add ANDROID_P2P for SCC interop fixes

11 years agoam af84a575: GC channel fixes for better interop with SCC
Irfan Sheriff [Mon, 24 Sep 2012 15:29:37 +0000 (08:29 -0700)]
am af84a575: GC channel fixes for better interop with SCC

* commit 'af84a575044f6556994fcc124a955fc0ac0a6736':
  GC channel fixes for better interop with SCC

11 years agoFix build: Add ANDROID_P2P for SCC interop fixes
Irfan Sheriff [Mon, 24 Sep 2012 02:11:37 +0000 (19:11 -0700)]
Fix build: Add ANDROID_P2P for SCC interop fixes

Change-Id: I847b63428b47016cf9a9a0b090636e1d5b9d28b8

11 years agoGC channel fixes for better interop with SCC
Irfan Sheriff [Sat, 22 Sep 2012 23:59:30 +0000 (16:59 -0700)]
GC channel fixes for better interop with SCC

- Force operating channel as the only channel in channel list attribute for go negotiation
and persistence
- Force an operating channel in go negotiation response even if the GO indicates a different
in negotiation request
- Fix a bug with updating peer operating channel based on GO negotiation confirm

Bug: 7217600
Change-Id: I6da0dc1a49c1d99ae97dcab8ee9899e07a80a6cb

11 years agoam 89ca702e: Do not inform other virtual interfaces of scan results in all cases
Jouni Malinen [Fri, 14 Sep 2012 21:30:01 +0000 (14:30 -0700)]
am 89ca702e: Do not inform other virtual interfaces of scan results in all cases

* commit '89ca702e8ed3247d7007dbdebe531036671c34af':
  Do not inform other virtual interfaces of scan results in all cases

11 years agoam fa08f9eb: P2P: Schedule new scan if P2P operation delays scan
Jouni Malinen [Fri, 14 Sep 2012 21:13:57 +0000 (14:13 -0700)]
am fa08f9eb: P2P: Schedule new scan if P2P operation delays scan

* commit 'fa08f9eb31989e0973eb8ed0bd14c238be19ab0b':
  P2P: Schedule new scan if P2P operation delays scan

11 years agoam 043a5a9d: P2P: Check all interfaces for pending scan for p2p_scan failures
Jouni Malinen [Fri, 14 Sep 2012 21:13:56 +0000 (14:13 -0700)]
am 043a5a9d: P2P: Check all interfaces for pending scan for p2p_scan failures

* commit '043a5a9d2586bf379a3f3e811c8c64d92050e131':
  P2P: Check all interfaces for pending scan for p2p_scan failures

11 years agoam dc7b7132: P2P: Move p2p_cb_on_scan_complete to global context
Jouni Malinen [Fri, 14 Sep 2012 21:13:56 +0000 (14:13 -0700)]
am dc7b7132: P2P: Move p2p_cb_on_scan_complete to global context

* commit 'dc7b71324df9788e194745e8ab9386a4619a623a':
  P2P: Move p2p_cb_on_scan_complete to global context

11 years agoDo not inform other virtual interfaces of scan results in all cases
Jouni Malinen [Fri, 14 Sep 2012 20:03:12 +0000 (13:03 -0700)]
Do not inform other virtual interfaces of scan results in all cases

If a connection operation is started on an interface based on scan
results, other virtual interfaces should not be information about the
results to avoid potential concurrent operations during the association
steps. Since the sibling notification of scan results received was added
as an optimization, skipping it for this type of cases is the simplest
way of avoiding unnecessary concurrent operations.

Change-Id: I145b4237074a97cc75fd68933fff7ed99b850630
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoP2P: Schedule new scan if P2P operation delays scan
Jouni Malinen [Fri, 14 Sep 2012 01:05:55 +0000 (18:05 -0700)]
P2P: Schedule new scan if P2P operation delays scan

This makes sure that the interrupted station mode scan can be completed
after the P2P operations have had their chance of using the radio.

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

11 years agoP2P: Check all interfaces for pending scan for p2p_scan failures
Jouni Malinen [Fri, 14 Sep 2012 01:03:14 +0000 (18:03 -0700)]
P2P: Check all interfaces for pending scan for p2p_scan failures

Driver could reject the new scan based on any virtual interface
running a concurrent scan. As such, mark the pending scan callback
for P2P based on any interfaces instead of just the one used for
the p2p_scan operation.

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

11 years agoP2P: Move p2p_cb_on_scan_complete to global context
Jouni Malinen [Fri, 14 Sep 2012 19:53:47 +0000 (12:53 -0700)]
P2P: Move p2p_cb_on_scan_complete to global context

Since we have a global P2P module, the flag to trigger scan completion
events to it needs to be in similar context. The previous design
maintained this separately for each virtual interface and if P2P module
did not run its scan operation on the virtual interface that completed
the scan, P2P module would not be allowed to restart operations
properly.

Change-Id: I1b5a55c03aede15bbe0ac70dcbe0011a90f69b20
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoam 5887a9d5: wpa_supplicant: Skip unnecessary scan attempts
Dmitry Shmidt [Fri, 14 Sep 2012 18:27:02 +0000 (11:27 -0700)]
am 5887a9d5: wpa_supplicant: Skip unnecessary scan attempts

* commit '5887a9d552f3d9d612011daba073e076daab5b2a':
  wpa_supplicant: Skip unnecessary scan attempts

11 years agowpa_supplicant: Skip unnecessary scan attempts
Dmitry Shmidt [Fri, 14 Sep 2012 17:47:43 +0000 (10:47 -0700)]
wpa_supplicant: Skip unnecessary scan attempts

Change-Id: Ieea8843c0fcb063dbb1df56e5cdf3fbdd0590cd4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoam 9bce59c7: wpa_supplicant: Update to 10-Sep-2012 TOT
Dmitry Shmidt [Fri, 14 Sep 2012 17:47:37 +0000 (10:47 -0700)]
am 9bce59c7: wpa_supplicant: Update to 10-Sep-2012 TOT

* commit '9bce59c7fef20e34a05f04d1e33a4076083dca0c':
  wpa_supplicant: Update to 10-Sep-2012 TOT

11 years agowpa_supplicant: Update to 10-Sep-2012 TOT
Dmitry Shmidt [Tue, 11 Sep 2012 22:06:38 +0000 (15:06 -0700)]
wpa_supplicant: Update to 10-Sep-2012 TOT

commit 762b99db7a76803d1ad274e87caa6fe870d47441
Author: Jouni Malinen <j@w1.fi>
Date:   Mon Sep 10 12:33:29 2012 +0200

    Fix last_scan_res update existing BSS entry is update

Change-Id: I03f933bf6d7f7e36b0f8ac410fbc37990f127c18
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoam 2b380488: P2P: Skip join in case of provision discovery failure
Dmitry Shmidt [Thu, 13 Sep 2012 18:14:30 +0000 (11:14 -0700)]
am 2b380488: P2P: Skip join in case of provision discovery failure

* commit '2b380488c6b5d21e54e98397c7a8d6a9f16dd8b5':
  P2P: Skip join in case of provision discovery failure

11 years agoam 07f427a8: wpa_supplicant: Fix P2P command processing
Dmitry Shmidt [Thu, 13 Sep 2012 18:14:29 +0000 (11:14 -0700)]
am 07f427a8: wpa_supplicant: Fix P2P command processing

* commit '07f427a83c1bd048f8c4b6515d45f81e96877e37':
  wpa_supplicant: Fix P2P command processing

11 years agoP2P: Skip join in case of provision discovery failure
Dmitry Shmidt [Thu, 13 Sep 2012 17:52:13 +0000 (10:52 -0700)]
P2P: Skip join in case of provision discovery failure

Change-Id: I46cb3d2f17a45bf0ff62697040602334b818d805
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agowpa_supplicant: Fix P2P command processing
Dmitry Shmidt [Thu, 13 Sep 2012 17:39:48 +0000 (10:39 -0700)]
wpa_supplicant: Fix P2P command processing

Change-Id: Ib2e811513be7b05178e310040f7cae14cb425421
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoam f4f5db31: wpa_supplicant: Improve scan during p2p_find
Dmitry Shmidt [Tue, 11 Sep 2012 21:47:52 +0000 (14:47 -0700)]
am f4f5db31: wpa_supplicant: Improve scan during p2p_find

* commit 'f4f5db315918f3f048324ea43dc37a3b0fb31ecc':
  wpa_supplicant: Improve scan during p2p_find

11 years agowpa_supplicant: Improve scan during p2p_find
Dmitry Shmidt [Tue, 11 Sep 2012 21:36:56 +0000 (14:36 -0700)]
wpa_supplicant: Improve scan during p2p_find

Change-Id: I733b23c2b7a24cfa96fe6593adbcbeb7d0798002
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoam 5a85f720: Merge "clear wfd_dev_info_hex before use" into jb-mr1-dev
Irfan Sheriff [Tue, 11 Sep 2012 17:19:13 +0000 (10:19 -0700)]
am 5a85f720: Merge "clear wfd_dev_info_hex before use" into jb-mr1-dev

* commit '5a85f720c8e43866880fdf9446dc5ad9f45e9091':
  clear wfd_dev_info_hex before use

11 years agoMerge "clear wfd_dev_info_hex before use" into jb-mr1-dev
Irfan Sheriff [Tue, 11 Sep 2012 17:17:37 +0000 (10:17 -0700)]
Merge "clear wfd_dev_info_hex before use" into jb-mr1-dev

11 years agoclear wfd_dev_info_hex before use
Irfan Sheriff [Tue, 11 Sep 2012 15:58:24 +0000 (08:58 -0700)]
clear wfd_dev_info_hex before use

Change-Id: Ic5cdb4df220834faf9e7da5cc1cc0a4191e6abd1

11 years agoam 9bc61e18: Merge "Revert "wpa_supplicant: Explicitly enable 802.11n and 802.11d...
Iliyan Malchev [Tue, 11 Sep 2012 00:15:18 +0000 (17:15 -0700)]
am 9bc61e18: Merge "Revert "wpa_supplicant: Explicitly enable 802.11n and 802.11d for qcwcn"" into jb-mr1-dev

* commit '9bc61e18ee9adc8511c55c6b6a3eca3dfd193e62':
  Revert "wpa_supplicant: Explicitly enable 802.11n and 802.11d for qcwcn"

11 years agoMerge "Revert "wpa_supplicant: Explicitly enable 802.11n and 802.11d for qcwcn""...
Iliyan Malchev [Tue, 11 Sep 2012 00:13:06 +0000 (17:13 -0700)]
Merge "Revert "wpa_supplicant: Explicitly enable 802.11n and 802.11d for qcwcn"" into jb-mr1-dev

11 years agoRevert "wpa_supplicant: Explicitly enable 802.11n and 802.11d for qcwcn"
Iliyan Malchev [Tue, 11 Sep 2012 00:12:53 +0000 (17:12 -0700)]
Revert "wpa_supplicant: Explicitly enable 802.11n and 802.11d for qcwcn"

This reverts commit 5d03c02c2828db5e40f92774dc78903d69677b20

Change-Id: I27492d70600007f6a1230b166e03c7a47ad63788

11 years agoam a2854abb: wpa_supplicant: Postpone P2P scan if usual scan is in progress
Dmitry Shmidt [Mon, 10 Sep 2012 23:31:27 +0000 (16:31 -0700)]
am a2854abb: wpa_supplicant: Postpone P2P scan if usual scan is in progress

* commit 'a2854abb63b41c123e4c78e5653a55d902f00be6':
  wpa_supplicant: Postpone P2P scan if usual scan is in progress

11 years agowpa_supplicant: Postpone P2P scan if usual scan is in progress
Dmitry Shmidt [Mon, 10 Sep 2012 23:15:47 +0000 (16:15 -0700)]
wpa_supplicant: Postpone P2P scan if usual scan is in progress

BUG: b/7137954

Change-Id: I64ef8dbb51c354b4cdebe490ffcd2cec07995939
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoam 4530cfd4: wpa_supplicant: Update to 07-Sep-2012 TOT
Dmitry Shmidt [Mon, 10 Sep 2012 16:28:07 +0000 (09:28 -0700)]
am 4530cfd4: wpa_supplicant: Update to 07-Sep-2012 TOT

* commit '4530cfd4d14a77c58e35393b91e40f8dd9d62697':
  wpa_supplicant: Update to 07-Sep-2012 TOT

11 years agowpa_supplicant: Update to 07-Sep-2012 TOT
Dmitry Shmidt [Sun, 9 Sep 2012 22:20:40 +0000 (15:20 -0700)]
wpa_supplicant: Update to 07-Sep-2012 TOT

commit 44256451130c4766e4a019162de17d0734444ee9
Author: Arik Nemtsov <arik@wizery.com>
Date:   Fri Sep 7 00:22:40 2012 +0300

    AP: Configure basic rates from iface and not conf

Skipped patches:
20ed5e40ba95440a1946cf2dffad3047fb620582
cf8baca6a5719f4f3257631e03317affee015417
a297201df15656dbb0f37e90f3410d9e8102c6fd
620c783753bddd37988269314862dc7e4a62f700

Change-Id: I857aa80af6d1a21b61f7c03a085e7dfc6066d61a
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoam 8367dc90: Add WFD dev info in device found event
Irfan Sheriff [Mon, 10 Sep 2012 00:14:23 +0000 (17:14 -0700)]
am 8367dc90: Add WFD dev info in device found event

* commit '8367dc909f536f600c7474582fe0a96bef7c78fc':
  Add WFD dev info in device found event

11 years agoAdd WFD dev info in device found event
Irfan Sheriff [Mon, 10 Sep 2012 00:08:19 +0000 (17:08 -0700)]
Add WFD dev info in device found event

Change-Id: If25804d41e7ea1d028a30c180290d8de547f43e8

11 years agoam 2d266067: AP: Configure basic rates from iface and not conf
Arik Nemtsov [Sun, 9 Sep 2012 21:23:48 +0000 (14:23 -0700)]
am 2d266067: AP: Configure basic rates from iface and not conf

* commit '2d266067893660e2a4b5f166a909ee8638a5c96a':
  AP: Configure basic rates from iface and not conf

11 years agoam 5c44edb0: P2P: Do not fail p2p_group_remove just based on current_ssid
Jouni Malinen [Sun, 9 Sep 2012 21:23:47 +0000 (14:23 -0700)]
am 5c44edb0: P2P: Do not fail p2p_group_remove just based on current_ssid

* commit '5c44edb00c9384534a1b50981071874436aaecd5':
  P2P: Do not fail p2p_group_remove just based on current_ssid

11 years agoam 31be0a4b: P2P: Allow p2p_invite-persistent to specify channel for GO
Jouni Malinen [Sun, 9 Sep 2012 21:22:20 +0000 (14:22 -0700)]
am 31be0a4b: P2P: Allow p2p_invite-persistent to specify channel for GO

* commit '31be0a4b946ecab910c0a9af3837dbccea5d204b':
  P2P: Allow p2p_invite-persistent to specify channel for GO

11 years agoAP: Configure basic rates from iface and not conf
Arik Nemtsov [Thu, 6 Sep 2012 21:22:40 +0000 (00:22 +0300)]
AP: Configure basic rates from iface and not conf

The conf doesn't contain any basic rates in some cases. Most notably,
when starting a P2P GO in 5 GHz. Use the iface rates which are
initialized in hostapd_prepare_rates() to the conf rates or set to
default values if no conf values exist. This fixes a bug introduced in
commit e5693c4775bae65faa960f80889f98b0a6cb2e1c.

Signed-hostap: Arik Nemtsov <arik@wizery.com>

11 years agoP2P: Do not fail p2p_group_remove just based on current_ssid
Jouni Malinen [Fri, 31 Aug 2012 18:35:32 +0000 (21:35 +0300)]
P2P: Do not fail p2p_group_remove just based on current_ssid

The wpa_s->current_ssid pointer may get cleared, e.g., when
disconnected. Commit 30ee769235f3170d9bf6b62c11c6e018e97deb84 made
wpas_p2p_group_delete() exit early before removing a P2P interface in
this type of case. That can cause number of issues from p2p_group_remove
command failing to busy loop when terminating wpa_supplicant if there is
a P2P group interface in client mode and that interface happens to be in
disconnected state. Fix these issues by allowing wpas_p2p_group_delete()
remove the P2P group interface regardless of whether wpa_s->currnt_ssid
is set.

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

11 years agoP2P: Allow p2p_invite-persistent to specify channel for GO
Jouni Malinen [Fri, 31 Aug 2012 18:20:51 +0000 (21:20 +0300)]
P2P: Allow p2p_invite-persistent to specify channel for GO

The freq and ht40 parameters can now be used with the p2p_invite
command when reinvoking a persistent group as the GO.

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

11 years agoam dee117d0: Merge "SME: Fix disconnec-while-authenticating" into jb-mr1-dev
Dmitry Shmidt [Sun, 9 Sep 2012 21:03:12 +0000 (14:03 -0700)]
am dee117d0: Merge "SME: Fix disconnec-while-authenticating" into jb-mr1-dev

* commit 'dee117d008719acfac082af3740349fc86629627':
  SME: Fix disconnec-while-authenticating

11 years agoam 37f5fa5a: Merge "Fix disconnection event processing" into jb-mr1-dev
Dmitry Shmidt [Sun, 9 Sep 2012 21:03:11 +0000 (14:03 -0700)]
am 37f5fa5a: Merge "Fix disconnection event processing" into jb-mr1-dev

* commit '37f5fa5a8706c16490dd841c280bc015f79d81da':
  Fix disconnection event processing

11 years agoMerge "SME: Fix disconnec-while-authenticating" into jb-mr1-dev
Dmitry Shmidt [Sun, 9 Sep 2012 21:01:23 +0000 (14:01 -0700)]
Merge "SME: Fix disconnec-while-authenticating" into jb-mr1-dev

11 years agoMerge "Fix disconnection event processing" into jb-mr1-dev
Dmitry Shmidt [Sun, 9 Sep 2012 21:01:00 +0000 (14:01 -0700)]
Merge "Fix disconnection event processing" into jb-mr1-dev

11 years agoam 164eea3a: Merge "Fix REMOVE_NETWORK to not run operations with invalid current_ssi...
Dmitry Shmidt [Sun, 9 Sep 2012 20:58:40 +0000 (13:58 -0700)]
am 164eea3a: Merge "Fix REMOVE_NETWORK to not run operations with invalid current_ssid" into jb-mr1-dev

* commit '164eea3ac2d53d1fecf20d76fd6b9f1920c17df4':
  Fix REMOVE_NETWORK to not run operations with invalid current_ssid

11 years agoam 8084af89: Merge "nl80211: Register read_sta_data() handler for station only builds...
Dmitry Shmidt [Sun, 9 Sep 2012 20:58:39 +0000 (13:58 -0700)]
am 8084af89: Merge "nl80211: Register read_sta_data() handler for station only builds" into jb-mr1-dev

* commit '8084af89d283ed015e28a5eb781726ae5e138cf0':
  nl80211: Register read_sta_data() handler for station only builds

11 years agoMerge "Fix REMOVE_NETWORK to not run operations with invalid current_ssid" into jb...
Dmitry Shmidt [Sun, 9 Sep 2012 20:57:57 +0000 (13:57 -0700)]
Merge "Fix REMOVE_NETWORK to not run operations with invalid current_ssid" into jb-mr1-dev

11 years agoMerge "nl80211: Register read_sta_data() handler for station only builds" into jb...
Dmitry Shmidt [Sun, 9 Sep 2012 20:57:09 +0000 (13:57 -0700)]
Merge "nl80211: Register read_sta_data() handler for station only builds" into jb-mr1-dev

11 years agoSME: Fix disconnec-while-authenticating
Jouni Malinen [Sat, 1 Sep 2012 14:20:27 +0000 (17:20 +0300)]
SME: Fix disconnec-while-authenticating

Commit 0d30cc240fa36905b034dc9676f9d8da0ac18e56 forced
wpa_s->current_ssid to be cleared in wpa_supplicant_mark_disassoc()
which gets called from wpa_supplicant_event_disassoc(). This broke SME
disassoc-while-authenticating workaround for cfg80211. Fix this by
restoring wpa_s->current_ssid in case SME authentication is in progress.

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

11 years agoFix disconnection event processing
Jouni Malinen [Fri, 31 Aug 2012 19:04:41 +0000 (22:04 +0300)]
Fix disconnection event processing

Commit 0d30cc240fa36905b034dc9676f9d8da0ac18e56 forced
wpa_s->current_ssid and wpa_s->key_mgmt to be cleared in
wpa_supplicant_mark_disassoc() which gets called from
wpa_supplicant_event_disassoc(). This broke IEEE 802.1X authentication
failure processing and P2P deauthentication notification (group
termination).

Fix this by splitting wpa_supplicant_event_disassoc() into two parts and
make wpas_p2p_deauth_notif() indicate whether the interface was removed.
If so, the last part of disassocition event processing is skipped. Since
the wpa_supplicant_mark_disassoc() call is in the second part, the above
mentioned issues are resolved. In addition, this cleans up the P2P group
interface removal case by not trying to use fast reconnection mechanism
just before the interface gets removed.

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

11 years agoFix REMOVE_NETWORK to not run operations with invalid current_ssid
Deepthi Gowri [Mon, 3 Sep 2012 08:55:38 +0000 (11:55 +0300)]
Fix REMOVE_NETWORK to not run operations with invalid current_ssid

If the REMOVE_NETWORK command is used to delete the currently connected
network, some operations were run between removing the network and
clearing of wpa_s->current_ssid. This left wpa_s->current_ssid pointing
to freed memory and should any operation end up using it before the
pointer gets cleared, freed memory could be references. Avoid this by
removing the network only after having completed the operations that
clear wpa_s->current_ssid.

Signed-hostap: Deepthi Gowri <deepthi@codeaurora.org>
intended-for: hostap-1

11 years agonl80211: Register read_sta_data() handler for station only builds
Jouni Malinen [Wed, 5 Sep 2012 14:07:03 +0000 (17:07 +0300)]
nl80211: Register read_sta_data() handler for station only builds

This driver_op can now be used in station mode, too, to fetch
information about the connection with the AP, so allow this to be used
even if wpa_supplicant is built without AP mode support.

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

11 years agoam 66bf9c42: (-s ours) am 26e08cb4: (-s ours) Reconcile with jb-mr0-release - do...
The Android Open Source Project [Fri, 7 Sep 2012 23:43:46 +0000 (16:43 -0700)]
am 66bf9c42: (-s ours) am 26e08cb4: (-s ours) Reconcile with jb-mr0-release - do not merge

* commit '66bf9c42970e42704a1618642662b9bc4997abfa':
  Fix 'restore STA reconnection behavior' cherry-pick
  Restore STA reconnection behavior

11 years agoam 26e08cb4: (-s ours) Reconcile with jb-mr0-release - do not merge
The Android Open Source Project [Fri, 7 Sep 2012 22:24:01 +0000 (15:24 -0700)]
am 26e08cb4: (-s ours) Reconcile with jb-mr0-release - do not merge

* commit '26e08cb4a4ab9f9bc5446f4b831dec1828331cba':
  Fix 'restore STA reconnection behavior' cherry-pick
  Restore STA reconnection behavior

11 years agoReconcile with jb-mr0-release - do not merge
The Android Open Source Project [Fri, 7 Sep 2012 22:21:12 +0000 (15:21 -0700)]
Reconcile with jb-mr0-release - do not merge

Change-Id: If17cb68d4590892767c5c9669b194c8c8cda68b6

11 years agoFix join for p2p_connect
Irfan Sheriff [Fri, 7 Sep 2012 01:30:39 +0000 (18:30 -0700)]
Fix join for p2p_connect

wps_pbc with interface command stripped out ends up as a null character.
Supplicant tries to interpret that as a bssid. Fix it to ignore null
character as empty bssid

Change-Id: Ic91d6657efaf03fbe5c4a03e9e630b4b3ff5dec4

11 years agoFix 'restore STA reconnection behavior' cherry-pick
Dmitry Shmidt [Tue, 4 Sep 2012 23:52:41 +0000 (16:52 -0700)]
Fix 'restore STA reconnection behavior' cherry-pick

BUG: b/6400311

Change-Id: I7b90ab9b5430b92e9e4e5702c3b1805a6bbc0b9a
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoRestore STA reconnection behavior
Irfan Sheriff [Mon, 18 Jun 2012 16:39:07 +0000 (09:39 -0700)]
Restore STA reconnection behavior

Have the customized retry behavior only for P2P & do group failure indication
beyond 5 retries

Bug: b/6674338, b/6910598, b/6400311
Change-Id: I58cba356ebdb7fc4eaa9bedfa417b7d5d35bb306

Conflicts:

wpa_supplicant/events.c

11 years agohostapd: Allow hostapd_cli to work on Android
Jeff Johnson [Tue, 4 Sep 2012 05:12:17 +0000 (22:12 -0700)]
hostapd: Allow hostapd_cli to work on Android

Add definitions of the Android specific directories used for control
interface sockets so that hostapd_cli can connect to the Android
hostapd.

Change-Id: Iabcd8d70ef61fae6656066991240d55e65a032e4

11 years agowpa_supplicant: Update to 29-Aug-2012 TOT
Dmitry Shmidt [Wed, 29 Aug 2012 23:22:06 +0000 (16:22 -0700)]
wpa_supplicant: Update to 29-Aug-2012 TOT

commit 6ffdc2f7bd496ace7a46e055f9714e7db4b1f722
Author: Jouni Malinen <jouni@qca.qualcomm.com>
Date:   Fri Mar 2 22:31:04 2012 +0200

    WFD: Add preliminary WSD request processing and response

    This commit does not yet address support for different device roles,
    i.e., the same set of subelements are returned regardless of which
    role was indicated in the request.

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

Change-Id: I9d63acce719b982c02e589bb59602382e82988c8
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agowpa_supplicant: Update to BRCM version 0.8.0-38
Dmitry Shmidt [Tue, 4 Sep 2012 18:06:50 +0000 (11:06 -0700)]
wpa_supplicant: Update to BRCM version 0.8.0-38

- Restore p2p_group_formation pointer till the 4-way handshake
  completes for the p2p client

Change-Id: I976659ae5dac4cf01ecdd7995ff9abb6bf914bc1
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoFix am cef482f8: merge
Dmitry Shmidt [Wed, 5 Sep 2012 00:21:12 +0000 (17:21 -0700)]
Fix am cef482f8: merge

Change-Id: I47a4610b40092d81a4d62e53a26924c4f9d05a17
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoam cef482f8: am 0531f204: Fix \'restore STA reconnection behavior\' cherry-pick
Dmitry Shmidt [Wed, 5 Sep 2012 00:04:57 +0000 (17:04 -0700)]
am cef482f8: am 0531f204: Fix \'restore STA reconnection behavior\' cherry-pick

* commit 'cef482f830a787f249e7719ffb7d45db19ba1feb':
  Fix 'restore STA reconnection behavior' cherry-pick

11 years agoam 0531f204: Fix \'restore STA reconnection behavior\' cherry-pick
Dmitry Shmidt [Wed, 5 Sep 2012 00:02:52 +0000 (17:02 -0700)]
am 0531f204: Fix \'restore STA reconnection behavior\' cherry-pick

* commit '0531f20404b2e284d1b444d5af48b6e0c629975b':
  Fix 'restore STA reconnection behavior' cherry-pick

11 years agoFix 'restore STA reconnection behavior' cherry-pick
Dmitry Shmidt [Tue, 4 Sep 2012 23:52:41 +0000 (16:52 -0700)]
Fix 'restore STA reconnection behavior' cherry-pick

BUG: b/6400311

Change-Id: I7b90ab9b5430b92e9e4e5702c3b1805a6bbc0b9a
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoam c5c02f1d: (-s ours) am a831bff7: Restore STA reconnection behavior
Irfan Sheriff [Tue, 4 Sep 2012 23:40:59 +0000 (16:40 -0700)]
am c5c02f1d: (-s ours) am a831bff7: Restore STA reconnection behavior

* commit 'c5c02f1d8a39ff95f2a01e1cee7daf3c0ade6dbe':
  Restore STA reconnection behavior

11 years agoam a831bff7: Restore STA reconnection behavior
Irfan Sheriff [Tue, 4 Sep 2012 23:32:08 +0000 (16:32 -0700)]
am a831bff7: Restore STA reconnection behavior

* commit 'a831bff72fa9e58cc9f71717f63c7649002e64fb':
  Restore STA reconnection behavior

11 years agoRestore STA reconnection behavior
Irfan Sheriff [Mon, 18 Jun 2012 16:39:07 +0000 (09:39 -0700)]
Restore STA reconnection behavior

Have the customized retry behavior only for P2P & do group failure indication
beyond 5 retries

Bug: b/6674338, b/6910598, b/6400311
Change-Id: I58cba356ebdb7fc4eaa9bedfa417b7d5d35bb306

Conflicts:

wpa_supplicant/events.c

11 years agoDebug-print command only in case of interface prefix
Dmitry Shmidt [Mon, 27 Aug 2012 22:01:35 +0000 (15:01 -0700)]
Debug-print command only in case of interface prefix

Change-Id: If0054e8f7f4ffb2d559207d8939235938ae19f18
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agowpa_supplicant: Update to BRCM version 0.8.0-37
Dmitry Shmidt [Sat, 25 Aug 2012 00:03:35 +0000 (17:03 -0700)]
wpa_supplicant: Update to BRCM version 0.8.0-37

- Allow AP_SME support
- Do not send disassoc after EAP failure since AP_SME is enabled
  and del_station will be called
- Allow group idle timeout to run during WPS disconnect

Change-Id: I7e9e15b9c44804196bc98c01d51a71e24412b91d
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agowpa_supplicant: Add bss_flush command to invalidate scan results
Dmitry Shmidt [Fri, 24 Aug 2012 18:14:44 +0000 (11:14 -0700)]
wpa_supplicant: Add bss_flush command to invalidate scan results

Change-Id: I1a6ebc4fe53e16909ac44e2d04a6b651993dae91
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agowpa_supplicant: Explicitly enable 802.11n and 802.11d for qcwcn
Jeff Johnson [Mon, 13 Aug 2012 23:56:18 +0000 (16:56 -0700)]
wpa_supplicant: Explicitly enable 802.11n and 802.11d for qcwcn

The Qualcomm qcwcn driver relies upon information from the supplicant
to enable 802.11n and 802.11d support.  Unfortunately there currently
does not exist configuration file parameters to control these items,
therefore hard code these in the supplicant.

Change-Id: Iaa586c58d96bd8966b47f6e18b627648df89c03e

11 years agoMerge "wpa_supplicant: Fix wpa_drv_pktcnt_poll() call" into jb-mr1-dev
Dmitry Shmidt [Wed, 22 Aug 2012 17:12:57 +0000 (10:12 -0700)]
Merge "wpa_supplicant: Fix wpa_drv_pktcnt_poll() call" into jb-mr1-dev

11 years agowpa_supplicant: Fix wpa_drv_pktcnt_poll() call
Dmitry Shmidt [Wed, 22 Aug 2012 00:27:22 +0000 (17:27 -0700)]
wpa_supplicant: Fix wpa_drv_pktcnt_poll() call

Change-Id: I265b095235890be623090272a81e67123ff86185
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoAdd support for Qualcomm qcwcn Wireless Connectivity solution
Jeff Johnson [Mon, 13 Aug 2012 23:54:58 +0000 (16:54 -0700)]
Add support for Qualcomm qcwcn Wireless Connectivity solution

Update the wpa_supplicant and hostapd makefiles to enable
ANDROID_P2P and ANDROID_QCOM_WCN conditional compilation
when the BOARD_WLAN_DEVICE is qcwcn.

Change-Id: I5d8216bdede6d6eb6613a83cda2c67c5eb7c2280

11 years agowpa_supplicant: Update to BRCM version 0.8.0-36
Dmitry Shmidt [Fri, 17 Aug 2012 23:22:31 +0000 (16:22 -0700)]
wpa_supplicant: Update to BRCM version 0.8.0-36

Change-Id: Ic3f1375953f4a7c77d2208f8436d951889093397
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoam 978afbdb: am 6f0634d6: Merge "Get rid of LOCAL_MODULE_TAGS := user"
Joe Onorato [Fri, 17 Aug 2012 07:12:14 +0000 (00:12 -0700)]
am 978afbdb: am 6f0634d6: Merge "Get rid of LOCAL_MODULE_TAGS := user"

* commit '978afbdbf1e4b5e950f419ad5c24d08cd7df1f6d':
  Get rid of LOCAL_MODULE_TAGS := user

11 years agoam 6f0634d6: Merge "Get rid of LOCAL_MODULE_TAGS := user"
Joe Onorato [Fri, 17 Aug 2012 06:55:55 +0000 (23:55 -0700)]
am 6f0634d6: Merge "Get rid of LOCAL_MODULE_TAGS := user"

* commit '6f0634d6c8d1b07cc281db15c1a63ec348ebada0':
  Get rid of LOCAL_MODULE_TAGS := user

11 years agoMerge "Get rid of LOCAL_MODULE_TAGS := user"
Joe Onorato [Fri, 17 Aug 2012 06:39:14 +0000 (23:39 -0700)]
Merge "Get rid of LOCAL_MODULE_TAGS := user"

11 years agoMerge "Add delimiter for bss command" into jb-mr1-dev
Irfan Sheriff [Mon, 13 Aug 2012 18:22:04 +0000 (11:22 -0700)]
Merge "Add delimiter for bss command" into jb-mr1-dev

11 years agoAdd delimiter for bss command
Irfan Sheriff [Mon, 13 Aug 2012 17:56:16 +0000 (10:56 -0700)]
Add delimiter for bss command

With the availability of MASK option, the number of lines per BSS is not obvious,
add a delimiter to make parsing less flaky

Bug: 2961159
Change-Id: I9e5523f8da183e0735dbc06f0c09c9f841060504

11 years agonl80211: Clean nl80211_send_frame_cmd() function
Dmitry Shmidt [Fri, 10 Aug 2012 20:46:14 +0000 (13:46 -0700)]
nl80211: Clean nl80211_send_frame_cmd() function

Change-Id: I1753151ac1a7b6f7cf48112185342faea44e8327
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoMinor cleaning to be closer to mainstream
Jouni Malinen [Thu, 9 Aug 2012 22:29:25 +0000 (15:29 -0700)]
Minor cleaning to be closer to mainstream

Change-Id: I4aed30c59c549c2ce7488f12df4e68c6154f0ffe
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agowpa_supplicant: Update to BRCM version 0.8.0-34
Dmitry Shmidt [Wed, 8 Aug 2012 17:56:33 +0000 (10:56 -0700)]
wpa_supplicant: Update to BRCM version 0.8.0-34

- Remove interface priority
- Add action parameter to service discovery functionality

Change-Id: Ibc74c4053996e91f2f577b57695c68c86b5603c2
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>