| /* |
| * Copyright (c) 2011-2012, 2014-2018 The Linux Foundation. All rights reserved. |
| * |
| * Permission to use, copy, modify, and/or distribute this software for |
| * any purpose with or without fee is hereby granted, provided that the |
| * above copyright notice and this permission notice appear in all |
| * copies. |
| * |
| * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| * PERFORMANCE OF THIS SOFTWARE. |
| */ |
| |
| /* |
| * |
| * This file lim_ibss_peer_mgmt.h contains prototypes for |
| * the utility functions LIM uses to maintain peers in IBSS. |
| * Author: Chandra Modumudi |
| * Date: 03/12/04 |
| * History:- |
| * Date Modified by Modification Information |
| * -------------------------------------------------------------------- |
| */ |
| |
| #include "sir_common.h" |
| #include "lim_utils.h" |
| |
| /** |
| * ibss_bss_delete()- start the ibss |
| * @mac_ctx: Pointer to Global MAC structure |
| * @session: pe session |
| * |
| * Return: None |
| */ |
| void ibss_bss_add(tpAniSirGlobal mac_ctx, tpPESession session); |
| |
| /** |
| * ibss_bss_delete()- delete the current BSS |
| * @mac_ctx: Pointer to Global MAC structure |
| * @session: pe session |
| * |
| * Return: None |
| */ |
| void ibss_bss_delete(tpAniSirGlobal mac_ctx, tpPESession session); |
| |
| /** |
| * lim_ibss_delete_all_peers: delete all IBSS peers. |
| * @mac_ctx: Pointer to Global MAC structure |
| * @session: pe session |
| * |
| * Return: None |
| */ |
| void lim_ibss_delete_all_peers(tpAniSirGlobal mac_ctx, tpPESession session); |
| |
| void lim_ibss_init(tpAniSirGlobal); |
| void lim_ibss_delete(tpAniSirGlobal, tpPESession psessionEntry); |
| QDF_STATUS lim_ibss_coalesce(tpAniSirGlobal, tpSirMacMgmtHdr, |
| tpSchBeaconStruct, uint8_t *, uint32_t, uint16_t, |
| tpPESession); |
| QDF_STATUS lim_ibss_sta_add(tpAniSirGlobal, void *, tpPESession); |
| QDF_STATUS lim_ibss_add_sta_rsp(tpAniSirGlobal, void *, tpPESession); |
| |
| /** |
| * lim_process_ibss_del_sta_rsp()- Handle ibss delete |
| * peer resp from firmware |
| * |
| * @mac_ptr: Pointer to Global MAC structure |
| * @lim_msg: delete sta response |
| * @pe_session: pe session |
| * |
| * Return: None |
| * |
| */ |
| void lim_process_ibss_del_sta_rsp(tpAniSirGlobal mac_ctx, |
| struct scheduler_msg *lim_msg, |
| tpPESession pe_session); |
| tLimIbssPeerNode *lim_ibss_peer_find(tpAniSirGlobal pMac, tSirMacAddr macAddr); |
| void lim_ibss_del_bss_rsp(tpAniSirGlobal, void *, tpPESession); |
| void lim_ibss_del_bss_rsp_when_coalescing(tpAniSirGlobal, void *, tpPESession); |
| void lim_ibss_add_bss_rsp_when_coalescing(tpAniSirGlobal pMac, void *msg, |
| tpPESession pSessionEntry); |
| void lim_ibss_decide_protection_on_delete(tpAniSirGlobal pMac, tpDphHashNode pStaDs, |
| tpUpdateBeaconParams pBeaconParams, |
| tpPESession pSessionEntry); |
| void lim_ibss_heart_beat_handle(tpAniSirGlobal pMac, tpPESession psessionEntry); |
| void lim_process_ibss_peer_inactivity(tpAniSirGlobal pMac, void *buf); |