Merge branch 'yhkylin/v101-fork' into 'yhkylin/v101'

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

See merge request kylinos-src/kylin-nm!223
This commit is contained in:
赵世旭 2023-07-20 02:18:44 +00:00
commit 63825a30c9
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);
} }