diff mbox series

[v5,12/17] mesh: allow mesh to send channel switch request

Message ID c983f81f33944db9140ea1c5217a53c701b49729.1527629631.git.peter.oh@bowerswilkins.com
State Accepted
Headers show
Series mesh: enable DFS channels in mesh mode | expand

Commit Message

Peter Oh May 29, 2018, 9:39 p.m. UTC
From: Peter Oh <peter.oh@bowerswilkins.com>

add mesh type to nl80211 channel switch request,
so mesh is able to send the request to kernel drivers.

Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
---
 src/drivers/driver_nl80211.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Jouni Malinen May 31, 2018, 1:18 p.m. UTC | #1
On Tue, May 29, 2018 at 02:39:16PM -0700, peter.oh@bowerswilkins.com wrote:
> add mesh type to nl80211 channel switch request,
> so mesh is able to send the request to kernel drivers.

Thanks, I applied this patch 12/17, but there are pending questions (or
dependencies on patches that have pending questions) for the other
patches in the series, so I dropped them from my queue.
diff mbox series

Patch

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 9dabebd..916baf7 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -8685,7 +8685,8 @@  static int nl80211_switch_channel(void *priv, struct csa_settings *settings)
 	}
 
 	if ((drv->nlmode != NL80211_IFTYPE_AP) &&
-	    (drv->nlmode != NL80211_IFTYPE_P2P_GO))
+	    (drv->nlmode != NL80211_IFTYPE_P2P_GO) &&
+	    (drv->nlmode != NL80211_IFTYPE_MESH_POINT) )
 		return -EOPNOTSUPP;
 
 	/*