summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-08-11mac: only allow non recoverable errors to stall the MAC.android-t-qpr1-beta-2_r0.5android-t-qpr1-beta-2_r0.4android-gs-raviole-5.10-t-qpr1-beta-2android-gs-bluejay-5.10-t-qpr1-beta-2Clément Viel
Bug: 241137690 Change-Id: I0f5c250016205d8f505bb653810459e49688afb2 Signed-off-by: Clément Viel <clement.viel@qorvo.com>
2022-08-08mac: propagate and filter -ETIME errorandroid-t-qpr1-beta-1_r0.4android-t-qpr1-beta-1_r0.3android-gs-raviole-5.10-android13-qpr1-betaandroid-gs-bluejay-5.10-android13-qpr1-betaClément Viel
Filter llhw to avoid triggering useless DeviceStateError Bug: 241137690 Change-Id: Ic476f1cc9da39eb1afc71edd0188a3ad0abc5259 Signed-off-by: Clément Viel <clement.viel@qorvo.com>
2022-08-05mac: implement Provisioned STSJeremy Rocher
Bug: 231581242 Signed-off-by: Jeremy Rocher <jeremy.rocher@qorvo.com> Change-Id: I69b6108faeeca796e8cf3db5ec06dd26d4b99a84
2022-07-13dw3000: Fix end_dtu computationOthman BOUADJENAK
Avoid negative time values in power_stats when handling a timeout event Bug: 199768480 Change-Id: I47743fffb80f863437e2c19b6e63f48b4df592d4
2022-07-12Qorvo UWB Stack Release 06/21/2022 for QPR1Jeremy Rocher
Features: * Fira & vendor RSSI over UCI * UCI RANGE_DATA_NTF_CONFIG support for proximity near/far * UCI power stats query * CCC/Fira interleaving Note: * Added __nocfi on llhw_set_hrp_uwb_params() to WA unexepected panic due CFI check Bug: 236612098 Change-Id: I98f2d147dff79e304f59aed3e85793c3512cc593
2022-05-03dw3000: fix memset warningandroid-t-beta-4_r0.6android-t-beta-4_r0.5android-t-beta-4_r0.4android-t-beta-3_r0.4android-t-beta-3.3_r0.4android-t-beta-3.2_r0.4android-13.0.0_r0.5android-13.0.0_r0.45android-13.0.0_r0.44android-13.0.0_r0.43android-13.0.0_r0.4android-13.0.0_r0.32android-13.0.0_r0.31android-13.0.0_r0.20android-13.0.0_r0.19android-13.0.0_r0.15android-13.0.0_r0.14android-gs-raviole-5.10-t-beta-4android-gs-raviole-5.10-t-beta-3android-gs-raviole-5.10-android13android-gs-pantah-5.10-android13-d1android-gs-bluejay-5.10-t-beta-4android-gs-bluejay-5.10-android13Will McVicker
The below warning happens when we build with LTO=none. Fix this by dropping the memset and init the local variable on declaration. common/include/linux/fortify-string.h:242:4: error: call to __write_overflow_field declared with 'warning' attribute: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror,-Wattribute-warning] __write_overflow_field(p_size_field, size); ^ 1 error generated. Bug: 231318697 Signed-off-by: Will McVicker <willmcvicker@google.com> Change-Id: I1b118229904c1a9327a0b4b8744a039317514512
2022-04-26dw3000: use antenna selection to trigger TX on RF2 behaviorClément Viel
Bug: 221242261 Change-Id: I6e17aa50b2e177955edd153ab593d1900355c326 Signed-off-by: Mikael Sourmey <mikael.sourmey@qorvo.com>
2022-04-26dw3000: add a too_late_callback to specifically deal with latency issuesClément Viel
Bug: 225384281 Change-Id: Iba1cebbd8c5d23a3e3746a92c6542a7923d55359 Signed-off-by: Mikael Sourmey <mikael.sourmey@qorvo.com>
2022-04-08dw3000: check ret of setting thread priorityandroid-t-beta-2_r0.4android-gs-raviole-5.10-t-beta-2Victor Liu
Bug: 225384281 Signed-off-by: Victor Liu <victorliu@google.com> Change-Id: I1a3beb00e99ef03096b3c9edd49b1e362ad8e8cc
2022-04-08dw3000: fix clamp min value to 170 to ensure minimum latencyClément Viel
Bug: 225384281 Bug: 227663239 Change-Id: Id98d79c140fae0d3c6340a2a4e8411c137dec7e2 Signed-off-by: Mikael Sourmey <mikael.sourmey@qorvo.com>
2022-04-08dw3000: create function to change TX to RF2 and get back to defaultClément Viel
Bug: 221242261 Change-Id: I1a09207103ea3de050bad318afc35680cb267975 Signed-off-by: Mikael Sourmey <mikael.sourmey@qorvo.com>
2022-04-08mac: don't break on -ETIME and raise error flagThierry Carré
Bug: 225385937 Change-Id: Ic459d8c046c6627cdb08e5f3a2c71eb1c45fa3c2 Signed-off-by: Mikael Sourmey <mikael.sourmey@qorvo.com>
2022-04-06Fix use-after-free when probe failsHervé Boisse
Bug: 227504976 Change-Id: Ia137599a6fb7b1540cef147ebfa51c27edef6a6f Signed-off-by: Mikael Sourmey <mikael.sourmey@qorvo.com>
2022-03-21dw3000: force the use of DGC LUT tableClément Viel
DGC from OTP provides worse RF sensitivity results than DGC from LUT. Ignore use of DGC from OTP. BUG: 222564505 Change-Id: Id62290ea71df305ad8cc71d4e91bb74fb709cd51 Signed-off-by: Jean-Michel RIOT <jean-michel.riot@qorvo.com>
2022-03-10Qorvo UWB Mobile stack 20220304android-t-beta-1_r0.4android-gs-raviole-5.10-t-beta-1Mikael Sourmey
dw3000: ack google review requirements dw3000: smart tx power 6db backoff change coarse to avoid saturation Signed-off-by: Mikael Sourmey <mikael.sourmey@qorvo.com> Change-Id: I77cc746cb8b7419327a70d97ab542ea83477a622
2022-03-02Qorvo UWB Mobile stack 2022-02-25Jean-Michel RIOT
Fine tuning of tx power - dw3000: PHR power must be 6dB lower than payload Bug: 221164955 Change-Id: I40bcae837c62ef2cacdfbb4a4514172e6d519fb6 Signed-off-by: Jean-Michel RIOT <jean-michel.riot@qorvo.com>
2022-02-18Qorvo UWB Mobile stack kernel release 2022_02_18Jeremy Rocher
- Change NFCC watchdog from 200 ms to 2400 ms - Ensure consistency between pib and llhw channel info Bug: 220173516 Signed-off-by: Jeremy Rocher <jeremy.rocher@qorvo.com> Change-Id: Ia5aa533182f359a9d967d2bb309cfbb75780580c
2022-02-16Qorvo UWB Mobile stack R11.2.1 11_02_2022Clement Viel
- deepsleep fixed : UWB driver was not using delay_usecs from spi_driver struct. - antenna flexibility MAC implementation - AoA and ranging interleaving MAC implementation - Fira performances are similar to Android S releases. - Update all file from Change-Id: I3debc4cb hash:6411d40a58 of android13-gs-pixel-5.10-dev branch Bug: 218970780 Test: build, uwb ranging on device Signed-off-by: Victor Liu <victorliu@google.com> Change-Id: I1632b6facaa23100ed3dc959919bd64406521793
2022-01-03Merge android12-gs-pixel-5.10-sc-v2 into android13-gs-pixel-5.10android-t-preview-2_r0.4android-t-preview-1_r0.4android-gs-raviole-5.10-t-preview-2android-gs-raviole-5.10-t-preview-1Robin Peng
Bug: 211546634 Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: If50ae8cb59800e03bc11ab41ca01c90db3b9cc63
2021-12-27Merge android12-gs-pixel-5.10-sc-v2 into android13-gs-pixel-5.10Robin Peng
Bug: 211546634 Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: I63ae49cb04fdbf707a140fce2e97885f4dc21e99
2021-12-26Merge android12-gs-pixel-5.10-sc-qpr2 into android12-gs-pixel-5.10-sc-v2android-s-qpr3-beta-3_r0.5android-s-qpr3-beta-2_r0.5android-s-qpr3-beta-1_r0.6android-s-qpr3-beta-1_r0.5android-12.1.0_r0.40android-12.1.0_r0.35android-12.1.0_r0.28android-gs-raviole-5.10-s-qpr3-beta-3android-gs-raviole-5.10-s-qpr3-beta-2android-gs-raviole-5.10-android12-qpr3android-gs-bluejay-5.10-android12L-d2PixelBot AutoMerger
SBMerger: 410055097 Change-Id: I052d9573ac8ae5995792cff6e9e78759f9f2fd4b Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2021-12-22dw3000: rework stm locking strategyClément Viel
Use wait_event_lock_irq to make the wait uninterrutpible. This needed to use another lock than waitqueue's one. Bug: 199454999 Change-Id: Id1b51ead3b8fb9d72899699f8c35136d7cbf34c7 Signed-off-by: Jean-Michel RIOT <jean-michel.riot@qorvo.com>
2021-12-20CCC Deep sleep can now be controlled by the UWB-claibration.conf parameter.android-s-v2-beta-3_r0.6android-12.1.0_r0.6android-12.1.0_r0.22android-12.1.0_r0.16android-gs-raviole-5.10-s-v2-beta-3android-gs-raviole-5.10-android12LThierry Carré
Aligning its behaviour with Fira. Bug: 205787340 Change-Id: Id5b62c16c2b4d3dea1cdf557472c114be886645e Signed-off-by: Jean-Michel RIOT <jean-michel.riot@qorvo.com>
2021-12-20Merge android12-gs-pixel-5.10-sc-v2 into android13-gs-pixel-5.10Robin Peng
Bug: 199698959 Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: Ib2750d4add51f3fba347948a9bd35dd048eb9f71
2021-12-13Merge android12-gs-pixel-5.10-sc-qpr2 into android12-gs-pixel-5.10-sc-v2Roger Liao
Bug: 199698959 Change-Id: I46854cdb8915a66a24c01c9529abddb82951696a Signed-off-by: Roger Liao <rogerliao@google.com>
2021-12-09dw3000: rework stm locking strategyClément Viel
Use wait_event_lock_irq to make the wait uninterrutpible. This needed to use another lock than waitqueue's one. Bug: 199454999 Change-Id: Id1b51ead3b8fb9d72899699f8c35136d7cbf34c7 Signed-off-by: Jean-Michel RIOT <jean-michel.riot@qorvo.com>
2021-11-30mac: ensure consistency between pib and llhw channel infoClément Viel
BUG: 208180285 Change-Id: Ifbcc44c213b38dddbe7b21ac83d3460ac6360e3b Signed-off-by: Jean-Michel RIOT <jean-michel.riot@qorvo.com>
2021-11-30dw3000: ensure supported channels correctly updatedDavid Girault
Since antenna configuration may be (is) not known at time of update of restricted_channels calibration value, it must be checked AFTER supported channel is updated. BUG: 205787340 Change-Id: Iffe3bf9e0d3d9d18163539dd7063697763d77518 Signed-off-by: Jean-Michel RIOT <jean-michel.riot@qorvo.com>
2021-11-25Merge android12-gs-pixel-5.10-sc-v2 into android13-gs-pixel-5.10Alex Hong
Bug: 199698959 Change-Id: Iff8213c278c2d725e3e2693ab26b4035cf3fb57e Signed-off-by: Alex Hong <rurumihong@google.com>
2021-11-25Merge "Merge android12-gs-pixel-5.10-sc-qpr2 into ↵Roger Liao
android12-gs-pixel-5.10-sc-v2" into android12-gs-pixel-5.10-sc-v2
2021-11-24Merge android12-gs-pixel-5.10-sc-qpr2 into android12-gs-pixel-5.10-sc-v2PixelBot AutoMerger
Bug: 199698959 SBMerger: 410055097 Change-Id: I39778353d7682f2b75c8398b9a7ef7f3a558f91b Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2021-11-23Revert "dw3000_stm: uninterruptedly wait for pending_work to complete"Fred Chiou
This reverts commit 0ea8be1ed473db3a0fe5dab4ed11d13ea8fd63ee. Reason for revert: 100% deadlock if receive signal during wait Bug: 205397250 Change-Id: If14f51b68714f554742ec1e94c095cb3382e3659
2021-11-18ccc: integrate nfcc v2Thierry Carré
- update time descriptor where t_start and t_end are now expressed in uus unit. - new t_start_uus and t_end_uus will enhance handling UWBtime0 - modify the cooperation interface AP/NFCC in TLV messages in order to support bigger RAN multiplier values ( for the biggest value RAN multiplier = 255, we will have 1 ranging every 24sec) BUG: 205787340 Change-Id: Ibeba03ccfbeb15ca8b772f738850de3b1c48b14d Signed-off-by: Jean-Michel RIOT <jean-michel.riot@qorvo.com>
2021-11-18Add Block Striding supportSaad Zouiten
Calculate next ranging block based on the following formula : current_block + stride_len _+1 Take hopping into account when computing the next ranging block. Change the calculation of max_rr_retry when striding is used Add striding flag in capabilities for users-ace applications Add new debug traces. BUG: 198606126 Change-Id: I0c7625178b5416aa592fe55ea0154430c54f46d1 Signed-off-by: Jean-Michel RIOT <jean-michel.riot@qorvo.com>
2021-11-12Merge android12-gs-pixel-5.10-sc-v2 into android13-gs-pixel-5.10Alex Hong
Bug: 199698959 Change-Id: I2149b4dcede423ed6ee56663bd43e859d1d648c7 Signed-off-by: Alex Hong <rurumihong@google.com>
2021-11-11Merge android12-gs-pixel-5.10-sc-qpr2 into android12-gs-pixel-5.10-sc-v2Roger Liao
Change-Id: Ia366d0a8d4e2744634275bbefa9023afc1f4e53e Signed-off-by: Roger Liao <rogerliao@google.com>
2021-11-11Merge android12-gs-pixel-5.10-sc-qpr1 into android12-gs-pixel-5.10-sc-qpr2Roger Liao
Change-Id: I01cc5adcf578c5d210aa0f6a7368899b2e59585e Signed-off-by: Roger Liao <rogerliao@google.com>
2021-11-10Revert "dw3000_stm: uninterruptedly wait for pending_work to complete"Victor Liu
This reverts commit 57015c2904c9853fbf89b7b2ecb6889a934d9cd4. Reason for revert: b/205397250 regression from this change. Change-Id: I7f6166bdda68f5aa2d0a6407f7e47651b98faba9
2021-11-10Revert "dw3000_stm: uninterruptedly wait for pending_work to complete"android-12.0.0_r0.42android-12.0.0_r0.36android-12.0.0_r0.26android-gs-raviole-5.10-android12-qpr1-dJonglin Lee
This reverts commit 558a7ed1bf3c14ba0f01b91d04a1bac51ab9c97e. Reason for revert: 100% deadlock if receive signal during wait Bug: 205397250 Change-Id: I985a84699732c3221ff842ab5f90dda3cb82bf39 Signed-off-by: Jonglin Lee <jonglin@google.com>
2021-11-04Merge android12-gs-pixel-5.10-sc-v2 into android13-gs-pixel-5.10Alex Hong
Bug: 199698959 Change-Id: Ic422a961efceee5204368ae118fb46346d39db18 Signed-off-by: Alex Hong <rurumihong@google.com>
2021-11-02dw3000_stm: uninterruptedly wait for pending_work to completeWoody Lin
Data assigned to stm->generic_work can be a local variable (e.g.: dw3000_state_start) that discarded after function returns, and in this case, dw3000_event_thread will get an invalid generic_work that causes data abort. To fix it, repeats the wait_event_interruptible_locked_irq until the event condition meets, that is, ignore the signal interrupting case. Bug: 199454999 Change-Id: I1a244e2e50c14de2c471f0e0f696c8b403881fcb (cherry picked from commit 0ea8be1ed473db3a0fe5dab4ed11d13ea8fd63ee)
2021-11-01dw3000_stm: uninterruptedly wait for pending_work to completeWoody Lin
Data assigned to stm->generic_work can be a local variable (e.g.: dw3000_state_start) that discarded after function returns, and in this case, dw3000_event_thread will get an invalid generic_work that causes data abort. To fix it, repeats the wait_event_interruptible_locked_irq until the event condition meets, that is, ignore the signal interrupting case. Bug: 199454999 Change-Id: I1a244e2e50c14de2c471f0e0f696c8b403881fcb (cherry picked from commit 0ea8be1ed473db3a0fe5dab4ed11d13ea8fd63ee)
2021-11-01dw3000: rework deep sleep according dwt driver, refs UWB-1877Romuald Despres
Alignment with dwt driver. Revert the loop for checking the backup because it causes a hw race condition that stuck the chip BUG: 199275459 BUG: 198650370 Change-Id: I50f9e6e565d55ab1a19165d925051e4444711e93 Signed-off-by: Jean-Michel RIOT <jean-michel.riot@qorvo.com> (cherry picked from commit 054af86ad5e1ffb3b8c3ce901d74c0eda9beb897)
2021-10-30dw3000: rework deep sleep according dwt driver, refs UWB-1877Romuald Despres
Alignment with dwt driver. Revert the loop for checking the backup because it causes a hw race condition that stuck the chip BUG: 199275459 BUG: 198650370 Change-Id: I50f9e6e565d55ab1a19165d925051e4444711e93 Signed-off-by: Jean-Michel RIOT <jean-michel.riot@qorvo.com>
2021-10-28dw3000_stm: uninterruptedly wait for pending_work to completeWoody Lin
Data assigned to stm->generic_work can be a local variable (e.g.: dw3000_state_start) that discarded after function returns, and in this case, dw3000_event_thread will get an invalid generic_work that causes data abort. To fix it, repeats the wait_event_interruptible_locked_irq until the event condition meets, that is, ignore the signal interrupting case. Bug: 199454999 Change-Id: I1a244e2e50c14de2c471f0e0f696c8b403881fcb
2021-10-15Merge android12-gs-pixel-5.10-sc-v2 into android13-gs-pixel-5.10Alex Hong
Bug: 199698959 Change-Id: Ie26c7097e64c6f98b9f3e154fe4b73ce157c8d95 Signed-off-by: Alex Hong <rurumihong@google.com>
2021-09-28Fix unused-but-set-variable build breakage clang migrate to r433403Robin Peng
Bug: 201034056 Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: Ief49c19d075ef1439d1b5c9433833920e29a7ed2
2021-09-26Merge android12-gs-pixel-5.10-sc-qpr2 into android12-gs-pixel-5.10-sc-v2PixelBot AutoMerger
SBMerger: 379283923 Change-Id: I9cbcdaa3c318f75b06b397055ffd170750e5fc06 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2021-09-26Merge android12-gs-pixel-5.10-sc-qpr1 into android12-gs-pixel-5.10-sc-qpr2PixelBot AutoMerger
SBMerger: 379283923 Change-Id: Ia8b4ade724ed386332e8d5579128428991c81ae1 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2021-09-24dw3000: increase the wifi coex margin from 300ms to 500ms to avoid ↵Clement Viel
interferences. Bug: 171489641 Signed-off-by: Clement Viel <clement.viel@qorvo.com> Change-Id: I7f8179b99d058a67e180a2d6e13df7965c693397