summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya A. Volynets-Evenbakh <ilya@total-knowledge.com>2016-05-30 19:33:15 +0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-06-11 16:05:19 +0200
commitaf9b6db0ee5032ed7e14f978fdeb11252db92cd1 (patch)
tree2d95b1ebb33e0f40044380fd73ae2469687999e5
parent3135c6374a8f0b5308bb0d1de90d28879cd528a1 (diff)
package/network-manager: support WEXT drivers which report mode AUTO
Some wireless drivers report IW_MODE_AUTO instead of IW_MODE_MANAGED. NetworkManager 1.0.12 introduced a change, which makes it skip such interfaces. This patch is a backport of a workaround for this problem from the NetworkManager upstream. Signed-off-by: Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com> [Thomas: add reference to the upstream commit.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/network-manager/0002-accept-auto-mode-interfaces.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/network-manager/0002-accept-auto-mode-interfaces.patch b/package/network-manager/0002-accept-auto-mode-interfaces.patch
new file mode 100644
index 000000000..d7ef34880
--- /dev/null
+++ b/package/network-manager/0002-accept-auto-mode-interfaces.patch
@@ -0,0 +1,26 @@
+From 0f6febc6fbeafde62e6e0a8c12f57204d94166fb Mon Sep 17 00:00:00 2001
+From: Francesco Giudici <fgiudici@redhat.com>
+Date: Fri, 11 Mar 2016 09:55:39 +0100
+Subject: wifi: hack for wext devices reporting IW_MODE_AUTO configuration
+ mode.
+
+Backport from upstream commit
+https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=0f6febc6fbeafde62e6e0a8c12f57204d94166f.
+
+Signed-off-by: Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>
+
+diff --git a/src/platform/wifi/wifi-utils-wext.c b/src/platform/wifi/wifi-utils-wext.c
+index 26f4ce4..af285b4 100644
+--- a/src/platform/wifi/wifi-utils-wext.c
++++ b/src/platform/wifi/wifi-utils-wext.c
+@@ -118,6 +118,7 @@ wifi_wext_get_mode (WifiData *data)
+ case IW_MODE_MASTER:
+ return NM_802_11_MODE_AP;
+ case IW_MODE_INFRA:
++ case IW_MODE_AUTO: /* hack for WEXT devices reporting IW_MODE_AUTO */
+ return NM_802_11_MODE_INFRA;
+ default:
+ break;
+--
+cgit v0.10.2
+