mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2025-01-15 05:59:43 +00:00
fix: sync 2.4G 5G wifi channel
Signed-off-by: YOUR_NAME <xusai4@huawei.com>
This commit is contained in:
parent
d816b3d62d
commit
89a2f6455d
@ -168,11 +168,8 @@ static void WifiStateEventHandler(const LnnEventBasicInfo *info)
|
||||
break;
|
||||
case SOFTBUS_WIFI_CONNECTED:
|
||||
(void)LnnSetNetCapability(&netCapability, BIT_WIFI);
|
||||
if (SoftBusGetLinkBand() == BAND_5G) {
|
||||
(void)LnnSetNetCapability(&netCapability, BIT_WIFI_5G);
|
||||
} else {
|
||||
(void)LnnSetNetCapability(&netCapability, BIT_WIFI_24G);
|
||||
}
|
||||
(void)LnnSetNetCapability(&netCapability, BIT_WIFI_5G);
|
||||
(void)LnnSetNetCapability(&netCapability, BIT_WIFI_24G);
|
||||
break;
|
||||
case SOFTBUS_WIFI_DISCONNECTED:
|
||||
(void)LnnClearNetCapability(&netCapability, BIT_WIFI);
|
||||
|
Loading…
x
Reference in New Issue
Block a user