blob: 04db805e19f82087e5e5600e4106904e9b3159a2 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
2 * Copyright (c) 2011-2015 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 * Author: Sandesh Goel
31 * Date: 02/25/02
32 * History:-
33 * Date Modified by Modification Information
34 * --------------------------------------------------------------------
35 *
36 */
37
38#ifndef __SCH_API_H__
39#define __SCH_API_H__
40
41#include "sir_common.h"
42#include "sir_mac_prot_def.h"
43
44#include "ani_global.h"
45
46/* / Send start scan response message */
47extern void sch_send_start_scan_rsp(tpAniSirGlobal pMac);
48
49/* update only the broadcast qos params */
50extern void sch_qos_update_broadcast(tpAniSirGlobal pMac,
51 tpPESession psessionEntry);
52
53/* fill in the default local edca parameter into gLimEdcaParams[] */
54extern void sch_set_default_edca_params(tpAniSirGlobal pMac, tpPESession psessionE);
55
56/* update only local qos params */
57extern void sch_qos_update_local(tpAniSirGlobal pMac, tpPESession psessionEntry);
58
59/* update the edca profile parameters */
60extern void sch_edca_profile_update(tpAniSirGlobal pMac,
61 tpPESession psessionEntry);
62
63/* / Set the fixed fields in a beacon frame */
64extern tSirRetStatus sch_set_fixed_beacon_fields(tpAniSirGlobal pMac,
65 tpPESession psessionEntry);
66
67/* / Initialize globals */
68extern void sch_init_globals(tpAniSirGlobal pMac);
69
70/* / Initialize CF Poll template */
71extern void sch_initializeCfPollTemplate(tpAniSirGlobal pMac);
72
73/* / Initialize CF End template */
74extern void sch_initializeCfEndTemplate(tpAniSirGlobal pMac);
75
76/* / Process the scheduler messages */
77extern void sch_process_message(tpAniSirGlobal pMac, tpSirMsgQ pSchMsg);
78
79/* / The beacon Indication handler function */
80extern void sch_process_pre_beacon_ind(tpAniSirGlobal pMac, tpSirMsgQ limMsg);
81
82/* / Post a message to the scheduler message queue */
83extern tSirRetStatus sch_post_message(tpAniSirGlobal pMac, tpSirMsgQ pMsg);
84
85extern void sch_beacon_process(tpAniSirGlobal pMac, uint8_t *pRxPacketInfo,
86 tpPESession psessionEntry);
87extern tSirRetStatus sch_beacon_edca_process(tpAniSirGlobal pMac,
88 tSirMacEdcaParamSetIE *edca,
89 tpPESession psessionEntry);
90
91void sch_generate_tim(tpAniSirGlobal, uint8_t **, uint16_t *, uint8_t);
92#define SCH_RR_TIMEOUT (SCH_RR_TIMEOUT_MS / SYS_TICK_DUR_MS)
93
94void sch_set_beacon_interval(tpAniSirGlobal pMac, tpPESession psessionEntry);
95
96tSirRetStatus sch_send_beacon_req(tpAniSirGlobal, uint8_t *, uint16_t,
97 tpPESession psessionEntry);
98
99tSirRetStatus lim_update_probe_rsp_template_ie_bitmap_beacon1(tpAniSirGlobal,
100 tDot11fBeacon1 *,
101 tpPESession
102 psessionEntry);
103void lim_update_probe_rsp_template_ie_bitmap_beacon2(tpAniSirGlobal, tDot11fBeacon2 *,
104 uint32_t *,
105 tDot11fProbeResponse *);
106void set_probe_rsp_ie_bitmap(uint32_t *, uint32_t);
107uint32_t lim_send_probe_rsp_template_to_hal(tpAniSirGlobal, tpPESession, uint32_t *);
108
109int sch_gen_timing_advert_frame(tpAniSirGlobal pMac, tSirMacAddr self_addr,
110 uint8_t **buf, uint32_t *timestamp_offset, uint32_t *time_value_offset);
111
112#endif