diff mbox series

[1/2] nl80211: Allow change CW to Ad-Hock network

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

Commit Message

Andrea Greco Feb. 21, 2019, 11:11 p.m. UTC
From: Andrea Greco <a.greco@4sigma.it>

Add net-link support for change CW in Ad-Hock network

Signed-off-by: Andrea Greco <a.greco@4sigma.it>
---
 net/wireless/nl80211.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Johannes Berg April 8, 2019, 12:12 p.m. UTC | #1
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 mbox series

Patch

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))