parent
a95e39bfa7
commit
dcdbb2c667
@ -1,31 +0,0 @@
|
|||||||
From 555b144a330f62c00813226d41be5f1ddfd32b03 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jan Grulich <jgrulich@redhat.com>
|
|
||||||
Date: Tue, 28 Jun 2016 14:57:21 +0200
|
|
||||||
Subject: Do not set peap label based on peap version
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/settings/security8021xsetting.cpp b/src/settings/security8021xsetting.cpp
|
|
||||||
index 8be37e7..888fc94 100644
|
|
||||||
--- a/src/settings/security8021xsetting.cpp
|
|
||||||
+++ b/src/settings/security8021xsetting.cpp
|
|
||||||
@@ -891,7 +891,19 @@ QVariantMap NetworkManager::Security8021xSetting::toMap() const
|
|
||||||
|
|
||||||
if (!version.isEmpty()) {
|
|
||||||
setting.insert(QLatin1String(NM_SETTING_802_1X_PHASE1_PEAPVER), version);
|
|
||||||
- setting.insert(QLatin1String(NM_SETTING_802_1X_PHASE1_PEAPLABEL), "1");
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ QString peapLabel;
|
|
||||||
+ switch (phase1PeapLabel()) {
|
|
||||||
+ case PeapLabelForce:
|
|
||||||
+ peapLabel = '1';
|
|
||||||
+ break;
|
|
||||||
+ case PeapLabelUnknown:
|
|
||||||
+ break;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ if (!peapLabel.isEmpty()) {
|
|
||||||
+ setting.insert(QLatin1String(NM_SETTING_802_1X_PHASE1_PEAPLABEL), peapLabel);
|
|
||||||
}
|
|
||||||
|
|
||||||
QString provisioning;
|
|
@ -0,0 +1,44 @@
|
|||||||
|
From d039943788dd08a5e2b1611732e3cfb6c2f64f26 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jan Grulich <jgrulich@redhat.com>
|
||||||
|
Date: Wed, 12 Apr 2017 14:02:19 +0200
|
||||||
|
Subject: Set default value for auto-negotiation based on running NM version
|
||||||
|
|
||||||
|
When running NM 1.6.0 and newer the default value is false, while previous
|
||||||
|
versions used to set it to true.
|
||||||
|
---
|
||||||
|
src/settings/wiredsetting.cpp | 11 +++++++++--
|
||||||
|
1 file changed, 9 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/settings/wiredsetting.cpp b/src/settings/wiredsetting.cpp
|
||||||
|
index d366f31..8fb3659 100644
|
||||||
|
--- a/src/settings/wiredsetting.cpp
|
||||||
|
+++ b/src/settings/wiredsetting.cpp
|
||||||
|
@@ -20,6 +20,7 @@
|
||||||
|
|
||||||
|
#include "wiredsetting.h"
|
||||||
|
#include "wiredsetting_p.h"
|
||||||
|
+#include "manager.h"
|
||||||
|
|
||||||
|
#if !NM_CHECK_VERSION(1, 0, 0)
|
||||||
|
#include <nm-setting-wired.h>
|
||||||
|
@@ -32,10 +33,16 @@ NetworkManager::WiredSettingPrivate::WiredSettingPrivate()
|
||||||
|
, port(NetworkManager::WiredSetting::UnknownPort)
|
||||||
|
, speed(0)
|
||||||
|
, duplex(NetworkManager::WiredSetting::UnknownDuplexType)
|
||||||
|
- , autoNegotiate(false)
|
||||||
|
+ // , autonegotiate(false)
|
||||||
|
, mtu(0)
|
||||||
|
, s390NetType(NetworkManager::WiredSetting::Undefined)
|
||||||
|
-{ }
|
||||||
|
+{
|
||||||
|
+ if (NetworkManager::checkVersion(1, 6, 0)) {
|
||||||
|
+ autoNegotiate = false;
|
||||||
|
+ } else {
|
||||||
|
+ autoNegotiate = true;
|
||||||
|
+ }
|
||||||
|
+}
|
||||||
|
|
||||||
|
NetworkManager::WiredSetting::WiredSetting()
|
||||||
|
: Setting(Setting::Wired)
|
||||||
|
--
|
||||||
|
cgit v0.11.2
|
Loading…
Reference in new issue