Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | /* |
Abhinav Kumar | f998958 | 2018-02-06 17:42:22 +0530 | [diff] [blame] | 2 | * Copyright (c) 2012-2018 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 | * This file lim_send_sme_rsp_messages.h contains the definitions for |
| 21 | * sending SME response/notification messages to applications above |
| 22 | * MAC software. |
| 23 | * Author: Chandra Modumudi |
| 24 | * Date: 02/11/02 |
| 25 | * History:- |
| 26 | * Date Modified by Modification Information |
| 27 | * -------------------------------------------------------------------- |
| 28 | * |
| 29 | */ |
| 30 | #ifndef __LIM_SEND_SME_RSP_H |
| 31 | #define __LIM_SEND_SME_RSP_H |
| 32 | |
| 33 | #include "sir_common.h" |
| 34 | #include "sir_api.h" |
| 35 | #include "sir_mac_prot_def.h" |
| 36 | |
| 37 | /* Functions for sending responses to Host */ |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 38 | void lim_send_sme_rsp(struct mac_context *, uint16_t, tSirResultCodes, uint8_t, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 39 | uint16_t); |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 40 | void lim_send_sme_roc_rsp(struct mac_context *mac_ctx, uint16_t msg_type, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 41 | tSirResultCodes result_code, uint8_t sme_session_id, |
| 42 | uint32_t scan_id); |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 43 | void lim_send_sme_start_bss_rsp(struct mac_context *, uint16_t, tSirResultCodes, |
Jeff Johnson | d7035a3 | 2018-11-18 22:03:13 -0800 | [diff] [blame] | 44 | struct pe_session *, uint8_t, uint16_t); |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 45 | void lim_send_sme_join_reassoc_rsp(struct mac_context *, uint16_t, tSirResultCodes, |
Jeff Johnson | d7035a3 | 2018-11-18 22:03:13 -0800 | [diff] [blame] | 46 | uint16_t, struct pe_session *, uint8_t, uint16_t); |
Vignesh Viswanathan | 5b909f5 | 2018-05-15 20:13:35 +0530 | [diff] [blame] | 47 | |
| 48 | /* |
| 49 | * lim_prepare_disconnect_done_ind() - Prepares the disconnect done ind message |
| 50 | * @mac_ctx: Global mac_ctx |
| 51 | * @session_id: PE session id |
| 52 | * @reason_code: Disconnect indication reason code |
| 53 | * @peer_mac_addr: MAC address of the peer |
| 54 | * |
| 55 | * Prepares the disconnect done indication message to be sent to the upper layer |
| 56 | * |
| 57 | * Return: QDF Status |
| 58 | */ |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 59 | QDF_STATUS lim_prepare_disconnect_done_ind(struct mac_context *mac_ctx, |
Vignesh Viswanathan | 5b909f5 | 2018-05-15 20:13:35 +0530 | [diff] [blame] | 60 | uint32_t **msg, |
| 61 | uint8_t session_id, |
| 62 | tSirResultCodes reason_code, |
| 63 | uint8_t *peer_mac_addr); |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 64 | void lim_send_sme_disassoc_ntf(struct mac_context *, tSirMacAddr, tSirResultCodes, |
Jeff Johnson | d7035a3 | 2018-11-18 22:03:13 -0800 | [diff] [blame] | 65 | uint16_t, uint16_t, uint8_t, uint16_t, struct pe_session *); |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 66 | void lim_send_sme_deauth_ntf(struct mac_context *, tSirMacAddr, tSirResultCodes, uint16_t, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 67 | uint16_t, uint8_t, uint16_t); |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 68 | void lim_send_sme_disassoc_ind(struct mac_context *, tpDphHashNode, struct pe_session *); |
| 69 | void lim_send_sme_deauth_ind(struct mac_context *, tpDphHashNode, |
Jeff Johnson | b5c1333 | 2018-12-03 09:54:51 -0800 | [diff] [blame] | 70 | struct pe_session *pe_session); |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 71 | void lim_send_sme_wm_status_change_ntf(struct mac_context *, tSirSmeStatusChangeCode, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 72 | uint32_t *, uint16_t, uint8_t); |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 73 | void lim_send_sme_set_context_rsp(struct mac_context *, struct qdf_mac_addr, uint16_t, |
Jeff Johnson | d7035a3 | 2018-11-18 22:03:13 -0800 | [diff] [blame] | 74 | tSirResultCodes, struct pe_session *, uint8_t, uint16_t); |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 75 | void lim_handle_delete_bss_rsp(struct mac_context *mac, struct scheduler_msg *MsgQ); |
| 76 | void lim_handle_csa_offload_msg(struct mac_context *mac_ctx, |
Rajeev Kumar | feb9638 | 2017-01-22 19:42:09 -0800 | [diff] [blame] | 77 | struct scheduler_msg *msg); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 78 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 79 | void |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 80 | lim_send_sme_aggr_qos_rsp(struct mac_context *mac, tpSirAggrQosRsp aggrQosRsp, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 81 | uint8_t smesessionId); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 82 | |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 83 | void lim_send_sme_addts_rsp(struct mac_context *mac, uint8_t rspReqd, uint32_t status, |
Jeff Johnson | b5c1333 | 2018-12-03 09:54:51 -0800 | [diff] [blame] | 84 | struct pe_session *pe_session, tSirMacTspecIE tspec, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 85 | uint8_t smesessionId, uint16_t smetransactionId); |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 86 | void lim_send_sme_delts_rsp(struct mac_context *mac, tpSirDeltsReq delts, |
Jeff Johnson | b5c1333 | 2018-12-03 09:54:51 -0800 | [diff] [blame] | 87 | uint32_t status, struct pe_session *pe_session, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 88 | uint8_t smessionId, uint16_t smetransactionId); |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 89 | void lim_send_sme_delts_ind(struct mac_context *mac, tpSirDeltsReqInfo delts, |
Jeff Johnson | d7035a3 | 2018-11-18 22:03:13 -0800 | [diff] [blame] | 90 | uint16_t aid, struct pe_session *); |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 91 | void lim_send_sme_stats_rsp(struct mac_context *mac, uint16_t msgtype, void *stats); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 92 | |
Naveen Rawat | fa2a100 | 2018-05-17 16:06:37 -0700 | [diff] [blame] | 93 | #ifdef QCA_SUPPORT_CP_STATS |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 94 | static inline void lim_send_sme_pe_statistics_rsp(struct mac_context *mac, |
Naveen Rawat | fa2a100 | 2018-05-17 16:06:37 -0700 | [diff] [blame] | 95 | uint16_t msgtype, void *stats) {} |
| 96 | #else |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 97 | void lim_send_sme_pe_statistics_rsp(struct mac_context *mac, uint16_t msgtype, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 98 | void *stats); |
Naveen Rawat | fa2a100 | 2018-05-17 16:06:37 -0700 | [diff] [blame] | 99 | #endif /* QCA_SUPPORT_CP_STATS */ |
| 100 | |
Srinivas Girigowda | 515a9ef | 2015-12-11 11:00:48 -0800 | [diff] [blame] | 101 | #ifdef FEATURE_WLAN_ESE |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 102 | void lim_send_sme_pe_ese_tsm_rsp(struct mac_context *mac, tAniGetTsmStatsRsp *pStats); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 103 | #endif |
| 104 | |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 105 | void lim_send_sme_ibss_peer_ind(struct mac_context *mac, tSirMacAddr peerMacAddr, |
Jeff Johnson | 582a338 | 2018-03-05 11:58:47 -0800 | [diff] [blame] | 106 | uint16_t staIndex, uint8_t *beacon, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 107 | uint16_t beaconLen, uint16_t msgType, |
| 108 | uint8_t sessionId); |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 109 | void lim_send_sme_max_assoc_exceeded_ntf(struct mac_context *mac, tSirMacAddr peerMacAddr, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 110 | uint8_t smesessionId); |
Frank Liu | 1b82120 | 2017-09-07 13:13:54 +0800 | [diff] [blame] | 111 | |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 112 | void lim_send_sme_ap_channel_switch_resp(struct mac_context *mac, |
Jeff Johnson | b5c1333 | 2018-12-03 09:54:51 -0800 | [diff] [blame] | 113 | struct pe_session *pe_session, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 114 | tpSwitchChannelParams pChnlParams); |
Pragaspathi Thilagaraj | 934275c | 2018-08-07 14:55:35 +0530 | [diff] [blame] | 115 | /* |
| 116 | * lim_process_beacon_tx_success_ind() - handle successful beacon transmission |
| 117 | * indication from the FW This is a generic event generated by the FW afer the |
| 118 | * first beacon is sent out after the beacon template update by the host. |
| 119 | * |
| 120 | * @mac_ctx: Global mac_ctx |
| 121 | * @msg_type: msg_type |
| 122 | */ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 123 | void |
Jeff Johnson | 9320c1e | 2018-12-02 13:09:20 -0800 | [diff] [blame] | 124 | lim_process_beacon_tx_success_ind(struct mac_context *mac, uint16_t msgType, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 125 | void *event); |
| 126 | |
| 127 | typedef enum { |
| 128 | lim_csa_ie_present = 0x00000001, |
| 129 | lim_xcsa_ie_present = 0x00000002, |
| 130 | lim_wbw_ie_present = 0x00000004, |
| 131 | lim_cswarp_ie_present = 0x00000008, |
| 132 | } lim_csa_event_ies_present_flag; |
| 133 | |
| 134 | #endif /* __LIM_SEND_SME_RSP_H */ |