diff options
author | Phill Hayers <phillhayers@google.com> | 2023-01-09 15:56:40 +0000 |
---|---|---|
committer | Phill Hayers <phillhayers@google.com> | 2023-01-11 15:43:03 +0000 |
commit | 4f30a1732283acc8f3a5ba433814428d93bfdc59 (patch) | |
tree | c570885a88d20703bf08c493212a79e5cffeb7a9 | |
parent | 2ebbe247b0607f59f1e10e641a03bfcab2ceb95f (diff) | |
download | libhardware_legacy-4f30a1732283acc8f3a5ba433814428d93bfdc59.tar.gz |
Add a new function in wifi_hal_fn table for suspend/resume.
Bug: 259950106
Test: m android.hardware.wifi-update-api
Change-Id: I6d9b8baef13f07a684d5486576c3298be1e5e482
-rw-r--r-- | include/hardware_legacy/wifi_hal.h | 20 | ||||
-rw-r--r-- | include/hardware_legacy/wifi_nan.h | 17 |
2 files changed, 37 insertions, 0 deletions
diff --git a/include/hardware_legacy/wifi_hal.h b/include/hardware_legacy/wifi_hal.h index ab24f90..f48492c 100644 --- a/include/hardware_legacy/wifi_hal.h +++ b/include/hardware_legacy/wifi_hal.h @@ -1198,6 +1198,26 @@ typedef struct { wifi_error (*wifi_enable_sta_channel_for_peer_network)( wifi_handle handle, u32 channelCategoryEnableFlag); + /**@brief wifi_nan_suspend_request + * Request that the specified NAN session be suspended. + * @param transaction_id: NAN transaction id + * @param wifi_interface_handle + * @param NanSuspendRequest request message + * @return Synchronous wifi_error + */ + wifi_error (*wifi_nan_suspend_request)(transaction_id id, wifi_interface_handle iface, + NanSuspendRequest *msg); + + /**@brief wifi_nan_resume_request + * Request that the specified NAN session be resumed. + * @param transaction_id: NAN transaction id + * @param wifi_interface_handle + * @param NanResumeRequest request message + * @return Synchronous wifi_error + */ + wifi_error (*wifi_nan_resume_request)(transaction_id id, wifi_interface_handle iface, + NanResumeRequest *msg); + /* * when adding new functions make sure to add stubs in * hal_tool.cpp::init_wifi_stub_hal_func_table diff --git a/include/hardware_legacy/wifi_nan.h b/include/hardware_legacy/wifi_nan.h index fc22304..3687bb3 100644 --- a/include/hardware_legacy/wifi_nan.h +++ b/include/hardware_legacy/wifi_nan.h @@ -1509,6 +1509,23 @@ typedef struct { } NanStatsRequest; /* + Suspend Request Structure + The SuspendRequest message is used to request that the specified session is suspended. + The session can be resumed using the NanResumeRequest message. +*/ +typedef struct { + u16 publish_subscribe_id; +} NanSuspendRequest; + +/* + Resume Request Structure + The ResumeRequest message is used to request that the specified session is resumed. +*/ +typedef struct { + u16 publish_subscribe_id; +} NanResumeRequest; + +/* Config Structure The NanConfigurationReq message is sent by the Host to the Discovery Engine in order to configure the Discovery Engine during runtime. |