kumquat-buildroot/package/network-manager/0002-accept-auto-mode-interfaces.patch
Ilya A. Volynets-Evenbakh af9b6db0ee 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>
2016-06-11 16:05:19 +02:00

27 lines
922 B
Diff

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