blob: 335ec1637916b4eb94b79231e61224c38824ce16 [file] [log] [blame]
/*****************************************************************************
* 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:
* ---------
* atp_wlc_struct.h
*
* Project:
* --------
* UMOLYE
*
* Description:
* ------------
* Structs be used in Interfaces of ATP - WLC.
*
* Author:
* -------
* -------
*
*============================================================================
****************************************************************************/
#ifndef __ATP_WLC_STRUCT_H__
#define __ATP_WLC_STRUCT_H__
/****************************************************************************/
#include "kal_general_types.h"
#include "kal_public_defs.h"
#include "ps_public_enum.h"
#include "wlc_user_struct.h"
#include "wlc_atp_struct.h"
/****************************************************************************/
#define WLC_IFACE_LEN 16
// MSG_ID_ATP_WLC_EIMSGEO_REQ
typedef struct {
LOCAL_PARA_HDR
kal_int8 account_id;
kal_int8 broadcast_flag;
kal_char ue_wifi_mac[18];
} atp_wlc_eimsgeo_req_struct;
// MSG_ID_ATP_WLC_EWIFIEN_REQ
typedef struct {
LOCAL_PARA_HDR
kal_char ewifi_ifname[32];
kal_bool ewifi_en;
} atp_wlc_ewifien_req_struct;
// MSG_ID_ATP_WLC_EWIFIASC_REQ
typedef struct {
LOCAL_PARA_HDR
kal_char ifname[32];
kal_char ssid[65];
kal_char ap_mac[18];
kal_bool assoc;
kal_uint32 mtu;
kal_char wifi_type[12];
kal_char ue_wifi_mac[18];
} atp_wlc_ewifiasc_req_struct;
// MSG_ID_ATP_WLC_EIMSADDR_REQ
typedef struct {
LOCAL_PARA_HDR
kal_char ifname[32];
kal_uint8 ipv4_addr[16];
kal_uint8 ipv6_addr[46];
kal_uint8 ipv4_subnet_mask;
kal_uint8 ipv6_prefix_length;
kal_uint8 ipv4_gateway[16];
kal_uint8 ipv6_gateway[46];
kal_uint32 dns_num;
kal_uint8 dns_addr[WLC_MAX_ADDR_BUF_NUM][46];
} atp_wlc_ewifiaddr_req_struct;
// MSG_ID_ATP_WLC_EWIFISIGLVL_REQ
typedef struct {
LOCAL_PARA_HDR
kal_int32 rssi;
kal_int32 snr;
} atp_wlc_ewifisiglvl_req_struct;
// MSG_ID_ATP_WLC_EWIFIMAC_REQ
typedef struct {
LOCAL_PARA_HDR
kal_int32 error_code;
kal_char ifname[32];
kal_char ip_addr[46];
kal_char mac[18];
} atp_wlc_ewifimac_req_struct;
// MSG_ID_ATP_WLC_OFFLOAD_KEEP_ALIVE_REQ
typedef struct {
LOCAL_PARA_HDR
kal_uint8 iface[WLC_IFACE_LEN];
kal_bool enable;
kal_uint32 interval;
kal_char src_ip[46];
kal_uint16 src_port;
kal_char dst_ip[46];
kal_uint16 dst_port;
} atp_wlc_offload_keep_alive_req_struct;
typedef struct {
LOCAL_PARA_HDR
kal_uint8 iface[16];
wlc_status_enum status;
} atp_wlc_ewifinatt_cnf_struct;
typedef struct {
LOCAL_PARA_HDR
kal_bool signaling_monitor;
} atp_wlc_ewifirssiver_req_struct;
/****************************************************************************/
#endif /* __ATP_WLC_STRUCT_H__ */