[RFC 5/6] nl80211: Allow channel switches for mesh point

Benjamin Berg benjamin at sipsolutions.net
Mon Nov 28 07:38:42 PST 2016


Signed-off-by: Benjamin Berg <benjamin at sipsolutions.net>
---
 src/drivers/driver_nl80211.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 75c4271..d9ccbd1 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -8045,7 +8045,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;
 
 	/*
-- 
2.10.2




More information about the Hostap mailing list