| /***************************************************************************** |
| * Copyright Statement: |
| * -------------------- |
| * This software is protected by Copyright and the information contained |
| * herein is confidential. The software may not be copied and the information |
| * contained herein may not be used or disclosed except with the written |
| * permission of MediaTek Inc. (C) 2016 |
| * |
| * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON |
| * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, |
| * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF |
| * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. |
| * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE |
| * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR |
| * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH |
| * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO |
| * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S |
| * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM. |
| * |
| * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE |
| * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, |
| * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, |
| * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO |
| * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| * |
| * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE |
| * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF |
| * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND |
| * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER |
| * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC). |
| * |
| *****************************************************************************/ |
| |
| /***************************************************************************** |
| * |
| * Filename: |
| * --------- |
| * wlc_atp_struct.h |
| * |
| * Project: |
| * -------- |
| * UMOLYE |
| * |
| * Description: |
| * ------------ |
| * Structs be used in Interfaces of WLC - ATP. |
| * |
| * Author: |
| * ------- |
| * ------- |
| * |
| *============================================================================ |
| ****************************************************************************/ |
| |
| #ifndef __WLC_ATP_STRUCT_H__ |
| #define __WLC_ATP_STRUCT_H__ |
| /****************************************************************************/ |
| |
| #include "kal_general_types.h" |
| #include "kal_public_defs.h" |
| /****************************************************************************/ |
| |
| // MSG_ID_WLC_ATP_EWIFILOCK_IND |
| typedef struct { |
| LOCAL_PARA_HDR |
| kal_char ifname[32]; |
| kal_bool lock_status; |
| } wlc_atp_ewifilock_ind_struct; |
| |
| // MSG_ID_WLC_ATP_EWIFIRSSITHRCFG_IND |
| typedef struct { |
| LOCAL_PARA_HDR |
| kal_bool signaling_monitor; |
| kal_bool en; |
| kal_uint32 thr_num; |
| kal_int8 thr_value[16]; |
| kal_uint16 polling_time; |
| kal_uint16 measurement_time; |
| } wlc_atp_ewifirssithrcfg_ind_struct; |
| |
| // MSG_ID_WLC_ATP_EIMSGEO_IND |
| typedef struct { |
| LOCAL_PARA_HDR |
| kal_int8 account_id; |
| kal_int8 broadcast_flag; |
| } wlc_atp_eimsgeo_ind_struct; |
| |
| // MSG_ID_ATP_WLC_EWIFIMAC_IND |
| typedef struct { |
| LOCAL_PARA_HDR |
| |
| kal_char ifname[32]; |
| kal_char ip_addr[46]; |
| } atp_wlc_ewifimac_ind_struct; |
| |
| //MSG_ID_WLC_ATP_OFFLOAD_KEEP_ALIVE_IND |
| typedef struct { |
| LOCAL_PARA_HDR |
| |
| kal_bool enable; |
| kal_uint32 interval; |
| kal_char src_ip_addr[46]; |
| kal_uint16 src_port; |
| kal_char dst_ip_addr[46]; |
| kal_uint16 dst_port; |
| }wlc_atp_offload_keep_alive_ind_struct; |
| |
| typedef enum { |
| WLC_STATUS_OK = 0, |
| WLC_STATUS_FAIL = 1, //Can't be used in the errcause of d2rm_wo_act_data_call_cnf_prv_struct |
| |
| WLC_STATUS_MAIN_ERROR_START = 1001, |
| |
| /* NW error */ |
| WLC_STATUS_DNS_QUERY_TIMEOUT = 1040, |
| WLC_STATUS_FQDN_NO_ADDRESS = 1041, |
| WLC_STATUS_UNABLE_CONNET_EPDG = 1081, // from strongswan |
| WLC_STATUS_UNABLE_MAKE_IPSEC_TUNNEL = 1082, |
| WLC_STATUS_UNABLE_TO_VALIDATE_SERVER_CERTIFICATE = 1010, // Not support for ePDG |
| WLC_STATUS_UNABLE_TO_VALIDATE_SERVER_CERTIFICATE_EPDG = 1101, |
| WLC_STATUS_INVALID_CERTIFICATE = 1011, // Not support for ePDG |
| WLC_STATUS_INVALID_CERTIFICATE_EPDG = 1111, |
| WLC_STATUS_INVALID_IP_IN_HANDOVER = 1999, |
| |
| /* Internal error */ |
| WLC_STATUS_NOT_READY = 2001, |
| WLC_STATUS_NO_APN_CONNECTION = 2002, |
| WLC_STATUS_PDN_INFO_NOT_MATCHED = 2003, |
| WLC_STATUS_PDN_CAN_NOT_CREATE = 2004, |
| WLC_STATUS_REJECT_PDN_ACT_REQ_IN_WRONG_STATE = 2005, |
| WLC_STATUS_HO_ADDR_PROTO_NOT_MATCHED = 2006, |
| WLC_STATUS_WRONG_PDN_REQ_TYPE = 2007, |
| WLC_STATUS_PDN_ACT_ABORT = 2008, |
| WLC_STATUS_PDN_ACT_TIMEOUT = 2009, |
| WLC_STATUS_EMERGENCY_NO_IMEI = 2010, |
| WLC_STATUS_PDN_LOCAL_RELEASE = 2011, |
| |
| WLC_STATUS_MAIN_ERROR_END = 3000, |
| } wlc_status_enum; |
| |
| |
| //MSG_ID_WLC_ATP_OFFLOAD_KEEP_ALIVE_CNF |
| typedef struct { |
| LOCAL_PARA_HDR |
| |
| kal_uint8 iface[16]; |
| wlc_status_enum status; |
| }wlc_atp_keepalive_cnf_struct; |
| |
| |
| /****************************************************************************/ |
| |
| #endif /* __WLC_ATP_STRUCT_H__ */ |
| |
| |