Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | /* |
Amar Singhal | a297bfa | 2015-10-15 15:07:29 -0700 | [diff] [blame] | 2 | * Copyright (c) 2011-2016 The Linux Foundation. All rights reserved. |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 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 | * lim_send_messages.h: Provides functions to send messages or Indications to HAL. |
| 31 | * Author: Sunit Bhatia |
| 32 | * Date: 09/21/2006 |
| 33 | * History:- |
| 34 | * Date Modified by Modification Information |
| 35 | * |
| 36 | * -------------------------------------------------------------------------- |
| 37 | * |
| 38 | */ |
| 39 | #ifndef __LIM_SEND_MESSAGES_H |
| 40 | #define __LIM_SEND_MESSAGES_H |
| 41 | |
| 42 | #include "ani_global.h" |
| 43 | #include "lim_types.h" |
| 44 | #include "wma_if.h" |
| 45 | #include "sir_params.h" |
| 46 | tSirRetStatus lim_send_cf_params(tpAniSirGlobal pMac, uint8_t bssIdx, |
| 47 | uint8_t cfpCount, uint8_t cfpPeriod); |
| 48 | tSirRetStatus lim_send_beacon_params(tpAniSirGlobal pMac, |
| 49 | tpUpdateBeaconParams pUpdatedBcnParams, |
| 50 | tpPESession psessionEntry); |
| 51 | /* tSirRetStatus lim_send_beacon_params(tpAniSirGlobal pMac, tpUpdateBeaconParams pUpdatedBcnParams); */ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 52 | tSirRetStatus lim_send_mode_update(tpAniSirGlobal pMac, |
| 53 | tUpdateVHTOpMode *tempParam, |
| 54 | tpPESession psessionEntry); |
| 55 | tSirRetStatus lim_send_rx_nss_update(tpAniSirGlobal pMac, |
| 56 | tUpdateRxNss *tempParam, |
| 57 | tpPESession psessionEntry); |
| 58 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 59 | tSirRetStatus lim_set_membership(tpAniSirGlobal pMac, |
| 60 | tUpdateMembership *pTempParam, |
| 61 | tpPESession psessionEntry); |
| 62 | |
| 63 | tSirRetStatus lim_set_user_pos(tpAniSirGlobal pMac, |
| 64 | tUpdateUserPos *pTempParam, |
| 65 | tpPESession psessionEntry); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 66 | #if defined WLAN_FEATURE_VOWIFI |
| 67 | tSirRetStatus lim_send_switch_chnl_params(tpAniSirGlobal pMac, |
| 68 | uint8_t chnlNumber, |
| 69 | uint8_t ch_center_freq_seg0, |
| 70 | uint8_t ch_center_freq_seg1, |
| 71 | phy_ch_width ch_width, |
Amar Singhal | a297bfa | 2015-10-15 15:07:29 -0700 | [diff] [blame] | 72 | int8_t maxTxPower, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 73 | uint8_t peSessionId, |
| 74 | uint8_t is_restart); |
| 75 | #else |
| 76 | tSirRetStatus lim_send_switch_chnl_params(tpAniSirGlobal pMac, |
| 77 | uint8_t chnlNumber, |
| 78 | uint8_t ch_center_freq_seg0, |
| 79 | uint8_t ch_center_freq_seg1, |
| 80 | phy_ch_width ch_width, |
| 81 | uint8_t localPwrConstraint, |
| 82 | uint8_t peSessionId, |
| 83 | uint8_t is_restart); |
| 84 | #endif |
| 85 | tSirRetStatus lim_send_edca_params(tpAniSirGlobal pMac, |
| 86 | tSirMacEdcaParamRecord *pUpdatedEdcaParams, |
| 87 | uint16_t bssIdx); |
| 88 | tSirRetStatus lim_set_link_state(tpAniSirGlobal pMac, tSirLinkState state, |
| 89 | tSirMacAddr bssId, tSirMacAddr selfMac, |
| 90 | tpSetLinkStateCallback callback, |
| 91 | void *callbackArg); |
| 92 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 93 | extern tSirRetStatus lim_set_link_state_ft(tpAniSirGlobal pMac, tSirLinkState |
| 94 | state, tSirMacAddr bssId, |
| 95 | tSirMacAddr selfMacAddr, int ft, |
| 96 | tpPESession psessionEntry); |
| 97 | #endif |
| 98 | void lim_set_active_edca_params(tpAniSirGlobal pMac, |
| 99 | tSirMacEdcaParamRecord *plocalEdcaParams, |
| 100 | tpPESession psessionEntry); |
| 101 | #define CAPABILITY_FILTER_MASK 0x73CF |
| 102 | #define ERP_FILTER_MASK 0xF8 |
| 103 | #define EDCA_FILTER_MASK 0xF0 |
| 104 | #define QOS_FILTER_MASK 0xF0 |
| 105 | #define HT_BYTE0_FILTER_MASK 0x0 |
| 106 | #define HT_BYTE2_FILTER_MASK 0xEB |
| 107 | #define HT_BYTE5_FILTER_MASK 0xFD |
| 108 | #define DS_PARAM_CHANNEL_MASK 0x0 |
| 109 | #define VHTOP_CHWIDTH_MASK 0xFC |
| 110 | |
| 111 | tSirRetStatus lim_send_beacon_filter_info(tpAniSirGlobal pMac, |
| 112 | tpPESession psessionEntry); |
| 113 | |
| 114 | #ifdef WLAN_FEATURE_11W |
| 115 | tSirRetStatus lim_send_exclude_unencrypt_ind(tpAniSirGlobal pMac, |
| 116 | bool excludeUnenc, |
| 117 | tpPESession psessionEntry); |
| 118 | #endif |
| 119 | #endif |