summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-01-13 02:24:46 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-01-13 02:24:46 +0000
commit7f08fab975d082ce73ac5f0ee32914b44ea3652d (patch)
tree7d6fc8343374e90064dcbc81cfd53195df87bce9
parent378e2a44ecd1aac9b686b546c97e248eff925033 (diff)
parent52e781f9271f5f828e6a53890e99e985f684cc25 (diff)
downloadlibhardware_legacy-7f08fab975d082ce73ac5f0ee32914b44ea3652d.tar.gz
Snap for 9484614 from 52e781f9271f5f828e6a53890e99e985f684cc25 to udc-release
Change-Id: I4561bcdd086141367948ef7e3f632cacd23de00b
-rw-r--r--include/hardware_legacy/wifi_hal.h20
-rw-r--r--include/hardware_legacy/wifi_nan.h30
2 files changed, 50 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..9c7397c 100644
--- a/include/hardware_legacy/wifi_nan.h
+++ b/include/hardware_legacy/wifi_nan.h
@@ -1279,6 +1279,12 @@ typedef struct {
*/
NanPairingConfig nan_pairing_config;
+ /*
+ Specifies whether suspension can be possible in this publish session.
+ The request would fail if enable_suspendability is true but
+ is_suspension_supported is false in NanCapabilities.
+ */
+ bool enable_suspendability;
} NanPublishRequest;
/*
@@ -1451,6 +1457,13 @@ typedef struct {
The config for Nan pairing
*/
NanPairingConfig nan_pairing_config;
+
+ /*
+ Specifies whether suspension can be possible in this subscribe session.
+ The request would fail if enable_suspendability is true but
+ is_suspension_supported is false in NanCapabilities.
+ */
+ bool enable_suspendability;
} NanSubscribeRequest;
/*
@@ -1509,6 +1522,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.