NetworkManager/src/supplicant-manager
Thomas Haller 5de28d4d16 wifi: propagte errors from supplicant-config to caller
The nm_supplicant_config_add_*() functions used to log failures
themselves. As also the caller was logging the failure this resulted
in duplicate logging lines like:

  <warn>  MAC address randomization is not supported
  <error> [1447867727.909185] [nm-device-wifi.c:2238] build_supplicant_config(): (wlp3s0): Couldn't add 802-11-wireless setting to supplicant config.
  <error> [1447867727.909261] [nm-device-wifi.c:2472] act_stage2_config(): (wlp3s0): Activation: (wifi) couldn't build wireless configuration.

Instead, propagate the error reason back to the caller where there
is more context to log one single concise message.

Now you'd see only:

  <error> [1447935996.859371] [nm-device-wifi.c:2475] act_stage2_config(): (wlp3s0): Activation: (wifi) couldn't build wireless configuration: 802-11-wireless: cannot enable mac-randomization due to missing supplicant support
2015-11-19 13:45:14 +01:00
..
tests wifi: propagte errors from supplicant-config to caller 2015-11-19 13:45:14 +01:00
nm-supplicant-config.c wifi: propagte errors from supplicant-config to caller 2015-11-19 13:45:14 +01:00
nm-supplicant-config.h wifi: propagte errors from supplicant-config to caller 2015-11-19 13:45:14 +01:00
nm-supplicant-interface.c wifi: propagte errors from supplicant-config to caller 2015-11-19 13:45:14 +01:00
nm-supplicant-interface.h wifi: propagte errors from supplicant-config to caller 2015-11-19 13:45:14 +01:00
nm-supplicant-manager.c wifi: propagte errors from supplicant-config to caller 2015-11-19 13:45:14 +01:00
nm-supplicant-manager.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-supplicant-settings-verify.c all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-supplicant-settings-verify.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-supplicant-types.h wifi: propagte errors from supplicant-config to caller 2015-11-19 13:45:14 +01:00