From d9ebcc8646ebd815e5b47d04aff8e9921adb7d6c Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 24 Jun 2021 22:18:50 +0200 Subject: [PATCH] libnm/keyfile: ignore [wifi].seen-bssids for keyfile "seen-bssids" primarily gets stored to "/var/lib/NetworkManager/seen-bssids", it's not a regular property. We want this property to be serialized/deserialized to/from GVariant, because we expose these settings on the API like a property of the profile. But it cannot be modified via nmcli, it cannot be stored to ifcfg files, and it makes not sense to store it to keyfile either. Stop doing that. --- src/libnm-core-impl/nm-keyfile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libnm-core-impl/nm-keyfile.c b/src/libnm-core-impl/nm-keyfile.c index 88aa0d46cd..c6c4a2eb57 100644 --- a/src/libnm-core-impl/nm-keyfile.c +++ b/src/libnm-core-impl/nm-keyfile.c @@ -2781,6 +2781,9 @@ static const ParseInfoSetting *const parse_infos[_NM_META_SETTING_TYPE_NUM] = { .parser = mac_address_parser_ETHER_cloned, ), PARSE_INFO_PROPERTY(NM_SETTING_WIRELESS_MAC_ADDRESS, .parser = mac_address_parser_ETHER, ), + PARSE_INFO_PROPERTY(NM_SETTING_WIRELESS_SEEN_BSSIDS, + .parser_skip = TRUE, + .writer_skip = TRUE, ), PARSE_INFO_PROPERTY(NM_SETTING_WIRELESS_SSID, .parser = ssid_parser, .writer = ssid_writer, ), ), ),