]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Allow mesh interface to send channel switch request
authorPeter Oh <peter.oh@bowerswilkins.com>
Tue, 29 May 2018 21:39:16 +0000 (14:39 -0700)
committerJouni Malinen <j@w1.fi>
Thu, 31 May 2018 09:16:03 +0000 (12:16 +0300)
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

index 0c5c6bb6f7981098a518de044382f49b12c40d8b..5cff47fab6da49baca82195917f405172a0d0636 100644 (file)
@@ -8684,8 +8684,9 @@ static int nl80211_switch_channel(void *priv, struct csa_settings *settings)
                return -EOPNOTSUPP;
        }
 
-       if ((drv->nlmode != NL80211_IFTYPE_AP) &&
-           (drv->nlmode != NL80211_IFTYPE_P2P_GO))
+       if (drv->nlmode != NL80211_IFTYPE_AP &&
+           drv->nlmode != NL80211_IFTYPE_P2P_GO &&
+           drv->nlmode != NL80211_IFTYPE_MESH_POINT)
                return -EOPNOTSUPP;
 
        /*