From b54a4eb78482c3f38def3a4b653b3a97edc5283f Mon Sep 17 00:00:00 2001 From: Brian Balser Date: Wed, 15 May 2024 09:23:20 -0400 Subject: [PATCH 1/2] Add location_source to wifi heartbeats --- src/service/poc_mobile.proto | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/service/poc_mobile.proto b/src/service/poc_mobile.proto index d3523ab9..57733f19 100644 --- a/src/service/poc_mobile.proto +++ b/src/service/poc_mobile.proto @@ -71,6 +71,13 @@ message cell_heartbeat_ingest_report_v1 { cell_heartbeat_req_v1 report = 2; } +enum wifi_location_source { + unknown = 0; + asserted = 1; + gps = 2; + skyhook = 3; +} + message wifi_heartbeat_req_v1 { // Public key of the hotspot bytes pub_key = 1; @@ -83,6 +90,7 @@ message wifi_heartbeat_req_v1 { bool operation_mode = 6; bytes coverage_object = 7; bytes signature = 8; + wifi_location_source location_source = 9; } message wifi_heartbeat_resp_v1 { string id = 1; } @@ -333,6 +341,7 @@ message heartbeat { // only used for wifi radios, all others should have a value of 1.0 // value is 0.0 to 1.0 multiplied by 1000 uint32 location_trust_score_multiplier = 12; + wifi_location_source location_source = 13; } enum heartbeat_validity { From 09b7dd869d8cfb9a8df955f08473cba1ee9f45e1 Mon Sep 17 00:00:00 2001 From: Brian Balser Date: Wed, 15 May 2024 09:58:07 -0400 Subject: [PATCH 2/2] rename enum to just location_source --- src/service/poc_mobile.proto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/service/poc_mobile.proto b/src/service/poc_mobile.proto index 57733f19..2e37dfd8 100644 --- a/src/service/poc_mobile.proto +++ b/src/service/poc_mobile.proto @@ -71,7 +71,7 @@ message cell_heartbeat_ingest_report_v1 { cell_heartbeat_req_v1 report = 2; } -enum wifi_location_source { +enum location_source { unknown = 0; asserted = 1; gps = 2; @@ -90,7 +90,7 @@ message wifi_heartbeat_req_v1 { bool operation_mode = 6; bytes coverage_object = 7; bytes signature = 8; - wifi_location_source location_source = 9; + location_source location_source = 9; } message wifi_heartbeat_resp_v1 { string id = 1; } @@ -341,7 +341,7 @@ message heartbeat { // only used for wifi radios, all others should have a value of 1.0 // value is 0.0 to 1.0 multiplied by 1000 uint32 location_trust_score_multiplier = 12; - wifi_location_source location_source = 13; + location_source location_source = 13; } enum heartbeat_validity {