[v3,12/15] mesh: allow mesh to send channel switch request

Message ID c23599b461f84f2ee4f7ad5dd34da57e656e3502.1524027184.git.peter.oh@bowerswilkins.com
State Superseded
Headers show
Series
  • mesh: enable DFS channels in mesh mode
Related show

Commit Message

Peter Oh April 18, 2018, 4:55 a.m.
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(-)

Patch

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index b677f38..c779407 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -8659,7 +8659,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;
 
 	/*