summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/mac/src/pe/lim/lim_process_message_queue.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/core/mac/src/pe/lim/lim_process_message_queue.c b/core/mac/src/pe/lim/lim_process_message_queue.c
index b3c3f44723ae..29f515b2cad8 100644
--- a/core/mac/src/pe/lim/lim_process_message_queue.c
+++ b/core/mac/src/pe/lim/lim_process_message_queue.c
@@ -242,63 +242,6 @@ static void lim_process_set_antenna_resp(tpAniSirGlobal mac, void *body)
}
/**
- * lim_update_default_scan_ies() - Update Extended capabilities IE(if present)
- * with capabilities of Fine Time measurements(FTM) if set in driver
- *
- * @mac_ctx: Pointer to Global MAC structure
- * @ie_data: Default Scan IE data
- * @local_ie_buf: Local Scan IE data
- * @local_ie_len: Pointer to length of @ie_data
- *
- * Return: eSIR_SUCCESS on success, eSIR_FAILURE otherwise
- */
-tSirRetStatus lim_update_default_scan_ies(tpAniSirGlobal mac_ctx,
- uint8_t *ie_data, uint8_t *local_ie_buf, uint16_t *local_ie_len)
-{
- uint32_t dot11mode;
- bool vht_enabled = false;
- tDot11fIEExtCap default_scan_ext_cap = {0}, driver_ext_cap = {0};
- uint8_t ext_cap_ie_hdr[EXT_CAP_IE_HDR_LEN] = {
- DOT11F_EID_EXTCAP, DOT11F_IE_EXTCAP_MAX_LEN};
- tSirRetStatus status;
-
- status = lim_strip_extcap_update_struct(mac_ctx, ie_data,
- local_ie_len, &default_scan_ext_cap);
- if (eSIR_SUCCESS != status ||
- (((*local_ie_len) + EXT_CAP_IE_HDR_LEN
- + DOT11F_IE_EXTCAP_MAX_LEN) > MAX_DEFAULT_SCAN_IE_LEN)) {
- lim_log(mac_ctx, LOGE, FL("Strip ext cap fails(%d)"), status);
- return eSIR_FAILURE;
- }
-
- qdf_mem_copy(local_ie_buf, ie_data, (*local_ie_len));
- qdf_mem_copy(local_ie_buf + (*local_ie_len),
- ext_cap_ie_hdr, EXT_CAP_IE_HDR_LEN);
- (*local_ie_len) += EXT_CAP_IE_HDR_LEN;
-
- wlan_cfg_get_int(mac_ctx, WNI_CFG_DOT11_MODE, &dot11mode);
- if (IS_DOT11_MODE_VHT(dot11mode))
- vht_enabled = true;
-
- status = populate_dot11f_ext_cap(mac_ctx, vht_enabled,
- &driver_ext_cap, NULL);
- if (eSIR_SUCCESS != status) {
- lim_log(mac_ctx, LOGE, FL("Update ext cap fails"));
- qdf_mem_copy(local_ie_buf + (*local_ie_len),
- default_scan_ext_cap.bytes,
- DOT11F_IE_EXTCAP_MAX_LEN);
- (*local_ie_len) += DOT11F_IE_EXTCAP_MAX_LEN;
- return eSIR_SUCCESS;
- }
- lim_merge_extcap_struct(&driver_ext_cap, &default_scan_ext_cap);
-
- qdf_mem_copy(local_ie_buf + (*local_ie_len),
- driver_ext_cap.bytes, DOT11F_IE_EXTCAP_MAX_LEN);
- (*local_ie_len) += DOT11F_IE_EXTCAP_MAX_LEN;
- return eSIR_SUCCESS;
-}
-
-/**
* lim_process_set_default_scan_ie_request() - Process the Set default
* Scan IE request from HDD.
* @mac_ctx: Pointer to Global MAC structure