summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-06-24 22:18:50 +0200
committerThomas Haller <thaller@redhat.com>2021-07-01 11:04:22 +0200
commitd9ebcc8646ebd815e5b47d04aff8e9921adb7d6c (patch)
tree8e03731a8835f6741f2b2203b9735bac8639223e
parent6c5070da55dd79bb9a28d55100ce72ed2a086f6a (diff)
downloadNetworkManager-d9ebcc8646ebd815e5b47d04aff8e9921adb7d6c.tar.gz
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.
-rw-r--r--src/libnm-core-impl/nm-keyfile.c3
1 files changed, 3 insertions, 0 deletions
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, ), ), ),