From af9b6db0ee5032ed7e14f978fdeb11252db92cd1 Mon Sep 17 00:00:00 2001 From: "Ilya A. Volynets-Evenbakh" Date: Mon, 30 May 2016 19:33:15 +0300 Subject: 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 [Thomas: add reference to the upstream commit.] Signed-off-by: Thomas Petazzoni --- .../0002-accept-auto-mode-interfaces.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/network-manager/0002-accept-auto-mode-interfaces.patch 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 +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 + +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 + -- cgit v1.2.3