blob: 0c97919c3d9fefccfc7a9e18581192978d465658 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
2 * Copyright (c) 2011-2012, 2014 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.
20 */
21
22/*
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/*
29 *
30 * This file lim_ibss_peer_mgmt.h contains prototypes for
31 * the utility functions LIM uses to maintain peers in IBSS.
32 * Author: Chandra Modumudi
33 * Date: 03/12/04
34 * History:-
35 * Date Modified by Modification Information
36 * --------------------------------------------------------------------
37 */
38
39#include "sir_common.h"
40#include "lim_utils.h"
41
42#define IBSS_STATIONS_USED_DURING_INIT 4 /* (broadcast + self + p2p + softap) */
43
44void lim_ibss_init(tpAniSirGlobal);
45void lim_ibss_delete(tpAniSirGlobal, tpPESession psessionEntry);
46tSirRetStatus lim_ibss_coalesce(tpAniSirGlobal, tpSirMacMgmtHdr,
47 tpSchBeaconStruct, uint8_t *, uint32_t, uint16_t,
48 tpPESession);
49tSirRetStatus lim_ibss_sta_add(tpAniSirGlobal, void *, tpPESession);
50tSirRetStatus lim_ibss_add_sta_rsp(tpAniSirGlobal, void *, tpPESession);
51tLimIbssPeerNode *lim_ibss_peer_find(tpAniSirGlobal pMac, tSirMacAddr macAddr);
52void lim_ibss_del_bss_rsp(tpAniSirGlobal, void *, tpPESession);
53void lim_ibss_del_bss_rsp_when_coalescing(tpAniSirGlobal, void *, tpPESession);
54void lim_ibss_add_bss_rsp_when_coalescing(tpAniSirGlobal pMac, void *msg,
55 tpPESession pSessionEntry);
56void lim_ibss_decide_protection_on_delete(tpAniSirGlobal pMac, tpDphHashNode pStaDs,
57 tpUpdateBeaconParams pBeaconParams,
58 tpPESession pSessionEntry);
59void lim_ibss_heart_beat_handle(tpAniSirGlobal pMac, tpPESession psessionEntry);
60void lim_process_ibss_peer_inactivity(tpAniSirGlobal pMac, void *buf);