qcacmn: Fix tlv formation of Peer assoc wmi command

Fix TLV header length calculation and pass peer mac address in
wmi peer assoc command.

Change-Id: I025ad7564901cba583bd78bddf0ccfa5e894c751
CRs-Fixed: 987362
This commit is contained in:
Govind Singh
2016-03-28 22:02:42 +05:30
parent 7e4f4bc75e
commit 53c7ac825f
2 changed files with 11 additions and 4 deletions

View File

@@ -641,4 +641,15 @@ struct wmi_unified {
};
struct wmi_ops *wmi_get_tlv_ops(void);
struct wmi_ops *wmi_get_non_tlv_ops(void);
/**
* wmi_align() - provides word aligned parameter
* @param: parameter to be aligned
*
* Return: word aligned parameter
*/
static inline uint32_t wmi_align(uint32_t param)
{
return roundup(param, sizeof(uint32_t));
}
#endif