Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
hardware_libhardware_legacy
Commits
0a5a8925
Commit
0a5a8925
authored
9 years ago
by
Wei Wang
Committed by
Android (Google) Code Review
9 years ago
Browse files
Options
Download
Plain Diff
Merge "Wifi-HAL: RTT API Enhancement" into nyc-dev
parents
8761318e
88aa64b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
include/hardware_legacy/rtt.h
include/hardware_legacy/rtt.h
+14
-6
include/hardware_legacy/wifi_hal.h
include/hardware_legacy/wifi_hal.h
+3
-3
No files found.
include/hardware_legacy/rtt.h
View file @
0a5a8925
...
...
@@ -139,8 +139,8 @@ typedef struct {
wifi_timestamp
ts
;
// time of the measurement (in microseconds since boot)
int
burst_duration
;
// in ms, actual time taken by the FW to finish one burst
// measurement. Applies to 1-sided and 2-sided RTT.
int
negotiated_burst_num
;
// Number of bursts allowed by the responder. Applies
// to 2-sided RTT only.
int
negotiated_burst_num
;
// Number of bursts allowed by the responder. Applies
// to 2-sided RTT only.
wifi_information_element
*
LCI
;
// for 11mc only
wifi_information_element
*
LCR
;
// for 11mc only
}
wifi_rtt_result
;
...
...
@@ -274,9 +274,18 @@ wifi_error wifi_set_lcr(wifi_request_id id, wifi_interface_handle iface,
wifi_lcr_information
*
lcr
);
/**
*
Get available WiFi channel to enable
RTT
r
esponder on
.
* RTT
R
esponder
informati
on
*/
wifi_error
wifi_rtt_get_available_channel
(
wifi_interface_handle
iface
,
wifi_channel_info
*
channel
);
typedef
struct
{
wifi_channel_info
channel
;
wifi_rtt_preamble
preamble
;
}
wifi_rtt_responder
;
/**
* Get RTT responder information e.g. WiFi channel to enable responder on.
*/
wifi_error
wifi_rtt_get_responder_info
(
wifi_interface_handle
iface
,
wifi_rtt_responder
*
responder_info
);
/**
* Enable RTT responder mode.
...
...
@@ -286,7 +295,7 @@ wifi_error wifi_rtt_get_available_channel(wifi_interface_handle iface, wifi_chan
*/
wifi_error
wifi_enable_responder
(
wifi_request_id
id
,
wifi_interface_handle
iface
,
wifi_channel_info
channel_hint
,
unsigned
max_duration_seconds
,
wifi_
channel_info
*
channel_used
);
wifi_
rtt_responder
*
responder_info
);
/**
* Disable RTT responder mode.
...
...
@@ -294,4 +303,3 @@ wifi_error wifi_enable_responder(wifi_request_id id, wifi_interface_handle iface
wifi_error
wifi_disable_responder
(
wifi_request_id
id
,
wifi_interface_handle
iface
);
#endif
This diff is collapsed.
Click to expand it.
include/hardware_legacy/wifi_hal.h
View file @
0a5a8925
...
...
@@ -252,11 +252,11 @@ typedef struct {
wifi_error
(
*
wifi_rtt_range_cancel
)(
wifi_request_id
,
wifi_interface_handle
,
unsigned
,
mac_addr
[]);
wifi_error
(
*
wifi_get_rtt_capabilities
)(
wifi_interface_handle
,
wifi_rtt_capabilities
*
);
wifi_error
(
*
wifi_rtt_get_
available_channel
)(
wifi_interface_handle
iface
,
wifi_
channel_info
*
channel
);
wifi_error
(
*
wifi_rtt_get_
responder_info
)(
wifi_interface_handle
iface
,
wifi_
rtt_responder
*
responder_info
);
wifi_error
(
*
wifi_enable_responder
)(
wifi_request_id
id
,
wifi_interface_handle
iface
,
wifi_channel_info
channel_hint
,
unsigned
max_duration_seconds
,
wifi_
channel_info
*
channel_used
);
wifi_
rtt_responder
*
responder_info
);
wifi_error
(
*
wifi_disable_responder
)(
wifi_request_id
id
,
wifi_interface_handle
iface
);
wifi_error
(
*
wifi_set_nodfs_flag
)(
wifi_interface_handle
,
u32
);
wifi_error
(
*
wifi_start_logging
)(
wifi_interface_handle
,
u32
,
u32
,
u32
,
u32
,
char
*
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment