ifupdown: drop a bogus warning

The key might be a wireless setting that has already been processed, not a
wireless-security setting.

(cherry picked from commit a5c204a69a)
This commit is contained in:
Lubomir Rintel 2016-03-14 13:48:47 +01:00
parent 1fe054d319
commit 0a112e12ce

View file

@ -319,11 +319,9 @@ update_wireless_security_setting_from_if_block(NMConnection *connection,
IfupdownStrDupeFunc dupe_func = map_by_mapping (dupe_mapping, curr->key+wireless_l);
IfupdownStrToTypeFunc type_map_func = map_by_mapping (type_mapping, curr->key+wireless_l);
GFreeFunc free_func = map_by_mapping (free_type_mapping, curr->key+wireless_l);
if(!newkey || !dupe_func) {
nm_log_warn (LOGD_SETTINGS, "no (wireless) mapping found for key: %s",
curr->key);
if(!newkey || !dupe_func)
goto next;
}
property_value = (*dupe_func) (curr->data, connection);
nm_log_info (LOGD_SETTINGS, "setting wireless security key: %s=%s",
newkey, property_value);
@ -354,9 +352,9 @@ update_wireless_security_setting_from_if_block(NMConnection *connection,
IfupdownStrDupeFunc dupe_func = map_by_mapping (dupe_mapping, curr->key+wpa_l);
IfupdownStrToTypeFunc type_map_func = map_by_mapping (type_mapping, curr->key+wpa_l);
GFreeFunc free_func = map_by_mapping (free_type_mapping, curr->key+wpa_l);
if(!newkey || !dupe_func) {
if(!newkey || !dupe_func)
goto next;
}
property_value = (*dupe_func) (curr->data, connection);
nm_log_info (LOGD_SETTINGS, "setting wpa security key: %s=%s",
newkey,