!2492 fix: modify trans 3.1 with 3.2 to tcp channel

Merge pull request !2492 from michael4096/master
This commit is contained in:
openharmony_ci 2022-10-05 13:00:59 +00:00 committed by Gitee
commit 5732b992c9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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));