mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
qcacld-3.0: CL 1699142 - update fw common interface files
WMI changes for mac randomization and whitelisting IEs : FR 37569 WMI changes for mac randomization and whitelisting IEs : FR 37569 Change-Id: I5ac8ada7efd34a46d9dc479188678584ec736329 CRs-Fixed: 865207
This commit is contained in:
parent
78bf70c22d
commit
7ebd1a34e6
3 changed files with 61 additions and 13 deletions
|
|
@ -764,6 +764,7 @@ typedef enum {
|
|||
WMITLV_TAG_STRUC_wmi_pdev_dfs_radar_detection_event_fixed_param,
|
||||
WMITLV_TAG_STRUC_wmi_vdev_adfs_ocac_complete_event_fixed_param,
|
||||
WMITLV_TAG_STRUC_wmi_vdev_dfs_cac_complete_event_fixed_param,
|
||||
WMITLV_TAG_STRUC_wmi_vendor_oui,
|
||||
|
||||
} WMITLV_TAG_ID;
|
||||
|
||||
|
|
@ -1425,7 +1426,8 @@ WMITLV_CREATE_PARAM_STRUC(WMI_VDEV_PLMREQ_STOP_CMDID);
|
|||
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, channel_list, WMITLV_SIZE_VAR) \
|
||||
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_FIXED_STRUC, wmi_ssid, ssid_list, WMITLV_SIZE_VAR) \
|
||||
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_FIXED_STRUC, wmi_mac_addr, bssid_list, WMITLV_SIZE_VAR) \
|
||||
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_BYTE, A_UINT8, ie_data, WMITLV_SIZE_VAR)
|
||||
WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_BYTE, A_UINT8, ie_data, WMITLV_SIZE_VAR) \
|
||||
WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_STRUC, wmi_vendor_oui, vendor_oui, WMITLV_SIZE_VAR)
|
||||
|
||||
WMITLV_CREATE_PARAM_STRUC(WMI_START_SCAN_CMDID);
|
||||
|
||||
|
|
@ -1813,7 +1815,8 @@ WMITLV_CREATE_PARAM_STRUC(WMI_REQUEST_LINK_STATS_CMDID);
|
|||
WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_STRUC, nlo_configured_parameters, nlo_list, WMITLV_SIZE_VAR) \
|
||||
WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, channel_list, WMITLV_SIZE_VAR) \
|
||||
WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_STRUC, nlo_channel_prediction_cfg, channel_prediction_param, WMITLV_SIZE_VAR) \
|
||||
WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_STRUC_enlo_candidate_score_param, enlo_candidate_score_params, candidate_score_params, WMITLV_SIZE_FIX)
|
||||
WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_STRUC_enlo_candidate_score_param, enlo_candidate_score_params, candidate_score_params, WMITLV_SIZE_FIX) \
|
||||
WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_STRUC, wmi_vendor_oui, vendor_oui, WMITLV_SIZE_VAR)
|
||||
|
||||
WMITLV_CREATE_PARAM_STRUC(WMI_NETWORK_LIST_OFFLOAD_CONFIG_CMDID);
|
||||
|
||||
|
|
@ -2252,7 +2255,8 @@ WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_RESUME_CMDID);
|
|||
WMITLV_CREATE_PARAM_STRUC(WMI_SCAN_UPDATE_REQUEST_CMDID);
|
||||
|
||||
#define WMITLV_TABLE_WMI_SCAN_PROB_REQ_OUI_CMDID(id,op,buf,len) \
|
||||
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_scan_prob_req_oui_cmd_fixed_param, wmi_scan_prob_req_oui_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
|
||||
WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_STRUC_wmi_scan_prob_req_oui_cmd_fixed_param, wmi_scan_prob_req_oui_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) \
|
||||
WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_STRUC, wmi_vendor_oui, vendor_oui, WMITLV_SIZE_VAR)
|
||||
|
||||
WMITLV_CREATE_PARAM_STRUC(WMI_SCAN_PROB_REQ_OUI_CMDID);
|
||||
|
||||
|
|
|
|||
|
|
@ -2651,6 +2651,9 @@ typedef struct {
|
|||
#define WLAN_SCAN_PARAMS_MAX_BSSID 4
|
||||
#define WLAN_SCAN_PARAMS_MAX_IE_LEN 512
|
||||
|
||||
/* NOTE: This constant cannot be changed without breaking WMI compatibility */
|
||||
#define WMI_IE_BITMAP_SIZE 8
|
||||
|
||||
typedef struct {
|
||||
A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_start_scan_cmd_fixed_param */
|
||||
/** Scan ID */
|
||||
|
|
@ -2705,6 +2708,14 @@ typedef struct {
|
|||
A_UINT32 ie_len;
|
||||
/** Max number of probes to be sent */
|
||||
A_UINT32 n_probes;
|
||||
/** MAC Address to use in Probe Req as SA **/
|
||||
wmi_mac_addr mac_addr;
|
||||
/** Mask on which MAC has to be randomized **/
|
||||
wmi_mac_addr mac_mask;
|
||||
/** ie bitmap to use in probe req **/
|
||||
A_UINT32 ie_bitmap[WMI_IE_BITMAP_SIZE];
|
||||
/** Number of vendor OUIs. In the TLV vendor_oui[] **/
|
||||
A_UINT32 num_vendor_oui;
|
||||
|
||||
/**
|
||||
* TLV (tag length value ) parameters follow the scan_cmd
|
||||
|
|
@ -2713,6 +2724,7 @@ typedef struct {
|
|||
* wmi_ssid ssid_list[];
|
||||
* wmi_mac_addr bssid_list[];
|
||||
* A_UINT8 ie_data[];
|
||||
* wmi_vendor_oui vendor_oui[];
|
||||
*/
|
||||
} wmi_start_scan_cmd_fixed_param;
|
||||
|
||||
|
|
@ -2761,6 +2773,8 @@ typedef struct {
|
|||
#define WMI_SCAN_FLAG_HALF_RATE_SUPPORT 0x20000
|
||||
/** set Quarter (5MHz) rate support */
|
||||
#define WMI_SCAN_FLAG_QUARTER_RATE_SUPPORT 0x40000
|
||||
#define WMI_SCAN_RANDOM_SEQ_NO_IN_PROBE_REQ 0x80000
|
||||
#define WMI_SCAN_ENABLE_IE_WHTELIST_IN_PROBE_REQ 0x100000
|
||||
|
||||
/** for adaptive scan mode using 3 bits (21 - 23 bits) */
|
||||
#define WMI_SCAN_DWELL_MODE_MASK 0x00E00000
|
||||
|
|
@ -2890,6 +2904,15 @@ typedef struct {
|
|||
A_UINT32 max_rest_time;
|
||||
} wmi_scan_update_request_cmd_fixed_param;
|
||||
|
||||
#define WMI_SCAN_PROBE_OUI_SPOOFED_MAC_IN_PROBE_REQ 0x1
|
||||
#define WMI_SCAN_PROBE_OUI_RANDOM_SEQ_NO_IN_PROBE_REQ 0x2
|
||||
#define WMI_SCAN_PROBE_OUI_ENABLE_IE_WHITELIST_IN_PROBE_REQ 0x4
|
||||
|
||||
typedef struct _wmi_vendor_oui {
|
||||
A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vendor_oui */
|
||||
A_UINT32 oui_type_subtype; /** Vendor OUI type and subtype, lower 3 bytes is type and highest byte is subtype**/
|
||||
} wmi_vendor_oui;
|
||||
|
||||
typedef struct {
|
||||
A_UINT32 tlv_header;
|
||||
/** oui to be used in probe request frame when random mac addresss is
|
||||
|
|
@ -2897,6 +2920,15 @@ typedef struct {
|
|||
* host initated scans. host can request for random mac address with
|
||||
* WMI_SCAN_ADD_SPOOFED_MAC_IN_PROBE_REQ flag. */
|
||||
A_UINT32 prob_req_oui;
|
||||
A_UINT32 vdev_id;
|
||||
/** Control Flags **/
|
||||
A_UINT32 flags;
|
||||
/** ie bitmap to use in probe req **/
|
||||
A_UINT32 ie_bitmap[WMI_IE_BITMAP_SIZE];
|
||||
/** Number of vendor OUIs. In the TLV vendor_oui[] **/
|
||||
A_UINT32 num_vendor_oui;
|
||||
/* Following this tlv, there comes an array of structure of type wmi_vendor_ouiwmi_vendor_oui vendor_oui[];*/
|
||||
|
||||
} wmi_scan_prob_req_oui_cmd_fixed_param;
|
||||
|
||||
enum wmi_scan_event_type {
|
||||
|
|
@ -10176,17 +10208,20 @@ typedef enum _WMI_NLO_SSID_BcastNwType {
|
|||
#define WMI_NLO_MAX_SSIDS 16
|
||||
#define WMI_NLO_MAX_CHAN 48
|
||||
|
||||
#define WMI_NLO_CONFIG_STOP (0x1 << 0)
|
||||
#define WMI_NLO_CONFIG_START (0x1 << 1)
|
||||
#define WMI_NLO_CONFIG_RESET (0x1 << 2)
|
||||
#define WMI_NLO_CONFIG_SLOW_SCAN (0x1 << 4)
|
||||
#define WMI_NLO_CONFIG_FAST_SCAN (0x1 << 5)
|
||||
#define WMI_NLO_CONFIG_SSID_HIDE_EN (0x1 << 6)
|
||||
#define WMI_NLO_CONFIG_STOP (0x1 << 0)
|
||||
#define WMI_NLO_CONFIG_START (0x1 << 1)
|
||||
#define WMI_NLO_CONFIG_RESET (0x1 << 2)
|
||||
#define WMI_NLO_CONFIG_SLOW_SCAN (0x1 << 4)
|
||||
#define WMI_NLO_CONFIG_FAST_SCAN (0x1 << 5)
|
||||
#define WMI_NLO_CONFIG_SSID_HIDE_EN (0x1 << 6)
|
||||
/* This bit is used to indicate if EPNO or supplicant PNO is enabled. Only
|
||||
* one of them can be enabled at a given time */
|
||||
#define WMI_NLO_CONFIG_ENLO (0x1 << 7)
|
||||
#define WMI_NLO_CONFIG_SCAN_PASSIVE (0x1 << 8)
|
||||
#define WMI_NLO_CONFIG_ENLO_RESET (0x1 << 9)
|
||||
#define WMI_NLO_CONFIG_ENLO (0x1 << 7)
|
||||
#define WMI_NLO_CONFIG_SCAN_PASSIVE (0x1 << 8)
|
||||
#define WMI_NLO_CONFIG_ENLO_RESET (0x1 << 9)
|
||||
#define WMI_NLO_CONFIG_SPOOFED_MAC_IN_PROBE_REQ (0x1 << 10)
|
||||
#define WMI_NLO_CONFIG_RANDOM_SEQ_NO_IN_PROBE_REQ (0x1 << 11)
|
||||
#define WMI_NLO_CONFIG_ENABLE_IE_WHITELIST_IN_PROBE_REQ (0x1 << 12)
|
||||
|
||||
/* Whether directed scan needs to be performed (for hidden SSIDs) */
|
||||
#define WMI_ENLO_FLAG_DIRECTED_SCAN 1
|
||||
|
|
@ -10311,11 +10346,20 @@ typedef struct wmi_nlo_config {
|
|||
A_UINT32 no_of_ssids;
|
||||
A_UINT32 num_of_channels;
|
||||
A_UINT32 delay_start_time; /* NLO scan start delay time in milliseconds */
|
||||
/** MAC Address to use in Probe Req as SA **/
|
||||
wmi_mac_addr mac_addr;
|
||||
/** Mask on which MAC has to be randomized **/
|
||||
wmi_mac_addr mac_mask;
|
||||
/** IE bitmap to use in Probe Req **/
|
||||
A_UINT32 ie_bitmap[WMI_IE_BITMAP_SIZE];
|
||||
/** Number of vendor OUIs. In the TLV vendor_oui[] **/
|
||||
A_UINT32 num_vendor_oui;
|
||||
/* The TLVs will follow.
|
||||
* nlo_configured_parameters nlo_list[];
|
||||
* A_UINT32 channel_list[];
|
||||
* nlo_channel_prediction_cfg ch_prediction_cfg;
|
||||
* enlo_candidate_score_params candidate_score_params;
|
||||
* wmi_vendor_oui vendor_oui[];
|
||||
*/
|
||||
|
||||
} wmi_nlo_config_cmd_fixed_param;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
#define __WMI_VER_MINOR_ 0
|
||||
/** WMI revision number has to be incremented when there is a
|
||||
* change that may or may not break compatibility */
|
||||
#define __WMI_REVISION_ 310
|
||||
#define __WMI_REVISION_ 312
|
||||
|
||||
/** The Version Namespace should not be normally changed. Only
|
||||
* host and firmware of the same WMI namespace will work
|
||||
|
|
|
|||
Loading…
Reference in a new issue