blob: edd071a2c4381f44f1ae1da95ecd1805e41717df [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
AnjaneeDevi Kapparapu24b52ff2014-02-18 18:44:02 -08002 * Copyright (c) 2012-2013 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
Gopichand Nakkala9c070ad2013-01-08 21:16:34 -080020 */
AnjaneeDevi Kapparapu24b52ff2014-02-18 18:44:02 -080021
Gopichand Nakkala9c070ad2013-01-08 21:16:34 -080022/*
AnjaneeDevi Kapparapu24b52ff2014-02-18 18:44:02 -080023 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
28/*
Jeff Johnson295189b2012-06-20 16:38:30 -070029 * This file limScanResultUtils.h contains the utility definitions
30 * LIM uses for maintaining and accessing scan results on STA.
31 * Author: Chandra Modumudi
32 * Date: 02/13/02
33 * History:-
34 * Date Modified by Modification Information
35 * --------------------------------------------------------------------
36 */
37#ifndef __LIM_SCAN_UTILS_H
38#define __LIM_SCAN_UTILS_H
39
40#include "parserApi.h"
41#include "limTypes.h"
42
43// Scan result hash related functions
44tANI_U8 limScanHashFunction(tSirMacAddr);
45void limInitHashTable(tpAniSirGlobal);
Abhishek Singh56c29812018-06-12 14:07:52 +053046
47/**
48 * limLookupNaddHashEntry() - store received BSS description into scan result
49 * hash table to be sent to CSR on scan complete.
50 * @pMac: Pointer to Global MAC structure
51 * @pBssDescr: Pointer to BSS description to be added to the scan result
52 * hash table.
53 * @action: Indicates action to be performed when same BSS description is found.
54 * This is dependent on whether unique scan result to be stored or not.
55 * @dontUpdateAll: do not update RSSI
56 * @ie_len: ie len to validate
57 * @chan_info_present: if channel info is present in beacon (DS param or HT ie)
58 *
59 * Return: status of operation
60 */
61eHalStatus limLookupNaddHashEntry(tpAniSirGlobal pMac,
62 tLimScanResultNode *pBssDescr, tANI_U8 action,
63 tANI_U8 dontUpdateAll, tANI_U32 ie_len,
64 bool chan_info_present);
Jeff Johnson295189b2012-06-20 16:38:30 -070065void limDeleteHashEntry(tLimScanResultNode *);
66void limDeleteCachedScanResults(tpAniSirGlobal);
67void limRestorePreScanState(tpAniSirGlobal);
68void limCopyScanResult(tpAniSirGlobal, tANI_U8 *);
69void limReInitScanResults(tpAniSirGlobal);
Varun Reddy Yeturu08614702013-04-15 21:58:13 -070070#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
71void limInitLfrHashTable(tpAniSirGlobal);
72eHalStatus
Abhinav Kumarb2347d42018-06-13 12:44:14 +053073 limLookupNaddLfrHashEntry(tpAniSirGlobal, tLimScanResultNode *,
74 tANI_U8, tANI_U8, tANI_U32);
Varun Reddy Yeturu08614702013-04-15 21:58:13 -070075void limDeleteLfrHashEntry(tLimScanResultNode *);
76void limDeleteCachedLfrScanResults(tpAniSirGlobal);
77void limReInitLfrScanResults(tpAniSirGlobal);
78#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070079tANI_U32 limDeactivateMinChannelTimerDuringScan(tpAniSirGlobal);
80void limCheckAndAddBssDescription(tpAniSirGlobal, tpSirProbeRespBeacon, tANI_U8 *, tANI_BOOLEAN, tANI_U8);
81#if defined WLAN_FEATURE_VOWIFI
Ganesh Kondabattini62feb162016-01-14 17:41:05 +053082void limCollectBssDescription(tpAniSirGlobal,
Jeff Johnson295189b2012-06-20 16:38:30 -070083 tSirBssDescription *,
84 tpSirProbeRespBeacon,
85 tANI_U8 *,
86 tANI_U8);
87#else
Ganesh Kondabattini62feb162016-01-14 17:41:05 +053088void limCollectBssDescription(tpAniSirGlobal,
Jeff Johnson295189b2012-06-20 16:38:30 -070089 tSirBssDescription *,
90 tpSirProbeRespBeacon,
91 tANI_U8 *);
92#endif
93
94#endif /* __LIM_SCAN_UTILS_H */