qcacmn: Add tlv formation of key installation commands in common wmi layer

Move tlv formation of wmi setup key installation commands from umac to
common wmi layer.

Change-Id: I51250a9b1b6bb5aed06657b9f88f4659430f4c74
CRs-Fixed: 987362
This commit is contained in:
Himanshu Agarwal
2016-03-09 18:49:18 +05:30
committed by Gerrit - the friendly Code Review server
parent 466963e7cd
commit 9efd9bfc2c
4 changed files with 40 additions and 0 deletions

View File

@@ -429,6 +429,9 @@ QDF_STATUS wmi_unified_probe_rsp_tmpl_send_cmd(void *wmi_hdl,
struct wmi_probe_resp_params *probe_rsp_info,
uint8_t *frm);
QDF_STATUS wmi_unified_setup_install_key_cmd(void *wmi_hdl,
struct set_key_params *key_params);
QDF_STATUS wmi_unified_p2p_go_set_beacon_ie_cmd(void *wmi_hdl,
A_UINT32 vdev_id, uint8_t *p2p_ie);

View File

@@ -61,6 +61,7 @@
#define WMI_IPV4_ADDR_LEN 4
#define WMI_KEEP_ALIVE_NULL_PKT 1
#define WMI_KEEP_ALIVE_UNSOLICIT_ARP_RSP 2
#define WMI_MAC_MAX_KEY_LENGTH 32
#define WMI_KRK_KEY_LEN 16
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
#define WMI_BTK_KEY_LEN 32
@@ -856,6 +857,36 @@ struct wmi_probe_resp_params {
uint32_t ucProxyProbeReqValidIEBmap[8];
};
/* struct set_key_params: structure containing
* installation key parameters
* @vdev_id: vdev id
* @key_len: key length
* @key_idx: key index
* @peer_mac: peer mac address
* @key_flags: key flags, 0:pairwise key, 1:group key, 2:static key
* @key_cipher: key cipher based on security mode
* @key_txmic_len: tx mic length
* @key_rxmic_len: rx mic length
* @rx_iv: receive IV, applicable only in case of WAPI
* @tx_iv: transmit IV, applicable only in case of WAPI
* @key_data: key data
*/
struct set_key_params {
uint8_t vdev_id;
uint16_t key_len;
uint32_t key_idx;
uint8_t peer_mac[IEEE80211_ADDR_LEN];
uint32_t key_flags;
uint32_t key_cipher;
uint32_t key_txmic_len;
uint32_t key_rxmic_len;
#ifdef FEATURE_WLAN_WAPI
uint8_t rx_iv[16];
uint8_t tx_iv[16];
#endif
uint8_t key_data[WMI_MAC_MAX_KEY_LENGTH];
};
/**
* struct sta_params - sta keep alive parameters
* @vdev_id: vdev id

View File

@@ -248,6 +248,9 @@ QDF_STATUS (*send_probe_rsp_tmpl_send_cmd)(wmi_unified_t wmi_handle,
struct wmi_probe_resp_params *probe_rsp_info,
uint8_t *frm);
QDF_STATUS (*send_setup_install_key_cmd)(wmi_unified_t wmi_handle,
struct set_key_params *key_params);
QDF_STATUS (*send_process_update_edca_param_cmd)(wmi_unified_t wmi_handle,
uint8_t vdev_id,
wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC]);

View File

@@ -210,6 +210,9 @@ QDF_STATUS send_probe_rsp_tmpl_send_cmd_tlv(wmi_unified_t wmi_handle,
struct wmi_probe_resp_params *probe_rsp_info,
uint8_t *frm);
QDF_STATUS send_setup_install_key_cmd_tlv(wmi_unified_t wmi_handle,
struct set_key_params *key_params);
QDF_STATUS send_process_update_edca_param_cmd_tlv(wmi_unified_t wmi_handle,
uint8_t vdev_id,
wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC]);