4 #include <netlink/netlink.h>
6 #define SLSI_NAN_MAX_NDP 5
11 u32 m_ndp_instance_id
[SLSI_NAN_MAX_NDP
];
12 int m_max_ndp_sessions
;
13 int m_data_iface_count
;
14 char m_ifaceName
[SLSI_NAN_MAX_NDP
][IFNAMSIZ
+1];
16 nlattr
*newNlVendorMsg(int subcmd
, WifiRequest
&request
);
18 void dataInterfaceCreated(char *ifaceName
);
19 void dataInterfaceDeleted(char *ifaceName
);
20 void dataRequestInitiateSuccess(NanDataPathInitiatorRequest
*msg
);
21 void dataIndicationResponseSuccess(NanDataPathIndicationResponse
*msg
);
22 void dataEndSuccess(NanDataPathEndRequest
*msg
);
24 int dataInterfaceCreateDelete(u16 id
, char *ifaceName
, int subcmd
, WifiRequest
&request
);
25 int dataRequestInitiate(u16 id
, NanDataPathInitiatorRequest
*msg
, WifiRequest
&request
);
26 int dataIndicationResponse(u16 id
, NanDataPathIndicationResponse
*msg
, WifiRequest
&request
);
27 int dataEnd(u16 id
, NanDataPathEndRequest
*msg
, WifiRequest
&request
);
29 void processNdpChannelInfo(nlattr
*nl_data
, NanChannelInfo
&channel_info
);
30 int processNdpReqEvent(WifiEvent
&event
, NanCallbackHandler
&callbackEventHandler
);
31 int processNdpCfmEvent(WifiEvent
&event
, NanCallbackHandler
&callbackEventHandler
);
32 int processNdpEndEvent(WifiEvent
&event
, NanCallbackHandler
&callbackEventHandler
);
36 int processResponse(WifiEvent
&reply
, NanResponseMsg
*response
);
37 void requestSuccess(u16 id
, void *data
, int subcmd
);
38 int getDataPathNLMsg(u16 id
, void *data
, int subcmd
, WifiRequest
&request
);
39 void setMaxNdpSessions(int max_ndp
);
40 int handleEvent(WifiEvent
&event
, NanCallbackHandler
&callbackEventHandler
);
41 static int putSecurityInfo(u32 cipher
, NanSecurityKeyInfo
*key_info
, u32 scid_len
,
42 u8
*scid
, WifiRequest
*request
);
43 static const u8
*getCmdName(int cmd
);