Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | /* |
Abhishek Singh | 3df7661 | 2017-05-16 14:05:32 +0530 | [diff] [blame] | 2 | * Copyright (c) 2011-2012, 2014-2017 The Linux Foundation. All rights reserved. |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 3 | * |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 4 | * Permission to use, copy, modify, and/or distribute this software for |
| 5 | * any purpose with or without fee is hereby granted, provided that the |
| 6 | * above copyright notice and this permission notice appear in all |
| 7 | * copies. |
| 8 | * |
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 10 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 11 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 12 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 13 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 14 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 15 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 16 | * PERFORMANCE OF THIS SOFTWARE. |
| 17 | */ |
| 18 | |
| 19 | /* |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 20 | * |
| 21 | * This file lim_ibss_peer_mgmt.h contains prototypes for |
| 22 | * the utility functions LIM uses to maintain peers in IBSS. |
| 23 | * Author: Chandra Modumudi |
| 24 | * Date: 03/12/04 |
| 25 | * History:- |
| 26 | * Date Modified by Modification Information |
| 27 | * -------------------------------------------------------------------- |
| 28 | */ |
| 29 | |
| 30 | #include "sir_common.h" |
| 31 | #include "lim_utils.h" |
| 32 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 33 | void lim_ibss_init(tpAniSirGlobal); |
| 34 | void lim_ibss_delete(tpAniSirGlobal, tpPESession psessionEntry); |
| 35 | tSirRetStatus lim_ibss_coalesce(tpAniSirGlobal, tpSirMacMgmtHdr, |
| 36 | tpSchBeaconStruct, uint8_t *, uint32_t, uint16_t, |
| 37 | tpPESession); |
| 38 | tSirRetStatus lim_ibss_sta_add(tpAniSirGlobal, void *, tpPESession); |
| 39 | tSirRetStatus lim_ibss_add_sta_rsp(tpAniSirGlobal, void *, tpPESession); |
Abhishek Singh | 3df7661 | 2017-05-16 14:05:32 +0530 | [diff] [blame] | 40 | |
| 41 | /** |
| 42 | * lim_process_ibss_del_sta_rsp()- Handle ibss delete |
| 43 | * peer resp from firmware |
| 44 | * |
| 45 | * @mac_ptr: Pointer to Global MAC structure |
| 46 | * @lim_msg: delete sta response |
| 47 | * @pe_session: pe session |
| 48 | * |
| 49 | * Return: None |
| 50 | * |
| 51 | */ |
| 52 | void lim_process_ibss_del_sta_rsp(tpAniSirGlobal mac_ctx, |
| 53 | struct scheduler_msg *lim_msg, |
| 54 | tpPESession pe_session); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 55 | tLimIbssPeerNode *lim_ibss_peer_find(tpAniSirGlobal pMac, tSirMacAddr macAddr); |
| 56 | void lim_ibss_del_bss_rsp(tpAniSirGlobal, void *, tpPESession); |
| 57 | void lim_ibss_del_bss_rsp_when_coalescing(tpAniSirGlobal, void *, tpPESession); |
| 58 | void lim_ibss_add_bss_rsp_when_coalescing(tpAniSirGlobal pMac, void *msg, |
| 59 | tpPESession pSessionEntry); |
| 60 | void lim_ibss_decide_protection_on_delete(tpAniSirGlobal pMac, tpDphHashNode pStaDs, |
| 61 | tpUpdateBeaconParams pBeaconParams, |
| 62 | tpPESession pSessionEntry); |
| 63 | void lim_ibss_heart_beat_handle(tpAniSirGlobal pMac, tpPESession psessionEntry); |
| 64 | void lim_process_ibss_peer_inactivity(tpAniSirGlobal pMac, void *buf); |