修改BUG 180890 【整机-联想开天】【M70Z-G1TS】移动热点开启显示异常【5.4.18-93-generic】,配合后端修改,切换热点频率时清除信道配置

This commit is contained in:
chenxuechao 2023-07-20 09:49:03 +08:00
parent 3a993cd5c7
commit 83de5d96b7
1 changed files with 3 additions and 0 deletions

View File

@ -1211,6 +1211,9 @@ void KyWirelessConnectOperation::updateWirelessApSetting(
NMVariantMapMap newMap = apConnectSettingPtr->toMap(); NMVariantMapMap newMap = apConnectSettingPtr->toMap();
if (newMap.contains(KEY_802_11_WIRELESS)) { if (newMap.contains(KEY_802_11_WIRELESS)) {
newMap[KEY_802_11_WIRELESS].insert(KEY_BLACKLIST_HOSTNAME, blackList); newMap[KEY_802_11_WIRELESS].insert(KEY_BLACKLIST_HOSTNAME, blackList);
if (wirelessBand == WIFI_BAND_2_4GHZ) {
newMap[KEY_802_11_WIRELESS].remove("channel");
}
} }
apConnectPtr->update(newMap); apConnectPtr->update(newMap);
} }