Merge "[AWARE]: Make changes to support NAN Publish Replied Indication" am: fd58969128

am: ea840aa7a9

Change-Id: Ib8dc333e09c7bf4f68be615de7e082ab271f4b77
This commit is contained in:
Etan Cohen 2017-04-05 22:19:36 +00:00 committed by android-build-merger
commit cd9df3c35b

View file

@ -1047,6 +1047,7 @@ typedef struct {
BIT0 - Disable publish termination indication.
BIT1 - Disable match expired indication.
BIT2 - Disable followUp indication received (OTA).
BIT3 - Disable publishReplied indication.
*/
u8 recv_indication_cfg;
/*
@ -1672,6 +1673,27 @@ typedef struct {
} body;
} NanResponseMsg;
/*
Publish Replied Indication
The PublishRepliedInd Message is sent by the DE when an Active Subscribe is
received over the air and it matches a Solicited PublishServiceReq which had
been created with the replied_event_flag set.
*/
typedef struct {
/*
A 32 bit Requestor Instance Id which is sent to the Application.
This Id will be sent in any subsequent UnmatchInd/FollowupInd
messages
*/
u32 requestor_instance_id;
u8 addr[NAN_MAC_ADDR_LEN];
/*
If RSSI filtering was configured in NanPublishRequest then this
field will contain the received RSSI value. 0 if not
*/
u8 rssi_value;
} NanPublishRepliedInd;
/*
Publish Terminated
The PublishTerminatedInd message is sent by the DE whenever a Publish
@ -2216,6 +2238,7 @@ typedef struct {
/* NotifyResponse invoked to notify the status of the Request */
void (*NotifyResponse)(transaction_id id, NanResponseMsg* rsp_data);
/* Callbacks for various Events */
void (*EventPublishReplied)(NanPublishRepliedInd *event);
void (*EventPublishTerminated)(NanPublishTerminatedInd* event);
void (*EventMatch) (NanMatchInd* event);
void (*EventMatchExpired) (NanMatchExpiredInd* event);