Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
AnjaneeDevi Kapparapu | 24b52ff | 2014-02-18 18:44:02 -0800 | [diff] [blame] | 2 | * 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 Nakkala | 9c070ad | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 20 | */ |
AnjaneeDevi Kapparapu | 24b52ff | 2014-02-18 18:44:02 -0800 | [diff] [blame] | 21 | |
Gopichand Nakkala | 9c070ad | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 22 | /* |
AnjaneeDevi Kapparapu | 24b52ff | 2014-02-18 18:44:02 -0800 | [diff] [blame] | 23 | * 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 Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 29 | * 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 |
| 44 | tANI_U8 limScanHashFunction(tSirMacAddr); |
| 45 | void limInitHashTable(tpAniSirGlobal); |
Abhishek Singh | 56c2981 | 2018-06-12 14:07:52 +0530 | [diff] [blame] | 46 | |
| 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 | */ |
| 61 | eHalStatus limLookupNaddHashEntry(tpAniSirGlobal pMac, |
| 62 | tLimScanResultNode *pBssDescr, tANI_U8 action, |
| 63 | tANI_U8 dontUpdateAll, tANI_U32 ie_len, |
| 64 | bool chan_info_present); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 65 | void limDeleteHashEntry(tLimScanResultNode *); |
| 66 | void limDeleteCachedScanResults(tpAniSirGlobal); |
| 67 | void limRestorePreScanState(tpAniSirGlobal); |
| 68 | void limCopyScanResult(tpAniSirGlobal, tANI_U8 *); |
| 69 | void limReInitScanResults(tpAniSirGlobal); |
Varun Reddy Yeturu | 0861470 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 70 | #ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD |
| 71 | void limInitLfrHashTable(tpAniSirGlobal); |
| 72 | eHalStatus |
Abhinav Kumar | b2347d4 | 2018-06-13 12:44:14 +0530 | [diff] [blame] | 73 | limLookupNaddLfrHashEntry(tpAniSirGlobal, tLimScanResultNode *, |
| 74 | tANI_U8, tANI_U8, tANI_U32); |
Varun Reddy Yeturu | 0861470 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 75 | void limDeleteLfrHashEntry(tLimScanResultNode *); |
| 76 | void limDeleteCachedLfrScanResults(tpAniSirGlobal); |
| 77 | void limReInitLfrScanResults(tpAniSirGlobal); |
| 78 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 79 | tANI_U32 limDeactivateMinChannelTimerDuringScan(tpAniSirGlobal); |
| 80 | void limCheckAndAddBssDescription(tpAniSirGlobal, tpSirProbeRespBeacon, tANI_U8 *, tANI_BOOLEAN, tANI_U8); |
| 81 | #if defined WLAN_FEATURE_VOWIFI |
Ganesh Kondabattini | 62feb16 | 2016-01-14 17:41:05 +0530 | [diff] [blame] | 82 | void limCollectBssDescription(tpAniSirGlobal, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 83 | tSirBssDescription *, |
| 84 | tpSirProbeRespBeacon, |
| 85 | tANI_U8 *, |
| 86 | tANI_U8); |
| 87 | #else |
Ganesh Kondabattini | 62feb16 | 2016-01-14 17:41:05 +0530 | [diff] [blame] | 88 | void limCollectBssDescription(tpAniSirGlobal, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 89 | tSirBssDescription *, |
| 90 | tpSirProbeRespBeacon, |
| 91 | tANI_U8 *); |
| 92 | #endif |
| 93 | |
| 94 | #endif /* __LIM_SCAN_UTILS_H */ |