nl80211: Allow mesh interface to send channel switch request

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>
This commit is contained in:
Peter Oh 2018-05-29 14:39:16 -07:00 committed by Jouni Malinen
parent 64224d5871
commit 0928b62944

View 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;
/*