Message ID | 20190221231147.6141-1-andrea.greco.gapmilano@gmail.com (mailing list archive) |
---|---|
State | Rejected |
Delegated to: | Johannes Berg |
Headers | show |
Series | [1/2] nl80211: Allow change CW to Ad-Hock network | expand |
On Fri, 2019-02-22 at 00:11 +0100, Andrea Greco wrote: > From: Andrea Greco <a.greco@4sigma.it> > > Add net-link support for change CW in Ad-Hock network This doesn't really make sense, the ibss code overrides it again once it actually re-joins etc. johannes
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index d91a408db113..4fcc63fa4380 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -2731,7 +2731,8 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info) return -EINVAL; if (netdev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP && - netdev->ieee80211_ptr->iftype != NL80211_IFTYPE_P2P_GO) + netdev->ieee80211_ptr->iftype != NL80211_IFTYPE_P2P_GO && + netdev->ieee80211_ptr->iftype != NL80211_IFTYPE_ADHOC) return -EINVAL; if (!netif_running(netdev))