From b33b277b77b19f0131710fc7fd7a6660552f4178 Mon Sep 17 00:00:00 2001 From: YOUR_NAME Date: Wed, 5 Oct 2022 11:14:38 +0000 Subject: [PATCH] fix: modify trans 3.1 with 3.2 to tcp channel Signed-off-by: YOUR_NAME --- sdk/transmission/trans_channel/udp/file/src/client_trans_file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/transmission/trans_channel/udp/file/src/client_trans_file.c b/sdk/transmission/trans_channel/udp/file/src/client_trans_file.c index c8db37efc..422a34b0a 100644 --- a/sdk/transmission/trans_channel/udp/file/src/client_trans_file.c +++ b/sdk/transmission/trans_channel/udp/file/src/client_trans_file.c @@ -154,6 +154,7 @@ int32_t TransOnFileChannelOpened(const char *sessionName, const ChannelInfo *cha return SOFTBUS_INVALID_PARAM; } int32_t fileSession; + (void)NSTACKX_DFileSetCapabilities(NSTACKX_CAPS_UDP_GSO | NSTACKX_CAPS_WLAN_CATAGORY, NSTACKX_WLAN_CAT_TCP); if (channel->isServer) { FileListener fileListener; (void)memset_s(&fileListener, sizeof(FileListener), 0, sizeof(FileListener));