aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add os_exec() helper to run external programsJouni Malinen2015-10-203-0/+68
| | | | | | Change-Id: I579af1fa8c2f85622ffddb186ba799dcb9ac4b6f Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Tested-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* P2P: Validate SSID element length before copying itJouni Malinen2015-10-171-0/+1
| | | | | | | | | | | | | | | | | | | | | This fixes a possible memcpy overflow for P2P dev->oper_ssid in p2p_add_device(). The length provided by the peer device (0..255 bytes) was used without proper bounds checking and that could have resulted in arbitrary data of up to 223 bytes being written beyond the end of the dev->oper_ssid[] array (of which about 150 bytes would be beyond the heap allocation) when processing a corrupted management frame for P2P peer discovery purposes. This could result in corrupted state in heap, unexpected program behavior due to corrupted P2P peer device information, denial of service due to process crash, exposure of memory contents during GO Negotiation, and potentially arbitrary code execution. Thanks to Google security team for reporting this issue and smart hardware research group of Alibaba security team for discovering it. Change-Id: I9f350f20cdd010f2c096514b245b4a901ad74e46 Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* Add capability flag for IBSS and get_capabiliy modesBruno Randolf2013-03-202-0/+6
| | | | | | | | | | Add a driver capability flag for drivers which support IBSS mode and set it for nl80211 drivers which have set the NL80211_IFTYPE_ADHOC. Add a new option "modes" to "get_capability" which will return "AP" and "IBSS" if the corresponding capability flags are set. Change-Id: I7991ae49b6ac6bc154d4edb0b01af774f4e8522c
* Fix regression in LEAPJouni Malinen2013-02-021-1/+4
| | | | | | | | | Commit 458cb3019108b6cb8c0c1cab94ae6ebf244eda27 broke LEAP since it rejects EAP-Success packet that is used within LEAP and this frame does not have a payload. Fix LEAP by relaxing the generic EAP packet validation if LEAP has been negotiated. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* nl80211: add ifndef on AP SME conditionEmerson Pinter2013-01-171-0/+2
| | | | | | | | The condition causes problems on driver initialization if the NL80211_ATTR_DEVICE_AP_SME is not available. Needs BOARD_NO_APSME_ATTR:=true. Change-Id: I88e91996d8e6a70f46a5a84d6540bf3d3b628ddd
* wext: Re-add support for SIGNAL_POLL and DRIVERRicardo Cerqueira2013-01-031-0/+7
| | | | | | | | Both of these are still used by JB, and wext wifi drivers have some weird behaviors without it (like a reported poor connection 100% of the time) Change-Id: I15339dbea4e15831465e2bb52b11675cb20dc34c
* Use legacy NL80211 STA events for older driversAndrew Dodd2012-12-151-3/+118
| | | | | | | | | | | | | | | | This allows tethering on devices with older bcmdhd drivers to be fixed. It conditionally reverts b638fe75d3cb9d21c67386173f10afe65053cc4d "nl80211: Use native cfg80211 sta events" for these boards. Use BOARD_LEGACY_NL80211_STA_EVENTS to enable this conditional revert. Forward-port to JB MR1, squashed in Steve Kondik's commit to handle additional changes. Change-Id: I4e436c57819944515455725cfd7ac7eeb31552ca
* Increase timeouts for p2pIrfan Sheriff2012-10-302-0/+20
| | | | | | | | | | | Dongles can be slow to respond and a quick turn around time on packets does not help. Allow for upto 350ms on retry attempts for provision discovery, negotiation and invitation This will catch slow responses within the first attempt and prevent any kind of issues with sequence number handling Bug: 7445415 Change-Id: I88a849d400b10f42ac298bad6d01f49803fcc8ba
* P2P: Improve robustness against lost ctrl::ackJouni Malinen2012-10-141-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Remove unnecessary channel list filteringIrfan Sheriff2012-09-254-92/+30
| | | | | | | | | | | | | | 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
* wpa_supplicant: P2P-related fixesDmitry Shmidt2012-09-255-15/+85
| | | | | | | | | | | | - 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: 7226065, 7231289 Change-Id: Iacb0f85d80f63bcdf311ccc0d29d0c282a0c0576 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wpa_supplicant: P2P-related fixesDmitry Shmidt2012-09-243-24/+46
| | | | | | | | | | | | | | | | | | | | | | | | - 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>
* Fix build: Add ANDROID_P2P for SCC interop fixesIrfan Sheriff2012-09-233-0/+24
| | | | Change-Id: I847b63428b47016cf9a9a0b090636e1d5b9d28b8
* GC channel fixes for better interop with SCCIrfan Sheriff2012-09-233-16/+79
| | | | | | | | | | | - 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
* wpa_supplicant: Update to 10-Sep-2012 TOTDmitry Shmidt2012-09-1311-66/+694
| | | | | | | | | | | 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>
* Merge "Revert "wpa_supplicant: Explicitly enable 802.11n and 802.11d for ↵Iliyan Malchev2012-09-101-8/+0
|\ | | | | | | qcwcn"" into jb-mr1-dev
| * Revert "wpa_supplicant: Explicitly enable 802.11n and 802.11d for qcwcn"Iliyan Malchev2012-09-101-8/+0
| | | | | | | | | | | | This reverts commit 5d03c02c2828db5e40f92774dc78903d69677b20 Change-Id: I27492d70600007f6a1230b166e03c7a47ad63788
* | wpa_supplicant: Update to 07-Sep-2012 TOTDmitry Shmidt2012-09-1024-1225/+1273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | AP: Configure basic rates from iface and not confArik Nemtsov2012-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | 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>
* | nl80211: Register read_sta_data() handler for station only buildsJouni Malinen2012-09-092-2/+10
| | | | | | | | | | | | | | | | | | 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>
* | wpa_supplicant: Update to 29-Aug-2012 TOTDmitry Shmidt2012-09-04152-1266/+6211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | wpa_supplicant: Update to BRCM version 0.8.0-37Dmitry Shmidt2012-08-242-4/+7
|/ | | | | | | | | | - 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>
* wpa_supplicant: Explicitly enable 802.11n and 802.11d for qcwcnJeff Johnson2012-08-221-0/+8
| | | | | | | | | 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
* wpa_supplicant: Update to BRCM version 0.8.0-36Dmitry Shmidt2012-08-172-0/+24
| | | | | Change-Id: Ic3f1375953f4a7c77d2208f8436d951889093397 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* nl80211: Clean nl80211_send_frame_cmd() functionDmitry Shmidt2012-08-101-2/+0
| | | | | Change-Id: I1753151ac1a7b6f7cf48112185342faea44e8327 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Minor cleaning to be closer to mainstreamJouni Malinen2012-08-092-7/+3
| | | | | Change-Id: I4aed30c59c549c2ce7488f12df4e68c6154f0ffe Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wpa_supplicant: Update to BRCM version 0.8.0-34Dmitry Shmidt2012-08-085-7/+39
| | | | | | | | - Remove interface priority - Add action parameter to service discovery functionality Change-Id: Ibc74c4053996e91f2f577b57695c68c86b5603c2 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Add PKTCNT_POLL command to get TX packet countersYuhao Zheng2012-08-031-0/+4
| | | | | | | - for the new WiFi watchdog - requires kernel support (see issue 6874044) Change-Id: Ibb59c1e0df6f5422814f2260588651e0e1490ccc
* am 27bf1073: Use SSL_OP_NO_TLSv1_1 SSL_OP_NO_TLSv1_2 SSL_OP_NO_TICKET for ↵Brian Carlstrom2012-07-261-0/+5
|\ | | | | | | | | | | | | better wpa_supplicant_8 interoperability * commit '27bf1073abe534644cc1146397082cc78873f516': Use SSL_OP_NO_TLSv1_1 SSL_OP_NO_TLSv1_2 SSL_OP_NO_TICKET for better wpa_supplicant_8 interoperability
| * Use SSL_OP_NO_TLSv1_1 SSL_OP_NO_TLSv1_2 SSL_OP_NO_TICKET for better ↵Brian Carlstrom2012-07-251-0/+5
| | | | | | | | | | | | | | | | | | | | wpa_supplicant_8 interoperability Bug: https://bugs.launchpad.net/ubuntu/+source/wpasupplicant/+bug/969343/comments/72 Bug: http://w1.fi/bugz/show_bug.cgi?id=447#c7 Bug: http://code.google.com/p/android/issues/detail?id=34212 Bug: 6883259 Change-Id: Ib53326cc8cd40e800454b7b92586c052bc910ba8
* | wpa_supplicant: Update to 07-Jul-2012 TOTDmitry Shmidt2012-07-19121-1098/+5662
|/ | | | | | | | | | | commit a5ed45586c63ffd8f9d2b44e27c251d7bacbeaf4 Author: Jouni Malinen <j@w1.fi> Date: Sat Jul 7 13:01:45 2012 +0300 WPS SSDP: Fix socket leaks on error paths Change-Id: I0864aac7fc88fa2a60f5cca7d524b94363410c85 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Fix p2p service discoveryIrfan Sheriff2012-06-133-4/+100
| | | | | | | | - Fix listen timing to improve SD reliability - Fix SD packet scheduling Bug: 6629112 Change-Id: I01365279439116256372d019bdbfd4b2113bf2ce
* wpa_supplicant: nl80211: Fix message processingDmitry Shmidt2012-05-301-1/+2
| | | | | | | BUG: 6584268 Change-Id: Ib840d6b678a914be4e50d4916fecc1738b2b56f9 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wpa_supplicant: Update to Version 0.8.27 from BRCMDmitry Shmidt2012-05-304-0/+25
| | | | | | | | | | | | | | | | - Fix crash during TRUE pbc overlap - Fix p2p_stop_find event - Avoid race condition in GO-NEG process if both peers enter p2p_connect at the same time - Retry assoc immediately on ASSOC-REJECT. Previously assoc was retried on authentication timeout (which occurs after 10secs). Now on assoc reject, we cancel the auth timer and then initiate a assoc scan. BUG: 6543705, 6427094 Change-Id: I4489fb14b6cead069f0d14fcbb9e2224f790d77b Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wpa_supplicant: Update to Version 0.8.26 from BRCMDmitry Shmidt2012-05-022-10/+61
| | | | | | | | | | - Add interface command - Improve scan handling during P2P BUG: b/6324527, b/6427094 Change-Id: I4425f44d2a15de0725ba4a1b42cc56e10954b314 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* P2P: Clear P2P_DEV_SD_INFO when new wildcard SD query is addedIrfan Sheriff2012-04-111-0/+6
| | | | | | | | | Unlike the unicast SD queries, the queries directed to all peers depend on P2P_DEV_SD_INFO flag being cleared to allow the query to be sent to a peer that has previously replied to any SD query. Change-Id: I1ea3df2ea8df75af3b65d3ffa0c38658d3e3d1ef Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Revert "Fix service discovery add"Irfan Sheriff2012-04-111-9/+0
| | | | This reverts commit 40fa98b45e4e61fcf0cb9292fdf8882b0624bd35.
* Merge "P2P: Use P2P Device ID attribute if Device Info not available"Irfan Sheriff2012-04-061-5/+8
|\
| * P2P: Use P2P Device ID attribute if Device Info not availableIrfan Sheriff2012-04-061-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | The "BSS p2p_dev_addr=address" command uses p2p_parse_dev_addr() to figure out the P2P Device Address of the GO from scan results. This used to work only if the P2P IE was received from Probe Response frames since only those include the P2P Device Info attribute. Make this work with Beacon frames, too, by using P2P Device ID attribute if the P2P Device Info attribute is not present. Change-Id: I3f0a49c22ee02e8971edb9ecd033e74342c318c0 Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* | Fix service discovery addIrfan Sheriff2012-04-041-0/+9
|/ | | | Change-Id: If621eef6e7a16c83ae520650b8216a5f63488403
* Use keystore ENGINE for private key operationsKenny Root2012-03-211-0/+9
| | | | | | | | | | | | | The new keystore ENGINE is usable to perform private key operations when we can't get the actual private key data. This is the case when hardware crypto is enabled: the private key never leaves the hardware. Subsequently, we need to be able to talk to OpenSSL ENGINEs that aren't PKCS#11 or OpenSC. This just changes a few #define variables to allow us to talk to our keystore engine without having one of those enabled and without using a PIN. Change-Id: Iabab5077c3d167a1e13bc8ef8745dc59ad4d62f7
* nl80211: Use native cfg80211 sta eventsDmitry Shmidt2012-03-201-111/+17
| | | | | Change-Id: Id59cc4af50dbccd283db2ec3e7b0b6f8c2146e68 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Update to new version 0.8.22 from BRCMDmitry Shmidt2012-03-06381-3319/+2404
| | | | | | | | - Based on 0c01d65 : Ignore TX status for Data frames from not associated STA Change-Id: I2776ff8e292593f407bf5b9177640c512e06bf0d Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Update to new version 0.8.16 from BRCMDmitry Shmidt2012-01-24199-11010/+10662
| | | | | | | | | | Sync with main tree commit b8349523e460493fa0b4de36c689595109e45e91 Author: Neeraj Kumar Garg <neerajkg@broadcom.com> Date: Tue Dec 27 23:21:45 2011 +0200 P2P: Reject p2p_group_add if forced frequency is not acceptable Change-Id: Icb4541a371b05c270e80440d7a7fdea7f33ff61e Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Revert "nl80211: Prolong HANGED message to the wifi manager"Dmitry Shmidt2011-12-191-10/+1
| | | | This reverts commit 6dd24fc3792d71edccef9b09140f9a44b063a553.
* Set ANDROID_LOG_NAME depending on applicationDmitry Shmidt2011-09-301-1/+5
| | | | | Change-Id: I8ef6f87c92b01a089817a4902d33bf5d0c3a5a7a Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* am fc41cadc: nl80211: Add get_noa() support for WFD certification (BRCM)Dmitry Shmidt2011-09-283-2/+13
|\ | | | | | | | | * commit 'fc41cadcff448cdd2b60e376fc6e7378e2e57b5e': nl80211: Add get_noa() support for WFD certification (BRCM)
| * nl80211: Add get_noa() support for WFD certification (BRCM)Dmitry Shmidt2011-09-283-2/+13
| | | | | | | | | | | | | | BUG: b/5367351 Change-Id: I14ed79e10ade205c5dd4cdc0d2e888ed1279d1bb Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | WEXT: Add signal_poll command supportDmitry Shmidt2011-09-271-0/+2
|/ | | | | Change-Id: I9e407905ecde20d745acd41ec48d2e9f7ce84bca Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* nl80211: Fix WFD and WPS certification problem for GO (BRCM)Dmitry Shmidt2011-09-271-32/+47
| | | | | Change-Id: I5bbac818aad7c0a14fddb3beb88a6a2d87c07ea0 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>