[Feature]Upload Modem source code

Change-Id: Id4294f30faced84d3e6fd6d5e61e1111bf287a37
diff --git a/mcu/protocol/interface/iwlan/iwlan_atp_struct.h b/mcu/protocol/interface/iwlan/iwlan_atp_struct.h
new file mode 100644
index 0000000..9e856f4
--- /dev/null
+++ b/mcu/protocol/interface/iwlan/iwlan_atp_struct.h
@@ -0,0 +1,93 @@
+/*****************************************************************************
+*  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:
+ * ---------
+ * iwlan_atp_struct.h
+ *
+ * Project:
+ * --------
+ * UMOLYA
+ *
+ * Description:
+ * ------------
+ * Structs be used in Interfaces of IWLAN - ATP.
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ *============================================================================
+ *             HISTORY
+ * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *----------------------------------------------------------------------------
+ * removed!
+ *
+ *
+ *----------------------------------------------------------------------------
+ * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *============================================================================
+ ****************************************************************************/
+
+#ifndef _IWLAN_ATP_STRUCT_H
+#define _IWLAN_ATP_STRUCT_H
+/****************************************************************************/
+
+#include "kal_general_types.h"
+#include "kal_public_defs.h"
+
+/****************************************************************************/
+
+#define IWLAN_ATP_UE_CAPA_LWI   (1)
+#define IWLAN_ATP_UE_CAPA_RCLWI (2)
+#define IWLAN_ATP_UE_CAPA_LWA   (4)
+#define IWLAN_ATP_UE_CAPA_LWIP  (8)
+
+/****************************************************************************/
+
+/* MSG_ID_CS_IWLAN_WLAN_CAPABILITY_REQ */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8 capability;
+    kal_uint8 wlan_mac_address[6];
+    kal_uint8  band_2_dot_4_support;
+    kal_uint8  band_5_support;
+} cs_iwlan_wlan_capability_req_struct;
+
+/****************************************************************************/
+#endif /* _IWLAN_ATP_STRUCT_H */
diff --git a/mcu/protocol/interface/iwlan/iwlan_errc_struct.h b/mcu/protocol/interface/iwlan/iwlan_errc_struct.h
new file mode 100644
index 0000000..43d774b
--- /dev/null
+++ b/mcu/protocol/interface/iwlan/iwlan_errc_struct.h
@@ -0,0 +1,384 @@
+/*****************************************************************************
+*  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:
+ * ---------
+ * iwlan_errc_struct.h
+ *
+ * Project:
+ * --------
+ * UMOLYA
+ *
+ * Description:
+ * ------------
+ * Structs be used in Interfaces of IWLAN - ERRC.
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ *============================================================================
+ *             HISTORY
+ * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *----------------------------------------------------------------------------
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ *
+ *----------------------------------------------------------------------------
+ * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *============================================================================
+ ****************************************************************************/
+
+#ifndef _IWLAN_ERRC_STRUCT_H
+#define _IWLAN_ERRC_STRUCT_H
+/****************************************************************************/
+
+#include "kal_general_types.h"
+#include "kal_public_defs.h"
+
+/****************************************************************************/
+
+#define IWLAN_ERRC_UE_CAPA_LWI   (1)
+#define IWLAN_ERRC_UE_CAPA_RCLWI (2)
+#define IWLAN_ERRC_UE_CAPA_LWA   (4)
+#define IWLAN_ERRC_UE_CAPA_LWIP  (8)
+#define IWLAN_MAX_WLAN_ID_R12    (16) 
+
+#define IWLAN_ERRC_WLAN_MAX_MEAS_OBJ_BAND_NUM 2
+#define IWLAN_ERRC_WLAN_MAX_WLAN_NUM 32
+#define IWLAN_ERRC_WLAN_MAX_CARR_INFO_NUM 8
+#define IWLAN_ERRC_WLAN_MAX_CARR_INFO_CHANNEL_NUM 16
+#define IWLAN_ERRC_WLAN_MAX_MEAS_OBJECT_NUM 10
+#define IWLAN_ERRC_WLAN_MAX_MEAS_RESULT_NUM 33
+
+#define IWLAN_ERRC_WLAN_RSSI_NEG_INFINITY -128
+#define IWLAN_ERRC_WLAN_RSSI_POS_INFINITY 127
+
+/****************************************************************************/
+
+typedef enum 
+{
+    r0, r4, r8, r16, r32, r64, r128, r256, r512,
+    r1024, r2048, r4096, r8192, r16384, r32768, r65536, r131072,
+    r262144, r524288, r1048576, r2097152, r4194304, r8388608,
+    r16777216, r33554432, r67108864, r134217728, r268435456,
+    r536870912, r1073741824, r2147483648, r4294967296
+} wlan_backhaulRate_enum;
+
+typedef enum
+{
+    TRIGGERED,
+    NOT_TRIGGERED,
+    UNCHANGED
+} iwlan_errc_lwi_steering_status_enum;
+
+typedef enum
+{
+    IWLAN_ERRC_CONN_TYPE_LWA,
+    IWLAN_ERRC_CONN_TYPE_RCLWI,
+    IWLAN_ERRC_CONN_TYPE_LWIP
+} iwlan_errc_connection_type_enum;
+
+typedef enum
+{
+    IWLAN_ERRC_WLAN_BAND_2_DOT_4,
+    IWLAN_ERRC_WLAN_BAND_5
+} iwlan_errc_wlan_band_enum;
+
+typedef enum
+{
+    IWLAN_ERRC_WLAN_LWA_CONNECTION_SUCCESS,
+    IWLAN_ERRC_WLAN_LWA_CONNECTION_FAILURE
+} iwlan_errc_wlan_lwa_connect_result_enum;
+
+typedef enum
+{
+    IWLAN_ERRC_WLAN_LWA_FAIL_CAUSE_RADIO_LINK_PROBLEM,
+    IWLAN_ERRC_WLAN_LWA_FAIL_CAUSE_UE_INTERNAL_PROBLEM,
+    IWLAN_ERRC_WLAN_LWA_FAIL_CAUSE_SHM_NOT_RDY_PROBLEM
+} iwlan_errc_wlan_lwa_failure_cause_enum;
+
+typedef enum
+{
+    IWLAN_ERRC_WLAN_COUNTRY_CODE_USA,
+    IWLAN_ERRC_WLAN_COUNTRY_CODE_EUROPE,
+    IWLAN_ERRC_WLAN_COUNTRY_CODE_JAPAN,
+    IWLAN_ERRC_WLAN_COUNTRY_CODE_GLOBAL,
+} iwlan_errc_wlan_country_code_enum;
+
+typedef struct
+{
+    /* Length 0 means that ssid is not present. */
+    kal_uint8 opt_ssid_r12;
+    struct errc_ssid_r12_struct {
+        kal_uint8 oct_len;
+        kal_uint8 octs[32];
+    } ssid_r12;
+
+    kal_uint8 opt_bssid_r12;
+    kal_uint8 bssid_r12[6];
+
+    kal_uint8 opt_hessid_r12;
+    kal_uint8 hessid_r12[6];
+} iwlan_errc_wlanidlist_r12_struct;
+
+typedef struct
+{
+    kal_uint8 opt_threshold_rsrp_r12;
+    struct errc_threshold_rsrp_r12_struct {
+        kal_uint8 threshold_rsrp_low_r12;
+        kal_uint8 threshold_rsrp_high_r12;
+    } threshold_rsrp_r12;
+
+    kal_uint8 opt_threshold_rsrq_r12;
+    struct errc_threshold_rsrq_r12_struct {
+        kal_uint8 threshold_rsrq_low_r12;
+        kal_uint8 threshold_rsrq_high_r12;
+    } threshold_rsrq_r12;
+
+    kal_uint8 opt_threshold_channel_utilization_r12;
+    struct errc_threshold_channel_utilization_r12_struct {
+        kal_uint8 threshold_channel_utilization_low_r12;
+        kal_uint8 threshold_channel_utilization_high_r12;
+    } threshold_channel_utilization_r12;
+
+    kal_uint8 opt_threshold_backhaul_bandwidth_r12;
+    struct errc_threshold_backhaul_bandwidth_r12_struct {
+        kal_uint8 threshold_backhaul_dl_bandwidth_low_r12;
+        kal_uint8 threshold_backhaul_dl_bandwidth_high_r12;
+        kal_uint8 threshold_backhaul_ul_bandwidth_low_r12;
+        kal_uint8 threshold_backhaul_ul_bandwidth_high_r12;
+    } threshold_backhaul_bandwidth_r12;
+
+    kal_uint8 opt_threshold_beacon_rssi_r12;
+    struct errc_threshold_beacon_rssi_r12_struct {
+        kal_uint8 threshold_beacon_rssi_low_r12;
+        kal_uint8 threshold_beacon_rssi_high_r12;
+    } threshold_beacon_rssi_r12;
+
+    kal_uint8 opt_offload_preference_indicator_r12;
+    kal_uint8 offload_preference_indicator_r12[2];
+
+    kal_uint8 opt_t_steering_wlan_r12;
+    kal_uint8 t_steering_wlan_r12;
+
+} iwlan_errc_wlan_offloadconfig_r12_struct;
+
+typedef struct
+{
+    /* Length 0 means that ssid is not present. */
+    kal_uint8 ssid_len;
+    kal_uint8 ssid[32];
+
+    kal_bool bssid_valid;
+    kal_uint8 bssid[6];
+
+    kal_bool hessid_valid;
+    kal_uint8 hessid[6];
+} iwlan_errc_wlan_id_struct;
+
+typedef struct
+{
+    kal_bool operating_class_valid;
+    kal_uint8 operating_class;
+
+    kal_bool country_code_valid;
+    iwlan_errc_wlan_country_code_enum country_code;
+
+    /* Length 0 means that the list is not present. */
+    kal_uint8 wlan_channel_list_len;
+    kal_uint8 wlan_channel_list[IWLAN_ERRC_WLAN_MAX_CARR_INFO_CHANNEL_NUM];
+} iwlan_errc_wlan_carrier_info_struct;
+
+typedef struct
+{
+    kal_bool report_carrier_info;
+    kal_bool report_available_admission_capacity;
+    kal_bool report_backhaul_dl_bw;
+    kal_bool report_backhaul_ul_bw;
+    kal_bool report_channel_utilization;
+    kal_bool report_station_count;
+} iwlan_errc_wlan_report_quantity_struct;
+
+typedef struct
+{
+    kal_uint8 meas_object_id;
+
+    kal_uint8 wlan_list_len;
+    iwlan_errc_wlan_id_struct wlan_list[IWLAN_ERRC_WLAN_MAX_WLAN_NUM];
+
+    /* Length 0 means that the list is not present. */
+    kal_uint8 wlan_band_list_len;
+    iwlan_errc_wlan_band_enum wlan_band_list[IWLAN_ERRC_WLAN_MAX_MEAS_OBJ_BAND_NUM];
+
+    /* Length 0 means that the list is not present. */
+    kal_uint8 carrier_info_list_len;
+    iwlan_errc_wlan_carrier_info_struct carrier_info_list[IWLAN_ERRC_WLAN_MAX_CARR_INFO_NUM];
+
+    iwlan_errc_wlan_report_quantity_struct report_quantities;
+} iwlan_errc_wlan_meas_object_struct;
+
+typedef struct
+{
+    iwlan_errc_wlan_id_struct wlan_id;
+    /* RSSI has two special values: negative infinity (-128) and positive infinity (127).
+       Otherwise value range is [-100, 39] */
+    kal_int8 rssi;
+    iwlan_errc_wlan_band_enum band;
+    kal_bool connected;
+
+    kal_bool carrier_info_valid;
+    iwlan_errc_wlan_carrier_info_struct carrier_info;
+
+    kal_bool available_admission_capacity_valid;
+    kal_uint16 available_admission_capacity;
+
+    kal_bool backhaul_dl_bw_valid;
+    kal_uint8 backhaul_dl_bw;
+
+    kal_bool backhaul_ul_bw_valid;
+    kal_uint8 backhaul_ul_bw;
+
+    kal_bool channel_utilization_valid;
+    kal_uint8 channel_utilization;
+
+    kal_bool station_count_valid;
+    kal_uint16 station_count;
+} iwlan_errc_wlan_meas_result_struct;
+
+/* MSG_ID_IWLAN_ERRC_WLAN_CAPABILITY_REQ */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8 capability;  
+    kal_uint8 wlan_mac_address[6];
+    kal_uint8  band_2_dot_4_support;
+    kal_uint8  band_5_support;
+} iwlan_errc_wlan_capability_req_struct;
+
+/* MSG_ID_IWLAN_ERRC_WLAN_PARAMETER_IND */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8 opt_wlan_idlist;
+    iwlan_errc_wlanidlist_r12_struct wlanidlist_r12[IWLAN_MAX_WLAN_ID_R12];
+    kal_uint8 opt_wlan_offloadconfig;
+    iwlan_errc_wlan_offloadconfig_r12_struct wlan_offloadconfig_r12;
+} iwlan_errc_wlan_parameter_ind_struct;
+
+/* MSG_ID_IWLAN_ERRC_LWI_STEER_STATUS_IND */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8 transaction_id;
+    iwlan_errc_lwi_steering_status_enum iwlan_errc_lwi_lte_to_wlan_status;
+    iwlan_errc_lwi_steering_status_enum iwlan_errc_lwi_wlan_to_lte_status;
+} iwlan_errc_lwi_steer_status_ind_struct;
+
+/* MSG_ID_IWLAN_ERRC_LWI_STEER_STATUS_REQ */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8 transaction_id;
+    kal_bool  measurement_switch;
+} iwlan_errc_lwi_steer_status_req_struct;
+
+/* MSG_ID_IWLAN_ERRC_WLAN_MEASUEMENT_IND */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8 filter_coefficient;
+
+    kal_uint8 meas_object_list_len;
+    iwlan_errc_wlan_meas_object_struct meas_object_list[IWLAN_ERRC_WLAN_MAX_MEAS_OBJECT_NUM];
+} iwlan_errc_wlan_measurement_ind_struct;
+
+/* MSG_ID_IWLAN_ERRC_WLAN_MEASUEMENT_REQ */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_bool is_wlan_resource_available;
+    kal_uint8 meas_object_id;
+
+    kal_uint8 meas_result_list_len;
+    iwlan_errc_wlan_meas_result_struct meas_result_list[IWLAN_ERRC_WLAN_MAX_MEAS_RESULT_NUM];
+
+#ifdef UNIT_TEST
+    kal_uint32 meas_req_ms_diff;
+#endif /* UNIT_TEST */
+} iwlan_errc_wlan_measurement_req_struct;
+
+/* MSG_ID_IWLAN_ERRC_WLAN_LWA_CONNECT_IND */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8 connect_type;
+    kal_uint8 wlan_mobility_set_list_len;
+    iwlan_errc_wlan_id_struct wlan_mobility_set_list[IWLAN_ERRC_WLAN_MAX_WLAN_NUM];
+
+    /* S-Kwt encoding:
+         bits 0..7  encoded in s_kwt[0]
+         bits 8..15 encoded in s_kwt[1]
+          ...
+       First bit of S-Kwt is the MSB of s_kwt[0]. */
+    kal_bool s_kwt_valid;
+    kal_uint8 s_kwt[32];
+} iwlan_errc_wlan_lwa_connect_ind_struct;
+
+/* MSG_ID_IWLAN_ERRC_WLAN_LWA_CONNECT_RSP */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    iwlan_errc_wlan_lwa_connect_result_enum result;
+    iwlan_errc_wlan_lwa_failure_cause_enum failure_cause;
+    iwlan_errc_wlan_id_struct wlan_id;
+} iwlan_errc_wlan_lwa_connect_rsp_struct;
+
+/* MSG_ID_IWLAN_ERRC_WLAN_LWA_LOST_REQ */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    iwlan_errc_wlan_lwa_failure_cause_enum cause;
+} iwlan_errc_wlan_lwa_lost_req_struct;
+
+/****************************************************************************/
+#endif /* _IWLAN_ERRC_STRUCT_H */
diff --git a/mcu/protocol/interface/iwlan/iwlan_ltecsr_struct.h b/mcu/protocol/interface/iwlan/iwlan_ltecsr_struct.h
new file mode 100644
index 0000000..5ce0dd3
--- /dev/null
+++ b/mcu/protocol/interface/iwlan/iwlan_ltecsr_struct.h
@@ -0,0 +1,208 @@
+/*****************************************************************************
+*  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) 2012
+*
+*  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:
+ * ---------
+ *   iwlan_ltecsr_struct.h
+ *
+ * Project:
+ * --------
+ *   
+ *
+ * Description:
+ * ------------
+ *
+ *
+ * Author:
+ * -------
+ *  
+ *   
+ *
+ * ==========================================================================
+ *
+ ****************************************************************************/
+
+#ifndef  _IWLAN_LTECSR_STRUCT_H
+#define  _IWLAN_LTECSR_STRUCT_H
+
+#include "kal_general_types.h"
+#include "kal_public_defs.h"
+#include "ps_public_enum.h"
+
+#include "ltecsr_struct.h"
+
+
+#define IWLAN_LTECSR_PAYLOAD_SZ 64
+#define IWLAN_PDN_CID_NOT_AVAILABLE 0xFF
+
+typedef enum e_iwlan_ltecsr_jitter_result {
+    IWLAN_LTECSR_JITTER_INIT           = 0,
+    IWLAN_LTECSR_JITTER_DL_RTCP_THR    = 1,
+    IWLAN_LTECSR_JITTER_UL_RTCP_THR    = 2,
+    IWLAN_LTECSR_NEVER_DL_RTCP         = 3,
+    IWLAN_LTECSR_JITTER_DL_RTCP_LOST   = 4,
+} iwlan_ltecsr_jitter_result_e;
+
+typedef enum e_iwlan_ltecsr_pkt_present_result {
+    IWLAN_LTECSR_PRESENT_FALSE          = 0,
+    IWLAN_LTECSR_PRESENT_TRUE           = 1,
+    IWLAN_LTECSR_PRESENT_UNKNOWN        = 2,
+} iwlan_ltecsr_pkt_present_result_e;
+
+//Max is 255 for better better UT coding, (kal_uint8 payload[IWLAN_LTECSR_PAYLOAD_SZ])
+typedef enum {
+    IWLAN_LTECSR_EOP = 0, //end of payload
+    IWLAN_LTECSR_DURATION,
+    IWLAN_LTECSR_PACKET_LOSS, //0~100
+    IWLAN_LTECSR_JITTER_LOSS, // 0~255
+    IWLAN_LTECSR_PCSCF_PING_STAT, // FULL_REPLY, PART_REPLY, NO_REPLY
+    
+    /* AT&T Jitter req */
+    IWLAN_LTECSR_RTCP_JITTER_THRESHOLD,     // unit: ms
+    IWLAN_LTECSR_RTCP_JITTER_RESULT,              // iwlan_ltecsr_jitter_result_e
+
+    /* WFC Silence Timeout */
+    IWLAN_LTECSR_WFC_SILENCE_TIMEOUT,
+
+    /* AT&T RTCP PLR req */
+    IWLAN_LTECSR_RTCP_PLR_THRESHOLD,     // percentage
+
+    /* For on demand info query */
+    IWLAN_LTECSR_PACKET_NOT_PRESENT, // bool
+
+    /* For no RTCP trigger H.O. */
+    IWLAN_LTECSR_RTCP_TIMEOUT,      // no RTCP timeout
+} iwlan_ltecsr_entity_id;
+
+
+typedef struct _iwlan_ltecsr_entity_t
+{
+    iwlan_ltecsr_entity_id entity_id;
+    kal_int32              value; 
+} iwlan_ltecsr_entity_t; 
+
+
+//MSG_ID_EVHD_WMOB_WANS_LTECSR_INFO_CFG_REQ
+//MSG_ID_EVHD_WMOB_WANS_LTECSR_INFO_CFG_CNF
+//MSG_ID_EVHD_WMOB_WANS_LTECSR_INFO_RPT_IND
+
+typedef struct
+{
+    LOCAL_PARA_HDR
+
+    iwlan_ran_e ran;
+    iwlan_ltecsr_entity_t payload[IWLAN_LTECSR_PAYLOAD_SZ/sizeof(iwlan_ltecsr_entity_t)];
+
+}iwlan_ltecsr_req_st,
+ iwlan_ltecsr_cnf_st;
+
+typedef struct
+{
+    LOCAL_PARA_HDR
+
+    iwlan_ran_e ran;
+    kal_uint32 pdn_cid;
+    iwlan_ltecsr_entity_t payload[IWLAN_LTECSR_PAYLOAD_SZ/sizeof(iwlan_ltecsr_entity_t)];
+
+}iwlan_ltecsr_ind_st;
+
+
+/*
+
+//MSG_ID_IWLAN_LTECSR_PKTINFO_CFG_REQ
+typedef struct
+{
+    LOCAL_PARA_HDR
+
+    kal_int32  version;
+    kal_int32  id;
+    kal_int32  threshold;
+    kal_int32  duration;
+    kal_uint8  ext_body[512];
+}iwlan_ltecsr_pktinfo_cfg_req_struct;
+
+//MSG_ID_IWLAN_LTECSR_PKTINFO_CFG_CNF
+typedef struct
+{
+    LOCAL_PARA_HDR
+
+    kal_int32  version;
+    kal_bool   succ;
+}iwlan_ltecsr_pktinfo_cfg_cnf_struct;
+
+//MSG_ID_IWLAN_LTECSR_PKTINFO_RPT_IND
+typedef struct
+{
+    LOCAL_PARA_HDR
+
+    kal_int32  version;
+    kal_int32  state;
+    kal_int32  id;
+    kal_int32  loss_rate;
+    kal_int32  thrpt;
+    kal_uint8  ext_body[512];
+}iwlan_ltecsr_pktinfo_rpt_ind_struct;
+*/
+
+// MSG_ID_IWLAN_LTECSR_INFO_QUERY_REQ
+typedef struct {
+    LOCAL_PARA_HDR
+
+    iwlan_ran_e ran;
+    iwlan_ltecsr_entity_id entity_id;
+    kal_uint32 duration; // milliseconds
+} iwlan_ltecsr_info_query_req_struct;
+
+// MSG_ID_IWLAN_LTECSR_INFO_QUERY_CNF
+typedef struct {
+    LOCAL_PARA_HDR
+
+    iwlan_ran_e ran;
+    iwlan_ltecsr_entity_id entity_id;
+} iwlan_ltecsr_info_query_cnf_struct;
+
+// MSG_ID_IWLAN_LTECSR_INFO_QUERY_IND
+typedef struct {
+    LOCAL_PARA_HDR
+
+    iwlan_ran_e ran;
+    kal_uint32 pdn_cid;
+    iwlan_ltecsr_entity_id entity_id;
+    kal_int32 value;
+} iwlan_ltecsr_info_query_ind_struct;
+
+#endif
+
diff --git a/mcu/protocol/interface/iwlan/iwlan_public_defs.h b/mcu/protocol/interface/iwlan/iwlan_public_defs.h
new file mode 100644
index 0000000..d87a673
--- /dev/null
+++ b/mcu/protocol/interface/iwlan/iwlan_public_defs.h
@@ -0,0 +1,299 @@
+#ifndef __IWLAN_PUBLIC_DEFS_H__
+#define __IWLAN_PUBLIC_DEFS_H__
+
+//it's for simpler log printing
+#define MULTI_ENUM_DEF_2(_e1, _e2, _assign_value) \
+        _e1 _assign_value, \
+        _e2 = _e1
+
+#define MULTI_ENUM_DEF_3(_e1, _e2, _e3, _assign_value) \
+    _e1 _assign_value, \
+    _e2 = _e1, \
+    _e3 = _e1
+
+#define MULTI_ENUM_DEF_4(_e1, _e2, _e3, _e4, _assign_value) \
+    _e1 _assign_value, \
+    _e2 = _e1, \
+    _e3 = _e1, \
+    _e4 = _e1
+
+typedef enum {
+    MULTI_ENUM_DEF_2(UNSPEC, IWLAN_RAN_UNSPEC,),
+    MULTI_ENUM_DEF_2(CELL, IWLAN_RAN_CELL,),
+    IWLAN_RAN_MOBILE_3GPP = CELL,               //legacy name, should ask other module to remove
+    MULTI_ENUM_DEF_2(WLAN, IWLAN_RAN_WLAN,),
+    IWLAN_RAN_WIFI = WLAN,
+
+    RESERVED_3GPP_2,
+    DATA_1,
+    DATA_2,
+    DATA_3,
+    DATA_4,
+
+    IWLAN_RAN_CNT,
+    IWLAN_RAN_TYPE_CNT = IWLAN_RAN_CNT,
+
+    MULTI_ENUM_DEF_2(NONE, IWLAN_RAN_NONE, = 254),
+    IWLAN_RAN_TYPE_NONE = NONE,
+    MULTI_ENUM_DEF_2(ERR, IWLAN_RAN_ERR, = 255),
+    IWLAN_RAN_TYPE_ERR = ERR,
+} iwlan_ran_e;
+
+typedef enum {
+    MULTI_ENUM_DEF_3(UNKNOWN, IWLAN_PDN_APN_TYPE_UNKNOWN, IWLAN_PDN_APN_TYPE_BASE,),
+    MULTI_ENUM_DEF_2(DEFAULT, IWLAN_PDN_APN_TYPE_DEFAULT,),
+    MULTI_ENUM_DEF_2(IMS, IWLAN_PDN_APN_TYPE_IMS,),
+    MULTI_ENUM_DEF_2(MMS, IWLAN_PDN_APN_TYPE_MMS,),
+    MULTI_ENUM_DEF_2(EMERGENCY, IWLAN_PDN_APN_TYPE_EMERGENCY,),
+    MULTI_ENUM_DEF_2(XCAP, IWLAN_PDN_APN_TYPE_XCAP,),
+    MULTI_ENUM_DEF_2(RCS, IWLAN_PDN_APN_TYPE_RCS,),
+    MULTI_ENUM_DEF_2(BIP, IWLAN_PDN_APN_TYPE_BIP,),
+    MULTI_ENUM_DEF_2(SUPL, IWLAN_PDN_APN_TYPE_SUPL,),
+    MULTI_ENUM_DEF_2(_VSIM, IWLAN_PDN_APN_TYPE_VSIM,),
+    IWLAN_PDN_APN_TYPE_PTT,
+
+    IWLAN_PDN_APN_TYPE_MAX,
+} iwlan_pdn_apn_type_e; //also update customer_iwlan_config.h
+
+
+typedef enum {
+    RPL_REQ_NONE = 0,
+    RPL_REQ_SBSCRIBE,
+    RPL_REQ_UPDATE,
+    RPL_REQ_UNSBSCRIBE,
+} rpl_reqtype_e;
+
+typedef enum {
+    IWLAN_PDN_TYPRSV,
+    IWLAN_PDN_TYPNONIMS,
+    IWLAN_PDN_TYPIMS,
+    IWLAN_PDN_TYPEMGIMS,
+} iwlan_pdntype_e;
+
+//it's for simpler log printing
+
+typedef enum {
+    MULTI_ENUM_DEF_4(NREG, QLT_LV_NREG, WLAN_LV_NREG, CELL_LV_NREG,),
+    MULTI_ENUM_DEF_4(POOR, QLT_LV_POOR, WLAN_LV_POOR, CELL_LV_POOR,),
+    MULTI_ENUM_DEF_4(FAIR, QLT_LV_FAIR, WLAN_LV_FAIR, CELL_LV_FAIR,),
+    MULTI_ENUM_DEF_4(GOOD, QLT_LV_GOOD, WLAN_LV_GOOD, CELL_LV_GOOD,),
+    MULTI_ENUM_DEF_4(PERF, QLT_LV_PERF, WLAN_LV_PERF, CELL_LV_PERF,), //perfect
+
+    /* 
+     * LV_MAX: RAT MAX Quality Level
+     * LV_CNT: RAT Quality Level Count
+     */
+    WLAN_LV_MAX  = WLAN_LV_GOOD, // Current no WIFI_GOOD_THR
+    CELL_LV_MAX    = CELL_LV_PERF,
+
+    QLT_LV_CNT,
+    WLAN_LV_CNT  = WLAN_LV_MAX + 1,
+    CELL_LV_CNT    = CELL_LV_MAX + 1,
+} quality_level_e;
+
+typedef enum {
+    RPL_WLAN_PREF = 0,
+    RPL_CELL_PREF   = 1,
+    RPL_PREF_CNT
+} iwlan_rpl_preference_e;
+
+typedef enum {
+    RPL_TRACE_CODE_NA                 = 0,
+    //RAT Ranking
+    RPL_TRACE_CODE_RTP_STATUS_BAD,
+    RPL_TRACE_CODE_RTCP_STATUS_BAD,
+    RPL_TRACE_CODE_PING_STATUS_BAD,
+    RPL_TRACE_CODE_DPD_STATUS_BAD,
+    RPL_TRACE_CODE_PDN_ERROR_LOCAL_RELEASE,
+
+    //RAT Barring
+    RPL_TRACE_CODE_WLAN_UI_DISABLE,
+    RPL_TRACE_CODE_ESICPI_ERROR,
+    RPL_TRACE_CODE_FORCE_BAR_ENABLE,
+
+    //APN ANS
+    RPL_TRACE_CODE_RAT_PREFERENCE_NA,
+    RPL_TRACE_CODE_RAT_PREFERENCE_WLAN_ONLY,
+    RPL_TRACE_CODE_RAT_PREFERENCE_CELL_ONLY,
+
+    RPL_TRACE_CODE_VOLTE_DISABLE,
+    RPL_TRACE_CODE_PING_PCSCF_REPLY_LOSS,
+    RPL_TRACE_CODE_EPDG_CONNECTED,
+    RPL_TRACE_CODE_LOCATION_ROAMING,
+    RPL_TRACE_CODE_NO_LOCATION,
+    RPL_TRACE_CODE_NO_IMS_PDN,
+    RPL_TRACE_CODE_IN_AP_MODE,
+    RPL_TRACE_CODE_RF_OFF,
+    RPL_TRACE_CODE_WLAN_DPD_ERROR,
+    RPL_TRACE_CODE_CELL_ROAM_BAR,
+    RPL_TRACE_CODE_IMS_BAR_UGC_SRV, //ims blocking by UMTS/GSM/C2K
+    RPL_TRACE_CODE_OP_WIFI_ONLY_MODE, //operator specify wifi only
+    RPL_TRACE_CODE_NO_VOPS,
+    RPL_TRACE_CODE_WFO_DISABLE,
+    RPL_TRACE_CODE_WLAN_BAR_SRVCC_CALL,
+
+    RPL_TRACE_CODE_INCALL_PREFER_CURRENT_RAT,
+    RPL_TRACE_CODE_INCALL_CURRENT_RAT_POOR_HO,
+
+    //APN ANS Post
+    RPL_TRACE_CODE_WLAN_NO_SIG,
+    RPL_TRACE_CODE_CELL_NO_SIG,
+    RPL_TRACE_CODE_VOICE_CAPA_CHK,
+    RPL_TRACE_CODE_RECEIVE_CALL_HYSTERISIS_HO,
+    RPL_TRACE_CODE_NO_VCC,
+    RPL_TRACE_CODE_ROAMING_NO_HO_DREG,
+    RPL_TRACE_CODE_ROAMING_NO_HO,
+    RPL_TRACE_CODE_23G_SETUP_BAR,
+    RPL_TRACE_CODE_4G_VOPS_OFF_SETUP_BAR,
+    RPL_TRACE_CODE_VOPS_OFF_IDLE_HO_BAR,
+    RPL_TRACE_CODE_IRAT_ONGOING,
+    RPL_TRACE_CODE_ECC_TRY_CELL,
+    RPL_TRACE_CODE_ECC_NO_HO,
+    RPL_TRACE_CODE_1PDN_CELL,
+    RPL_TRACE_CODE_ECC_OVER_IMS_NO_HO,
+
+    RPL_TRACE_CODE_DTAG_REQID1_1, //Operator rpl trace code
+    RPL_TRACE_CODE_DTAG_REQID1_2,
+    RPL_TRACE_CODE_DTAG_REQID2_1,
+    RPL_TRACE_CODE_DTAG_REQID2_2,
+    RPL_TRACE_CODE_VDF_REQID1,
+    RPL_TRACE_CODE_RJIO_REQID1_1,
+    RPL_TRACE_CODE_RJIO_REQID1_2,
+    RPL_TRACE_CODE_RJIO_REQID2,
+    RPL_TRACE_CODE_EE_REQID1_1,
+    RPL_TRACE_CODE_EE_REQID1_2,
+    RPL_TRACE_CODE_EE_REQID2,
+    RPL_TRACE_CODE_VIDEO_HO_TO_WIFI,
+    RPL_TRACE_CODE_VIDEO_STAY_ON_LTE,
+    RPL_TRACE_CODE_VIDEO_HO_TO_LTE,
+    RPL_TRACE_CODE_VIDEO_STAY_ON_WIFI,
+    RPL_TRACE_CODE_ROAM_DEPEND_USER_PREF,
+    RPL_TRACE_CODE_SPRT_ECC_NO_HO_L2W_WHEN_LTE_AVAI,
+
+    //Rat Throttling
+    RPL_TRACE_CODE_WO_NRDY,
+
+    //IMS DREG
+    RPL_TRACE_CODE_CS_PREF,
+    RPL_TRACE_CODE_CS_PREF_DREG_WLAN,
+    RPL_TRACE_CODE_CS_PREF_DREG_CELL,
+    RPL_TRACE_CODE_WLAN_DEAD_ZONE,
+
+    //Assign Rat
+    RPL_TRACE_CODE_ASSIGN_RAT_CELL,
+    RPL_TRACE_CODE_ASSIGN_RAT_WLAN,
+    RPL_TRACE_CODE_ASSIGN_RAT_NA,
+
+    RPL_TRACE_CODE_MAX,
+} rpl_trace_code_e;
+
+typedef struct {
+    LOCAL_PARA_HDR
+    void *data;
+} iwlan_timer_event_none_struct;
+
+#if 0
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+#endif
+
+/* IF data structure with N3ANS */
+typedef enum 
+{
+    N3_NONE = 0,
+    N3_EPDG,
+    N3_N3IWF,
+
+    N3_RAN_MAX
+} n3_ran_e;
+
+typedef enum {
+    RPL_PRIO_1ST,
+    RPL_PRIO_2ND,
+    RPL_PRIO_3RD,
+    RPL_PRIO_4TH,
+    RPL_PRIO_CNT,
+} rpl_prio_e;
+
+#define RPL_RAN_PRI       RPL_PRIO_1ST
+#define RPL_RAN_SEC       RPL_PRIO_2ND
+#define RPL_RAN_PRIOR_MAX RPL_PRIO_CNT
+
+/* Subscribe */
+typedef struct {
+    LOCAL_PARA_HDR
+    kal_uint8 cid;
+    iwlan_pdn_apn_type_e type;
+} iwlan_n3ans_n3_priority_subscribe_req_struct;
+typedef iwlan_n3ans_n3_priority_subscribe_req_struct iwlan_n3ans_n3_priority_subscribe_cnf_struct;
+
+typedef struct {
+    LOCAL_PARA_HDR
+    kal_uint8 cid;
+} iwlan_n3ans_n3_priority_unsubscribe_req_struct;
+typedef iwlan_n3ans_n3_priority_unsubscribe_req_struct iwlan_n3ans_n3_priority_unsubscribe_cnf_struct;
+
+/* Priority Acquire & Process */
+typedef struct {
+    LOCAL_PARA_HDR
+    kal_uint8            cid;
+    iwlan_pdn_apn_type_e type;
+} iwlan_n3ans_n3_priority_acquire_ntf_struct;
+
+typedef struct {
+    LOCAL_PARA_HDR
+    kal_uint8 cid;
+    n3_ran_e  n3pl[RPL_PRIO_CNT];
+} iwlan_n3ans_n3_priority_process_ind_struct;
+
+typedef struct {
+    LOCAL_PARA_HDR
+    kal_uint8 cid;
+} iwlan_n3ans_n3_priority_process_rsp_struct;
+
+#endif /* __IWLAN_PUBLIC_DEFS_H__ */
diff --git a/mcu/protocol/interface/iwlan/iwlan_wipc_struct.h b/mcu/protocol/interface/iwlan/iwlan_wipc_struct.h
new file mode 100644
index 0000000..61d8295
--- /dev/null
+++ b/mcu/protocol/interface/iwlan/iwlan_wipc_struct.h
@@ -0,0 +1,384 @@
+/*****************************************************************************
+*  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:
+ * ---------
+ * iwlan_errc_struct.h
+ *
+ * Project:
+ * --------
+ * UMOLYA
+ *
+ * Description:
+ * ------------
+ * Structs be used in Interfaces of IWLAN - WIPC.
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ *============================================================================
+ *             HISTORY
+ * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *----------------------------------------------------------------------------
+ * removed!
+ *
+ *
+ *----------------------------------------------------------------------------
+ * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *============================================================================
+ ****************************************************************************/
+
+#ifndef _IWLAN_WIPC_STRUCT_H
+#define _IWLAN_WIPC_STRUCT_H
+/****************************************************************************/
+
+#include "kal_general_types.h"
+#include "kal_public_defs.h"
+
+/****************************************************************************/
+
+#define IWLAN_MEAS_CHNLUTIL_EN   (1)
+#define IWLAN_MEAS_BACKHDL_EN    (2)
+#define IWLAN_MEAS_BACHHUL_EN    (4)
+#define IWLAN_MEAS_RSSI_EN       (8)
+
+#define LWAD_IWLAN_WLAN_MAX_MEAS_OBJ_BAND_NUM 2
+#define LWAD_IWLAN_WLAN_MAX_WLAN_NUM 32
+#define LWAD_IWLAN_WLAN_MAX_CARR_INFO_NUM 8
+#define LWAD_IWLAN_WLAN_MAX_CARR_INFO_CHANNEL_NUM 16
+#define LWAD_IWLAN_WLAN_MAX_MEAS_OBJECT_NUM 10
+#define LWAD_IWLAN_WLAN_MAX_MEAS_RESULT_NUM 33
+
+#define LWAD_IWLAN_WLAN_RSSI_NEG_INFINITY -128
+#define LWAD_IWLAN_WLAN_RSSI_POS_INFINITY 127
+
+/****************************************************************************/
+
+typedef enum
+{
+    ASSOCIATE,
+    DE_ASSOCIATE,
+    ABORT
+} cs_iwlan_associate_state_enum;
+
+typedef enum
+{
+    UNDEFINED,
+    NO_ASSOCIATE,
+    MEAS_CAPABILITY_ERR
+} iwlan_wlfw_fail_cause_enum;
+
+typedef enum
+{
+    STOP_MEAS,
+    START_MEAS
+} iwlan_wlfw_start_action_enum;
+
+typedef enum
+{
+    LWAD_IWLAN_CONN_TYPE_LWA,
+    LWAD_IWLAN_CONN_TYPE_RCLWI,
+    LWAD_IWLAN_CONN_TYPE_LWIP
+} iwlan_connection_type_enum;
+
+typedef enum
+{
+    LWAD_IWLAN_WLAN_BAND_2_DOT_4,
+    LWAD_IWLAN_WLAN_BAND_5
+} lwad_iwlan_wlan_band_enum;
+
+typedef enum
+{
+    LWAD_IWLAN_WLAN_LWA_CONNECTION_SUCCESS,
+    LWAD_IWLAN_WLAN_LWA_CONNECTION_FAILURE
+} lwad_iwlan_wlan_lwa_connect_result_enum;
+
+typedef enum
+{
+    LWAD_IWLAN_WLAN_LWA_FAIL_CAUSE_RADIO_LINK_PROBLEM,
+    LWAD_IWLAN_WLAN_LWA_FAIL_CAUSE_UE_INTERNAL_PROBLEM,
+    LWAD_IWLAN_WLAN_LWA_FAIL_CAUSE_SHM_NOT_RDY_PROBLEM
+} lwad_iwlan_wlan_lwa_failure_cause_enum;
+
+typedef enum
+{
+    LWAD_IWLAN_WLAN_COUNTRY_CODE_USA,
+    LWAD_IWLAN_WLAN_COUNTRY_CODE_EUROPE,
+    LWAD_IWLAN_WLAN_COUNTRY_CODE_JAPAN,
+    LWAD_IWLAN_WLAN_COUNTRY_CODE_GLOBAL,
+} lwad_iwlan_wlan_country_code_enum;
+
+typedef struct
+{
+    /* Length 0 means that ssid is not present. */
+    kal_uint8 opt_ssid_r12;
+    struct cs_ssid_r12_struct {
+        kal_uint8 oct_len;
+        kal_uint8 octs[32];
+    } ssid_r12;
+
+    kal_uint8 opt_bssid_r12;
+    kal_uint8 bssid_r12[6];
+
+    kal_uint8 opt_hessid_r12;
+    kal_uint8 hessid_r12[6];
+} cs_iwlan_wlanidlist_r12_struct;
+
+/* MSG_ID_CS_IWLAN_ASSOCIATE_REQ */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8    action;
+    kal_uint8    status;
+    cs_iwlan_wlanidlist_r12_struct  identifier;
+    kal_uint8    measurement;
+} cs_iwlan_associate_req_struct;
+
+typedef struct
+{
+    /* Length 0 means that ssid is not present. */
+    kal_uint8 ssid_len;
+    kal_uint8 ssid[32];
+
+    kal_bool bssid_valid;
+    kal_uint8 bssid[6];
+
+    kal_bool hessid_valid;
+    kal_uint8 hessid[6];
+} lwad_iwlan_wlan_id_struct;
+
+typedef struct
+{
+    kal_bool operating_class_valid;
+    kal_uint8 operating_class;
+
+    kal_bool country_code_valid;
+    lwad_iwlan_wlan_country_code_enum country_code;
+
+    /* Length 0 means that the list is not present. */
+    kal_uint8 wlan_channel_list_len;
+    kal_uint8 wlan_channel_list[LWAD_IWLAN_WLAN_MAX_CARR_INFO_CHANNEL_NUM];
+} lwad_iwlan_wlan_carrier_info_struct;
+
+typedef struct
+{
+    kal_bool report_carrier_info;
+    kal_bool report_available_admission_capacity;
+    kal_bool report_backhaul_dl_bw;
+    kal_bool report_backhaul_ul_bw;
+    kal_bool report_channel_utilization;
+    kal_bool report_station_count;
+} lwad_iwlan_wlan_report_quantity_struct;
+
+typedef struct
+{
+    kal_uint8 meas_object_id;
+
+    kal_uint8 wlan_list_len;
+    lwad_iwlan_wlan_id_struct wlan_list[LWAD_IWLAN_WLAN_MAX_WLAN_NUM];
+
+    /* Length 0 means that the list is not present. */
+    kal_uint8 wlan_band_list_len;
+    lwad_iwlan_wlan_band_enum wlan_band_list[LWAD_IWLAN_WLAN_MAX_MEAS_OBJ_BAND_NUM];
+
+    /* Length 0 means that the list is not present. */
+    kal_uint8 carrier_info_list_len;
+    lwad_iwlan_wlan_carrier_info_struct carrier_info_list[LWAD_IWLAN_WLAN_MAX_CARR_INFO_NUM];
+
+    lwad_iwlan_wlan_report_quantity_struct report_quantities;
+} lwad_iwlan_wlan_meas_object_struct;
+
+typedef struct
+{
+    lwad_iwlan_wlan_id_struct wlan_id;
+    /* RSSI has two special values: negative infinity (-128) and positive infinity (127).
+       Otherwise value range is [-100, 39] */
+    kal_int8 rssi;
+    lwad_iwlan_wlan_band_enum band;
+    kal_bool connected;
+
+    kal_bool carrier_info_valid;
+    lwad_iwlan_wlan_carrier_info_struct carrier_info;
+
+    kal_bool available_admission_capacity_valid;
+    kal_uint16 available_admission_capacity;
+
+    kal_bool backhaul_dl_bw_valid;
+    kal_uint8 backhaul_dl_bw;
+
+    kal_bool backhaul_ul_bw_valid;
+    kal_uint8 backhaul_ul_bw;
+
+    kal_bool channel_utilization_valid;
+    kal_uint8 channel_utilization;
+
+    kal_bool station_count_valid;
+    kal_uint16 station_count;
+} lwad_iwlan_wlan_meas_result_struct;
+
+/* MSG_ID_IWLAN_WLFW_LWI_CONF_REQ */
+typedef struct 
+{
+    LOCAL_PARA_HDR
+    kal_uint8    version;
+    kal_uint8    transaction_id;
+    kal_uint8    measurement_switch;
+    kal_uint8    Thresh_ChUtilWLAN_High;
+    kal_uint8    Thresh_ChUtilWLAN_Low;
+    kal_uint8    Thresh_BackhRateDLWLAN_High;
+    kal_uint8    Thresh_BackhRateDLWLAN_Low;
+    kal_uint8    Thresh_BackhRateULWLAN_High;
+    kal_uint8    Thresh_BackhRateULWLAN_Low;
+    kal_uint8    Thresh_WLANRSSI_High;
+    kal_uint8    Thresh_WLANRSSI_Low;
+    kal_uint8    T_steering_WLAN;
+    kal_uint8    T_roaming;
+} iwlan_wlfw_lwi_conf_req_struct;
+
+/* MSG_ID_IWLAN_WLFW_LWI_CONF_CNF */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8    version;
+    kal_uint8    transaction_id;
+    kal_uint8    result;
+    kal_uint8    cause;
+    kal_uint8    measurement_switch;
+} iwlan_wlfw_lwi_conf_cnf_struct;
+
+/* MSG_ID_IWLAN_WLFW_LWI_START_STOP_REQ */
+typedef struct
+{
+    LOCAL_PARA_HDR	
+    kal_uint8    version;
+    kal_uint8    action;
+    cs_iwlan_wlanidlist_r12_struct    identifier;
+    kal_uint8    measurement_switch;
+} iwlan_wlfw_lwi_satrt_stop_req_struct;
+
+/* MSG_ID_IWLAN_WLFW_LWI_START_STOP_CNF */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8    version;
+    kal_uint8    result;
+    kal_uint8    cause;
+    kal_uint8    measurement_switch;
+} iwlan_wlfw_lwi_satrt_stop_cnf_struct;
+
+/* MSG_ID_IWLAN_WLFW_LWI_MEAS_IND */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8    version;
+    kal_uint8    transaction_id;
+    kal_uint8    lwi_lte_to_wlan_status;
+    kal_uint8    lwi_wlan_to_lte_status;
+    cs_iwlan_wlanidlist_r12_struct    identifier;
+    kal_uint8    ChUtilWLAN;
+    kal_uint8    BackhRateDLWLAN;
+    kal_uint8    BackhRateULWLAN;
+    kal_uint8    WLANRSSI;
+} iwlan_wlfw_lwi_meas_ind_struct;
+
+/* MSG_ID_IWLAN_WLFW_MEAS_CAPA_FAIL_IND */
+typedef struct 
+{
+    LOCAL_PARA_HDR
+    kal_uint8    version;
+    kal_uint8    transaction_id;
+    cs_iwlan_wlanidlist_r12_struct    identifier;
+    kal_uint8    cause;
+    kal_uint8    measurement_switch;
+} iwlan_wlfw_meas_capa_fail_ind_struct;
+
+/* MSG_ID_LWAD_IWLAN_WLAN_MEASUEMENT_IND */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8 filter_coefficient;
+
+    kal_uint8 meas_object_list_len;
+    lwad_iwlan_wlan_meas_object_struct meas_object_list[LWAD_IWLAN_WLAN_MAX_MEAS_OBJECT_NUM];
+} lwad_iwlan_wlan_measurement_ind_struct;
+
+/* MSG_ID_LWAD_IWLAN_WLAN_MEASUEMENT_REQ */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8 meas_object_id;
+
+    kal_uint8 meas_result_list_len;
+    lwad_iwlan_wlan_meas_result_struct meas_result_list[LWAD_IWLAN_WLAN_MAX_MEAS_RESULT_NUM];
+} lwad_iwlan_wlan_measurement_req_struct;
+
+/* MSG_ID_LWAD_IWLAN_WLAN_LWA_CONNECT_IND */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8 connect_type;
+    kal_uint8 wlan_mobility_set_list_len;
+    lwad_iwlan_wlan_id_struct wlan_mobility_set_list[LWAD_IWLAN_WLAN_MAX_WLAN_NUM];
+
+    /* S-Kwt encoding:
+         bits 0..7  encoded in s_kwt[0]
+         bits 8..15 encoded in s_kwt[1]
+          ...
+       First bit of S-Kwt is the MSB of s_kwt[0]. */
+    kal_bool s_kwt_valid;
+    kal_uint8 s_kwt[32];
+} lwad_iwlan_wlan_lwa_connect_ind_struct;
+
+/* MSG_ID_LWAD_IWLAN_WLAN_LWA_CONNECT_RSP */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    lwad_iwlan_wlan_lwa_connect_result_enum result;
+    lwad_iwlan_wlan_lwa_failure_cause_enum failure_cause;
+    lwad_iwlan_wlan_id_struct wlan_id;
+} lwad_iwlan_wlan_lwa_connect_rsp_struct;
+
+/* MSG_ID_LWAD_IWLAN_WLAN_LWA_LOST_REQ */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    lwad_iwlan_wlan_lwa_failure_cause_enum cause;
+} lwad_iwlan_wlan_lwa_lost_req_struct;
+
+/****************************************************************************/
+#endif /* _IWLAN_WIPC_STRUCT_H */
diff --git a/mcu/protocol/interface/iwlan/wipc_iwlan_struct.h b/mcu/protocol/interface/iwlan/wipc_iwlan_struct.h
new file mode 100644
index 0000000..11dd9f5
--- /dev/null
+++ b/mcu/protocol/interface/iwlan/wipc_iwlan_struct.h
@@ -0,0 +1,412 @@
+/*****************************************************************************
+*  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:
+ * ---------
+ * wipc_iwlan_struct.h
+ *
+ * Project:
+ * --------
+ * UMOLYA
+ *
+ * Description:
+ * ------------
+ * Structs be used in Interfaces of IWLAN - WIPC.
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ *============================================================================
+ *             HISTORY
+ * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *----------------------------------------------------------------------------
+ * removed!
+ *
+ *
+ *----------------------------------------------------------------------------
+ * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *============================================================================
+ ****************************************************************************/
+
+#ifndef _WIPC_IWLAN_STRUCT_H
+#define _WIPC_IWLAN_STRUCT_H
+/****************************************************************************/
+
+#include "kal_general_types.h"
+#include "kal_public_defs.h"
+#include "iwlan_errc_struct.h"
+
+/****************************************************************************/
+
+#define IWLAN_MEAS_CHNLUTIL_EN   (1)
+#define IWLAN_MEAS_BACKHDL_EN    (2)
+#define IWLAN_MEAS_BACHHUL_EN    (4)
+#define IWLAN_MEAS_RSSI_EN       (8)
+
+#define LWAD_IWLAN_WLAN_MAX_MEAS_OBJ_BAND_NUM 2
+#define LWAD_IWLAN_WLAN_MAX_WLAN_NUM 32
+#define LWAD_IWLAN_WLAN_MAX_CARR_INFO_NUM 8
+#define LWAD_IWLAN_WLAN_MAX_CARR_INFO_CHANNEL_NUM 16
+#define LWAD_IWLAN_WLAN_MAX_MEAS_OBJECT_NUM 10
+#define LWAD_IWLAN_WLAN_MAX_MEAS_RESULT_NUM 20
+
+#define LWAD_IWLAN_WLAN_RSSI_NEG_INFINITY -128
+#define LWAD_IWLAN_WLAN_RSSI_POS_INFINITY 127
+
+/****************************************************************************/
+
+typedef enum
+{
+    ASSOCIATE,
+    DE_ASSOCIATE,
+    ABORT
+} cs_iwlan_associate_state_enum;
+
+typedef enum
+{
+    UNDEFINED,
+    NO_ASSOCIATE,
+    MEAS_CAPABILITY_ERR
+} iwlan_wlfw_fail_cause_enum;
+
+typedef enum
+{
+    STOP_MEAS,
+    START_MEAS
+} iwlan_wlfw_start_action_enum;
+
+typedef enum
+{
+    LWAD_IWLAN_CONN_TYPE_LWA,
+    LWAD_IWLAN_CONN_TYPE_RCLWI,
+    LWAD_IWLAN_CONN_TYPE_LWIP
+} iwlan_connection_type_enum;
+
+typedef enum
+{
+    LWAD_IWLAN_WLAN_BAND_2_DOT_4,
+    LWAD_IWLAN_WLAN_BAND_5
+} lwad_iwlan_wlan_band_enum;
+
+typedef enum
+{
+    LWAD_IWLAN_WLAN_LWA_CONNECTION_SUCCESS,
+    LWAD_IWLAN_WLAN_LWA_CONNECTION_FAILURE
+} lwad_iwlan_wlan_lwa_connect_result_enum;
+
+typedef enum
+{
+    LWAD_IWLAN_WLAN_LWA_FAIL_CAUSE_RADIO_LINK_PROBLEM,
+    LWAD_IWLAN_WLAN_LWA_FAIL_CAUSE_UE_INTERNAL_PROBLEM,
+    LWAD_IWLAN_WLAN_LWA_FAIL_CAUSE_SHM_NOT_RDY_PROBLEM
+} lwad_iwlan_wlan_lwa_failure_cause_enum;
+
+typedef enum
+{
+    LWAD_IWLAN_WLAN_COUNTRY_CODE_USA,
+    LWAD_IWLAN_WLAN_COUNTRY_CODE_EUROPE,
+    LWAD_IWLAN_WLAN_COUNTRY_CODE_JAPAN,
+    LWAD_IWLAN_WLAN_COUNTRY_CODE_GLOBAL,
+} lwad_iwlan_wlan_country_code_enum;
+
+typedef struct
+{
+    /* Length 0 means that ssid is not present. */
+    kal_uint8 opt_ssid_r12;
+    struct cs_ssid_r12_struct {
+        kal_uint8 oct_len;
+        kal_uint8 octs[32];
+    } ssid_r12;
+
+    kal_uint8 opt_bssid_r12;
+    kal_uint8 bssid_r12[6];
+
+    kal_uint8 opt_hessid_r12;
+    kal_uint8 hessid_r12[6];
+} cs_iwlan_wlanidlist_r12_struct;
+
+/* MSG_ID_CS_IWLAN_ASSOCIATE_REQ */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8    action;
+    kal_uint8    status;
+    cs_iwlan_wlanidlist_r12_struct  identifier;
+    kal_uint8    measurement;
+} cs_iwlan_associate_req_struct;
+
+typedef struct
+{
+    /* Length 0 means that ssid is not present. */
+    kal_uint8 ssid_len;
+    kal_uint8 ssid[32];
+
+    kal_bool bssid_valid;
+    kal_uint8 bssid[6];
+
+    kal_bool hessid_valid;
+    kal_uint8 hessid[6];
+} lwad_iwlan_wlan_id_struct;
+
+typedef struct
+{
+    kal_bool operating_class_valid;
+    kal_uint8 operating_class;
+
+    kal_bool country_code_valid;
+    lwad_iwlan_wlan_country_code_enum country_code;
+
+    /* Length 0 means that the list is not present. */
+    kal_uint8 wlan_channel_list_len;
+    kal_uint8 wlan_channel_list[LWAD_IWLAN_WLAN_MAX_CARR_INFO_CHANNEL_NUM];
+} lwad_iwlan_wlan_carrier_info_struct;
+
+typedef struct
+{
+    kal_bool report_carrier_info;
+    kal_bool report_available_admission_capacity;
+    kal_bool report_backhaul_dl_bw;
+    kal_bool report_backhaul_ul_bw;
+    kal_bool report_channel_utilization;
+    kal_bool report_station_count;
+} lwad_iwlan_wlan_report_quantity_struct;
+
+typedef struct
+{
+    kal_uint8 meas_object_id;
+
+    kal_uint8 wlan_list_len;
+    lwad_iwlan_wlan_id_struct wlan_list[LWAD_IWLAN_WLAN_MAX_WLAN_NUM];
+
+    /* Length 0 means that the list is not present. */
+    kal_uint8 wlan_band_list_len;
+    lwad_iwlan_wlan_band_enum wlan_band_list[LWAD_IWLAN_WLAN_MAX_MEAS_OBJ_BAND_NUM];
+
+    /* Length 0 means that the list is not present. */
+    kal_uint8 carrier_info_list_len;
+    lwad_iwlan_wlan_carrier_info_struct carrier_info_list[LWAD_IWLAN_WLAN_MAX_CARR_INFO_NUM];
+
+    lwad_iwlan_wlan_report_quantity_struct report_quantities;
+} lwad_iwlan_wlan_meas_object_struct;
+
+typedef struct
+{
+    lwad_iwlan_wlan_id_struct wlan_id;
+    /* RSSI has two special values: negative infinity (-128) and positive infinity (127).
+       Otherwise value range is [-100, 39] */
+    kal_int8 rssi;
+    lwad_iwlan_wlan_band_enum band;
+    kal_bool connected;
+
+    kal_bool carrier_info_valid;
+    lwad_iwlan_wlan_carrier_info_struct carrier_info;
+
+    kal_bool available_admission_capacity_valid;
+    kal_uint16 available_admission_capacity;
+
+    kal_bool backhaul_dl_bw_valid;
+    kal_uint8 backhaul_dl_bw;
+
+    kal_bool backhaul_ul_bw_valid;
+    kal_uint8 backhaul_ul_bw;
+
+    kal_bool channel_utilization_valid;
+    kal_uint8 channel_utilization;
+
+    kal_bool station_count_valid;
+    kal_uint16 station_count;
+} lwad_iwlan_wlan_meas_result_struct;
+
+/* MSG_ID_IWLAN_WLFW_LWI_CONF_REQ */
+typedef struct 
+{
+    LOCAL_PARA_HDR
+    kal_uint8    version;
+    kal_uint8    transaction_id;
+    kal_uint8    measurement_switch;
+    kal_uint8    Thresh_ChUtilWLAN_High;
+    kal_uint8    Thresh_ChUtilWLAN_Low;
+    kal_uint8    Thresh_BackhRateDLWLAN_High;
+    kal_uint8    Thresh_BackhRateDLWLAN_Low;
+    kal_uint8    Thresh_BackhRateULWLAN_High;
+    kal_uint8    Thresh_BackhRateULWLAN_Low;
+    kal_uint8    Thresh_WLANRSSI_High;
+    kal_uint8    Thresh_WLANRSSI_Low;
+    kal_uint8    T_steering_WLAN;
+    kal_uint8    T_roaming;
+} iwlan_wlfw_lwi_conf_req_struct;
+
+/* MSG_ID_IWLAN_WLFW_LWI_CONF_CNF */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8    version;
+    kal_uint8    transaction_id;
+    kal_uint8    result;
+    kal_uint8    cause;
+    kal_uint8    measurement_switch;
+} iwlan_wlfw_lwi_conf_cnf_struct;
+
+/* MSG_ID_IWLAN_WLFW_LWI_START_STOP_REQ */
+typedef struct
+{
+    LOCAL_PARA_HDR	
+    kal_uint8    version;
+    kal_uint8    action;
+    cs_iwlan_wlanidlist_r12_struct    identifier;
+    kal_uint8    measurement_switch;
+} iwlan_wlfw_lwi_satrt_stop_req_struct;
+
+/* MSG_ID_IWLAN_WLFW_LWI_START_STOP_CNF */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8    version;
+    kal_uint8    result;
+    kal_uint8    cause;
+    kal_uint8    measurement_switch;
+} iwlan_wlfw_lwi_satrt_stop_cnf_struct;
+
+/* MSG_ID_IWLAN_WLFW_LWI_MEAS_IND */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8    version;
+    kal_uint8    transaction_id;
+    kal_uint8    lwi_lte_to_wlan_status;
+    kal_uint8    lwi_wlan_to_lte_status;
+    cs_iwlan_wlanidlist_r12_struct    identifier;
+    kal_uint8    ChUtilWLAN;
+    kal_uint8    BackhRateDLWLAN;
+    kal_uint8    BackhRateULWLAN;
+    kal_uint8    WLANRSSI;
+} iwlan_wlfw_lwi_meas_ind_struct;
+
+/* MSG_ID_IWLAN_WLFW_MEAS_CAPA_FAIL_IND */
+typedef struct 
+{
+    LOCAL_PARA_HDR
+    kal_uint8    version;
+    kal_uint8    transaction_id;
+    cs_iwlan_wlanidlist_r12_struct    identifier;
+    kal_uint8    cause;
+    kal_uint8    measurement_switch;
+} iwlan_wlfw_meas_capa_fail_ind_struct;
+
+/* MSG_ID_WIPC_IWLAN_WLAN_MEASUREMENT_IND */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8 filter_coefficient;
+
+    kal_uint8 meas_object_list_index;
+    kal_uint8 meas_object_list_len;
+    iwlan_errc_wlan_meas_object_struct meas_object;
+} wipc_iwlan_wlan_measurement_ind_struct;
+
+#if 0
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+#endif
+
+/* MSG_ID_WIPC_IWLAN_WLAN_MEASUEMENT_REQ */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8 meas_object_id;
+    kal_uint8 meas_result_list_total;
+
+    kal_uint8 meas_result_list_start_index;
+    kal_uint8 meas_result_list_len;
+    lwad_iwlan_wlan_meas_result_struct meas_result_list[LWAD_IWLAN_WLAN_MAX_MEAS_RESULT_NUM];
+} wipc_iwlan_wlan_measurement_req_struct;
+
+/* MSG_ID_WIPC_IWLAN_WLAN_LWA_CONNECT_IND */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    kal_uint8 connect_type;
+    kal_uint8 wlan_mobility_set_list_len;
+    lwad_iwlan_wlan_id_struct wlan_mobility_set_list[LWAD_IWLAN_WLAN_MAX_WLAN_NUM];
+
+    /* S-Kwt encoding:
+         bits 0..7  encoded in s_kwt[0]
+         bits 8..15 encoded in s_kwt[1]
+          ...
+       First bit of S-Kwt is the MSB of s_kwt[0]. */
+    kal_bool s_kwt_valid;
+    kal_uint8 s_kwt[32];
+} wipc_iwlan_wlan_lwa_connect_ind_struct;
+
+/* MSG_ID_WIPC_IWLAN_WLAN_LWA_CONNECT_RSP */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    lwad_iwlan_wlan_lwa_connect_result_enum result;
+    lwad_iwlan_wlan_lwa_failure_cause_enum failure_cause;
+    lwad_iwlan_wlan_id_struct wlan_id;
+} wipc_iwlan_wlan_lwa_connect_rsp_struct;
+
+/* MSG_ID_WIPC_IWLAN_WLAN_LWA_DISCONNECT_IND */
+#if 0
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+#endif
+
+/* MSG_ID_WIPC_IWLAN_WLAN_LWA_DISCONNECT_RSP */
+#if 0
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+#endif
+
+/* MSG_ID_WIPC_IWLAN_WLAN_LWA_LOST_REQ */
+typedef struct
+{
+    LOCAL_PARA_HDR
+    lwad_iwlan_wlan_lwa_failure_cause_enum cause;
+} wipc_iwlan_wlan_lwa_lost_req_struct;
+
+/****************************************************************************/
+#endif /* _WIPC_IWLAN_STRUCT_H */