[Bugfix][T108][bug-view-1367] not support gsw set vlan info

    Only Configure: No
    Affected branch: unknown
    Affected module: rtp
    Is it affected on both ZXIC and ASR: only ASR
    Self-test: yes
    Doc Update: no

Change-Id: I9cf849d46788e7de7d4be26a8b00143faf1a2fe8
diff --git a/mbtk/libgsw_lib/gsw_voice_interface.c b/mbtk/libgsw_lib/gsw_voice_interface.c
index 1063c79..d74802a 100755
--- a/mbtk/libgsw_lib/gsw_voice_interface.c
+++ b/mbtk/libgsw_lib/gsw_voice_interface.c
@@ -217,6 +217,7 @@
 int (*mbtk_rtp_client_port_set)(int port);

 int (*mbtk_rtp_sample_rate_set)(int sample_rate);

 int (*mbtk_rtp_channel_set)(int channel);

+int (*mbtk_rtp_vlan_set)(const char *vlan);

 /*rtp end*/

 

 

@@ -365,6 +366,13 @@
         LOGE("mbtk_rtp_channel_set dlsym fail\n");

         return GSW_HAL_NORMAL_FAIL;

     }

+

+    mbtk_rtp_vlan_set = (int (*)(const char *vlan))dlsym(dlHandle_mbtk, "mbtk_rtp_vlan_set");

+    if (mbtk_rtp_vlan_set == NULL) 

+    {

+        LOGE("mbtk_rtp_vlan_set dlsym fail\n");

+        return GSW_HAL_NORMAL_FAIL;

+    }

    

     return GSW_HAL_SUCCESS;

 }

@@ -1008,5 +1016,27 @@
     }

     return GSW_HAL_SUCCESS;  

 }

+

+/**

+ * @brief set rtp vlan

+ * @param  [in] interfaceName network interface name

+ * @retval 0: success

+ * @retval other: fail

+ */

+int32_t gsw_voice_set_rtp_vlan_info(const char *interfaceName)

+{

+    if(gsw_voice_init_flag == 0)

+    {

+       return GSW_HAL_NORMAL_FAIL;

+    }

+

+    int ret=mbtk_rtp_vlan_set(interfaceName);

+    

+    if(ret !=0 )

+    {

+        return GSW_HAL_NORMAL_FAIL;

+    }

+    return GSW_HAL_SUCCESS;       

+}

 /*##########################################rtp end*/