!2481 修改netCapability偶尔不准确的问题

Merge pull request !2481 from wangxiaohui/master
This commit is contained in:
openharmony_ci 2022-09-29 11:17:43 +00:00 committed by Gitee
commit 443041f6c9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -178,7 +178,6 @@ static void WifiStateEventHandler(const LnnEventBasicInfo *info)
isSend = false;
break;
case SOFTBUS_WIFI_DISABLED:
(void)LnnClearNetCapability(&netCapability, BIT_WIFI_P2P);
(void)LnnClearNetCapability(&netCapability, BIT_WIFI);
(void)LnnClearNetCapability(&netCapability, BIT_WIFI_24G);
(void)LnnClearNetCapability(&netCapability, BIT_WIFI_5G);