Commit graph

11 commits

Author SHA1 Message Date
Michael Bestas
ea789844aa sm8450-common: gps: data-items: Fix snprintf usage
Fixes:
gps/core/data-items/DataItemConcreteTypes.cpp:465:9: error: 'snprintf'
will always be truncated; specified size is 10, but format string
expands to at least 20 [-Werror,-Wfortify-source]
  465 |         snprintf(t, sizeof(t),
        "[%02x:%02x:%02x:%02x:%02x:%02x]", d->mApSrnMacAddress[0],
      |         ^
gps/core/data-items/DataItemConcreteTypes.cpp:514:9: error: 'snprintf'
will always be truncated; specified size is 10, but format string
expands to at least 20 [-Werror,-Wfortify-source]
  514 |         snprintf(t, sizeof(t),
        "[%02x:%02x:%02x:%02x:%02x:%02x]", d->mApSrnMacAddress[0],
      |         ^
2 errors generated.

Change-Id: I37188e7497f7ade97648fb41e2becd73f6b559a9
2024-07-02 18:13:43 +02:00
Nilesh Gharde
1a74532ea6 sm8450-common: gps: Remove getCapablities impl from gnss adapter
getCapablities impl is moved to LocAdapterBase
class as for QWES unify. All the adapters should use the
same implementation.

CRs-fixed: 3609221
Change-Id: I0e9f7af1437af47f20e27a9bad94231c594753c7
2024-05-18 11:28:19 +02:00
haohuang
5e81e4bd4c sm8450-common: gps: Add new NLP Session Status data item
Change-Id: Idf5b415fe232dbd098bdae392f40a50e0d11584b
CRs-Fixed: 3494806
2024-05-18 11:28:04 +02:00
Nilesh Gharde
1de9dfed09 sm8450-common: gps: Loc QWES check unify
1 Add context call to get location qwes feature status directly.
2 Add data item to dispatch location qwes feature status.
3 EngineHub uses context call to get location qwes feature status.
4 xtwifi uses data item registration to get location qwes feature
status.

Change-Id: I489b7fadf2b06a4517ac4b362b6ff4d204f94080
CRs-Fixed: 3435284
2024-05-18 11:27:34 +02:00
haohuang
58ea2a68e5 sm8450-common: gps: Add RSSI/RTT QWES and HW feature bits in ContextBase
Change-Id: I2b6a7d10c367862f8bb76b6a4a5c401e32a3c96e
CRs-Fixed: 3362481
2024-05-18 11:26:01 +02:00
Vrutti Patel
341ddf5768 sm8450-common: gps: GNSS adapter: need to check validity of elapsed real time
1: Need to check the validity of elapased real time before
   marking it as valid
2: Increase the allowed time between two get boot time call
   from 10 micro seconds to 2 milli-seconds

Change-Id: If2f7ddb23ce72cb52f294ff44353f5c9a9421a9c
CRs-fixed: 3281559
2024-05-18 11:25:11 +02:00
Arian
f518e7ef8f sm8450-common: gps: Update to LA.VENDOR.1.0.r1-21900-WAIPIO.0
Change-Id: Ib431364a902ecd9b068e672978f5e24ecbf42160
2024-03-19 23:22:37 +01:00
Albert I
2117624012 sm8450-common: gps: Reorder initializations list to satisfy warnings
-Wreorder-ctor is a compile-time, Clang-only flag which is enabled by
default since Clang 12, which will warn whenever a specified field will
be initialized right after field specified below it. However, since it
doesn't sweep through all fields, compiler may miss some of them.

This order has been checked thoroughly through many trial and errors to
ensure that no such warns will be triggered anymore.

Change-Id: Id24cbb7277dc8d6c02767f8f365818ab6c017683
2024-03-19 23:22:37 +01:00
Michael Bestas
3094f39138 sm8450-common: gps: Resolve unused parameter warnings
Change-Id: I0acef3da2c3567a28edd0a71dac89a5828f7725d
2024-03-19 23:22:37 +01:00
Vamana Murthi
cd7a05c656 sm8450-common: gps: HAL: Location compilation bringup for wearables
Enable few more important compilation flags which will consider
warnings as errors. Most of these flags were configured to be
only warning for mobile SPs, but for wearable SPs some of them
are configured to be errors. So configure these as in common
GNSS flags so that same set of flags could be applied to mobile
SPs too.
Fix compilation errors which were showing up, when these flags
were enabled.

Change-Id: I62ef74419d4416252dfc8b25251ba3a51d522bfd
CRs-Fixed: 3292623
2024-03-19 23:22:37 +01:00
Arian
b9fdaff70a sm8450-common: Import gps from LA.VENDOR.1.0.r1-12800-WAIPIO.0
Change-Id: Ia76265a8c3326f2b5f9f260ce98807276af80ee3
2024-03-19 23:22:37 +01:00