Message ID | 20240214200837.64262a35ce9f.I725cb866e9580e48371888c91840e0a955669437@changeid |
---|---|
State | New |
Headers | show |
Series | wifi: nl80211: reject iftype change with mesh ID change | expand |
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index b09700400d09..bd54a928bab4 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -4197,6 +4197,8 @@ static int nl80211_set_interface(struct sk_buff *skb, struct genl_info *info) if (ntype != NL80211_IFTYPE_MESH_POINT) return -EINVAL; + if (otype != NL80211_IFTYPE_MESH_POINT) + return -EINVAL; if (netif_running(dev)) return -EBUSY;