summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bluetooth: Offload config save functionality to btif threadSrinu Jella2015-12-181-3/+12
| | | | | | | | | | | | - Offload config save functionality to btif thread from timer thread as timer callback thread is critical in a2dp playback case. - If the timer callback thread is busy in config save due to IO operations, it may lead to a2dp audio choppy. CRs-Fixed: 937048 Change-Id: I5f185f3d610a581a734a2a7ae7f20b8a8a806e72
* Merge AU_LINUX_ANDROID_LA.BF.1.1.3_RB1.06.00.00.181.005 on remote branchLinux Build Service Account2015-12-180-0/+0
|\ | | | | | | Change-Id: I432268d8643cc8fa60b27f2c2abba0299f8d4d37
| * Bluetooth: Offload config save functionality to btif threadSrinu Jella2015-12-041-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | - Offload config save functionality to btif thread from timer thread as timer callback thread is critical in a2dp playback case. - If the timer callback thread is busy in config save due to IO operations, it may lead to a2dp audio choppy. CRs-Fixed: 937048 Change-Id: I5f185f3d610a581a734a2a7ae7f20b8a8a806e72
| * Merge "Bluetooth: Free hash map entry to avoid memory leak" into ↵Linux Build Service Account2015-12-042-0/+9
| |\ | | | | | | | | | LA.BF.1.1.3_rb1.5
| | * Bluetooth: Free hash map entry to avoid memory leakSrinu Jella2015-12-042-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Free the hash map entry to avoid memory leak from allocation tracker. - Allocation tracker has support for double free check where it stores all allocations in hash map but it never get removed to track double free issue. - And this implementation is available in user debug builds only. CRs-Fixed: 935097 Change-Id: If57bd0b89c1d9b99c4f066c537a9e0fa49bc093f
| * | Bluetooth: Boost timer callback thread priority to highSrinu Jella2015-12-043-0/+30
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | - Boost timer callback thread priority to high for getting alarm callback with priority during a2dp music playback. - Media task/btu/hci/event threads are all high priority but actual callback thread is remaining normal which mean it's possible not to schedule alarm callback in-time if system is busy. CRs-Fixed: 935097 Change-Id: I10dff46af800d55f0e816353a0f39cfe3150d22f
| * Merge AU_LINUX_ANDROID_LA.BF.1.1.3_RB1.06.00.00.181.003 on remote branchLinux Build Service Account2015-12-040-0/+0
| |\ | | | | | | | | | Change-Id: I2d5cb97ca5d56b0d606d8c5ade69ac852251d97d
| | * Merge "Avoid indications/notifications without clcb allocation" into ↵Linux Build Service Account2015-11-171-3/+5
| | |\ | | | | | | | | | | | | LA.BF.1.1.3_rb1.4
| | | * Avoid indications/notifications without clcb allocationNitin Arora2015-11-171-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is specifically for certain HOGP device which start sending notifications immidiately on repairing, even before the HH profile connection is made. The check here, prevents the processing of notification/indication sent to the DUT before channel control block is allocated for the specific remote device so that the remote HID device is not stuck in connecting state due to HOGP state machine unable to proceed from the profile connection initiation state. CRs-Fixed: 936100 Change-Id: I77a1a39ea7f1d1344cfcf0fefe1fc0e28c213b60
| | * | Bluetooth: Offload config save functionality to btif threadSrinu Jella2015-11-171-3/+12
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Offload config save functionality to btif thread from timer thread as timer callback thread is critical in a2dp playback case. - If the timer callback thread is busy in config save due to IO operations, it may lead to a2dp audio choppy. CRs-Fixed: 937048 Change-Id: I5f185f3d610a581a734a2a7ae7f20b8a8a806e72
| | * Merge AU_LINUX_ANDROID_LA.BF.1.1.3_RB1.06.00.00.181.002 on remote branchLinux Build Service Account2015-11-170-0/+0
| | |\ | | | | | | | | | | | | Change-Id: If4ba26060718544833b9838e290570ad9f36d734
| | | * Bluetooth: Add support to read BD address from bt_nv.binSrinu Jella2015-10-241-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add support to read BD address from bt_nv.bin if no other BD address is available from other mechanism. - If the ro.boot.btmacaddr property is set, it will prioritize this property over bt_nv.bin. CRs-Fixed: 921979 Change-Id: I8a0d38be7adb93db95eb3618a8f6af4030adf373
* | | | Disable opening network debug ports for security reasonsPavlin Radoslavov2015-11-263-1/+28
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default, we open up to three TCP ports that are used for debugging purpose: * TCP port 8872 - used for forwarding btsnoop logs at real time Note: the port is open only if "Bluetooth HCI snoop log" is enabled in the Developer options * TCP port 8873 - used for HCI debugging * TCP port 8879 - used for debugging the Bluetooth counters Those ports are disabled by default. To enable, the following #define should be added at the top of the corresponding file(s): btcore/src/counter.c hci/src/btsnoop_net.c hci/src/hci_inject.c #define BT_NET_DEBUG TRUE Bug: 24371736 Change-Id: I5cb43af1a5d29c331eb5ef61a24dccbe95df6f40 (cherry picked from commit 74dad51510f7d7b05c6617ef88168bf0bbdf3fcd)
* / / Avoid indications/notifications without clcb allocationNitin Arora2015-11-121-3/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | This change is specifically for certain HOGP device which start sending notifications immidiately on repairing, even before the HH profile connection is made. The check here, prevents the processing of notification/indication sent to the DUT before channel control block is allocated for the specific remote device so that the remote HID device is not stuck in connecting state due to HOGP state machine unable to proceed from the profile connection initiation state. CRs-Fixed: 936100 Change-Id: I77a1a39ea7f1d1344cfcf0fefe1fc0e28c213b60
* | Merge "Bluetooth: Correct the max sdu length used from BT-IF layer"Linux Build Service Account2015-11-081-1/+3
|\ \
| * | Bluetooth: Correct the max sdu length used from BT-IF layerSrinu Jella2015-11-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Correct the max sdu length used from BT-IF layer to be in sync with max sdu calculation from L2cap layer. - max sdu of l2cap layer will be communicated to the upper layers, and same length of sdu being sent from upper layer to BT-IF layer, but because of change in the max sdu of BT-IF, it will receive less bytes than expected will lead to form incomplete PUT request. CRs-Fixed: 932092 Change-Id: Ie037c85e798bebf6a71c56488aae37455725028c
* | | Merge "Bluetooth: Enable scan refresh notificatons for ScPP profile"Linux Build Service Account2015-11-071-2/+9
|\ \ \
| * | | Bluetooth: Enable scan refresh notificatons for ScPP profileSatish kumar sugasi2015-11-031-2/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds support for enable notification of scan refresh value if remote device supports scan parameter services .this also writes scan parameters to remote device whenever scan service client receives notification of scan refresh. CRs-Fixed: 736989 Change-Id: I3e41976cdb1f7fa952e53e33f90d52320d5808f4
* | | Merge "Prevents rejection of valid max connection interval parameter update ↵Linux Build Service Account2015-11-071-0/+3
|\ \ \ | | | | | | | | | | | | requests"
| * | | Prevents rejection of valid max connection interval parameter update requestsPradeep Panigrahi2015-11-051-0/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Min connection interval is updated to BTM_BLE_CONN_INT_LIMIT(11.25 ms) if the requested min is < 11.25 ms. The L2CAP connection update request is rejected if max connection interval requested is < 11.25 ms since max connection interval becomes less than the min connection interval (11.25 ms) in the host logic in l2cble_process_sig_cmd fucntion. Hence, max connection interval parameter requests with 7.5 ms are rejected currently. CRs-fixed: 934966 Change-Id: I59afb07c9f8c1eb4cb1fc4c938710ec24761debb
* | | Merge "Revert "Fixed the problem that HCI command times out even without ↵Linux Build Service Account2015-11-072-5/+3
|\ \ \ | | | | | | | | | | | | pending command.""
| * | | Revert "Fixed the problem that HCI command times out even without pending ↵Srinu Jella2015-11-052-5/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | command." This reverts commit aafbaf8e5fac2f1dad163049e14f91302b525a9f Change-Id: I5b8d784ea82887d2092d1672e6d7712de68671ff
* | | Merge "Bluetooth: Corrected UUID parsing logic from config"Linux Build Service Account2015-11-071-0/+5
|\ \ \
| * | | Bluetooth: Corrected UUID parsing logic from configvenkata Jagadeesh2015-11-051-0/+5
| |/ / | | | | | | | | | | | | | | | | | | | | | As last uuid in the config file ignored as its not having trailing white space,this fix ensure to update all uuid while parsing from config to property. Change-Id: I35d6143d62aa4adcb4f32879726f810c4a0514e2
* | | Merge "Bluetooth: Free memory after event is processed"Linux Build Service Account2015-11-071-0/+2
|\ \ \
| * | | Bluetooth: Free memory after event is processedGaurav Asati2015-11-051-0/+2
| |/ / | | | | | | | | | | | | | | | | | | - Free memory after meta message event and browse message event are processed. Change-Id: I9ef1fd0ba46fd57f6e525c96a71e95fd524a2d95
* | | Merge "Bluetooth : GAP : Dont initiate role switch for blacklisted remotes"Linux Build Service Account2015-11-071-8/+39
|\ \ \
| * | | Bluetooth : GAP : Dont initiate role switch for blacklisted remotesvenkata Jagadeesh2015-11-041-8/+39
| |/ / | | | | | | | | | | | | | | | | | | | | | Don't initiate role switch for blacklisted remotes from DUT as some remotes always rejects role switch and role swicth retrails from DUT may lead to a2dp glitches Change-Id: I41bd78f1d25f1fc2985f1cf226a54d6819be968b
* / / Prevent BR/EDR conn/disconnection from changing LE link's Xmit quotaSubramanian Srinivasan2015-11-031-1/+1
|/ / | | | | | | | | | | | | | | | | | | BR/EDR connection and disconnection is currently adjusting the amount of packets each link(including LE) may send to the HCI without an ack coming back usign the function l2c_link_adjust_allocation. This change prevents the adjustment of LE link's link transmit quota when a BR/EDR connection or disconnection is done. Change-Id: I8ac78603de61c423447cd200e31ffc339bffe132
* | Merge "Bluetooth: Reset bluetooth status to download NVM tags"Linux Build Service Account2015-11-021-0/+8
|\ \
| * | Bluetooth: Reset bluetooth status to download NVM tagsSrinu Jella2015-10-301-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Reset bluetooth status to download the NVM tags once the SSR is detected. - NVM tags downloaded only once for the first BT on and downloaded again in case of SSR or command timeout. - Without this change, there would be diffrence in BD addr which would lead to pair/connection issues. CRs-Fixed: 932195 Change-Id: I75a44e7ae7d301ff1c9be8349c1b51d4c80cbf36
* | | Merge "Power Manager: Correcting sniff behaviour in multiconnection scenerio"Linux Build Service Account2015-11-021-1/+7
|\ \ \
| * | | Power Manager: Correcting sniff behaviour in multiconnection scenerioHemant Gupta2015-10-301-1/+7
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | When multiple profile connected on same link and if any one profile deregister with powermanager,pm should stop timer for that profile and restart other profile timers.But with out this fix,pm iniatites sniff when it removes timer for one profile,even timeout did not trigger for other profiles. Change-Id: I8e215a9d868291976c70ff32b61145b4360a7f8f
* | | Merge "Check for valid fd before closing the same."Linux Build Service Account2015-10-311-1/+2
|\ \ \
| * | | Check for valid fd before closing the same.Ayan Ghosh2015-10-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For Audio dump debug feature, dump file's validity is not checked before closing the same. This leads to crash when file could not be created properly. Change-Id: I2a53caa3f86e5fd43431e5421cb79e2f76d79884
* | | | Merge "Bluetooth: Dynamic ACL buffer allocation based on ACL Priority"Linux Build Service Account2015-10-312-0/+15
|\ \ \ \
| * | | | Bluetooth: Dynamic ACL buffer allocation based on ACL Prioritypramod kotreshappa2015-10-272-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. A2dp acl link priority is set to high once streaming starts 2. Allocation min 2 ACL bufferswq to high priority link CRs-fixed: 647447 Change-Id: I8f7742ae193998643ff2a12bf87f9874844ee0f7
* | | | | Merge "Bluetooth: Gap: Adding NULL check in HAL interface"Linux Build Service Account2015-10-301-1/+2
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Bluetooth: Gap: Adding NULL check in HAL interfaceBalraj Selvaraj2015-10-261-1/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the HCI_RAW_CMD support is included, adding NULL check for bt_hal_cbacks and hci_event_recv_cb in btif_hci_event_cback to avoid ASSERT message continuosly which is consuming more power. CRs-Fixed: 922611 Change-Id: I995e6411012fe515ca725267045a97076b692b7d
* | | | Merge "Bluetooth: Ignore unexpected notifications to cause disconnection"Linux Build Service Account2015-10-281-0/+7
|\ \ \ \
| * | | | Bluetooth: Ignore unexpected notifications to cause disconnectionNitin Arora2015-10-221-0/+7
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The GattIf = 1 and the corresponding callbacks struct gatt_profile_cback is specifically used for GATT protocol connections by the stack and additionally for handling the service change indication registration when pairing to a remote device. The operation callbacks received on this Id disconnects the remote device if any indication/notification is received while this process is ongoing. This patch ignores such events. Change-Id: I04273f6a1ab5e2d74f49687c9a70670e40db9d39
* | | | Merge "Bluetooth: Hogp fix for certification"Linux Build Service Account2015-10-271-0/+1
|\ \ \ \
| * | | | Bluetooth: Hogp fix for certificationSatish kumar sugasi2015-10-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this fixes crash during read client conf char descriptor value of remote which has multiple instances of hid. Change-Id: I88b6dbbb48037706e3b284450ffac88d7437fad1 CRs-Fixed: 726881
* | | | | Merge "Bluetooth: Add support to read BD address from bt_nv.bin"Linux Build Service Account2015-10-251-0/+81
|\ \ \ \ \
| * | | | | Bluetooth: Add support to read BD address from bt_nv.binSrinu Jella2015-10-211-0/+81
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add support to read BD address from bt_nv.bin if no other BD address is available from other mechanism. - If the ro.boot.btmacaddr property is set, it will prioritize this property over bt_nv.bin. CRs-Fixed: 921979 Change-Id: I8a0d38be7adb93db95eb3618a8f6af4030adf373
* | | | | Merge "Fixed the problem that HCI command times out even without pending ↵Linux Build Service Account2015-10-252-3/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | command."
| * | | | | Fixed the problem that HCI command times out even without pendingLuke Zhang2015-10-202-3/+5
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | command. Start the hci timer before sending out the HCI command, and protect the pending command queue with mutex. Also we set the length of the list as volatile. In this way, we can prevent the intervention between hci TX and RX threads. Change-Id: I8d2bcdb636b503344f173d3f8255f5a29b30aadb CRs-fixed: 926763
* | | | | Merge "Bluetooth: OSI: Immediately save bt_config file to NVRAM"Linux Build Service Account2015-10-253-0/+15
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Bluetooth: OSI: Immediately save bt_config file to NVRAMBalraj Selvaraj2015-10-203-0/+15
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix to avoid the "bt_config.conf" file corruption from the file system. This will avoid losing the paired information in some corner case, such as abrupt power off and on. This patch will ensure bt_config is saved to NVRAM. CRs-Fixed: 927450 Change-Id: I7a13feece1253681be97ca2c305463197b7f68d7
* | | | Merge "Bluetooth: Get RSSI information via tool bdt"Linux Build Service Account2015-10-231-2/+7
|\ \ \ \