linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] nl80211: Allow change CW to Ad-Hock network
@ 2019-02-21 23:11 Andrea Greco
  2019-04-08 12:12 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Andrea Greco @ 2019-02-21 23:11 UTC (permalink / raw)
  To: johannes.berg
  Cc: Andrea Greco, Johannes Berg, David S. Miller, linux-wireless,
	netdev, linux-kernel

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

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] nl80211: Allow change CW to Ad-Hock network
  2019-02-21 23:11 [PATCH 1/2] nl80211: Allow change CW to Ad-Hock network Andrea Greco
@ 2019-04-08 12:12 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2019-04-08 12:12 UTC (permalink / raw)
  To: Andrea Greco; +Cc: David S. Miller, linux-wireless, netdev, linux-kernel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-08 12:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-21 23:11 [PATCH 1/2] nl80211: Allow change CW to Ad-Hock network Andrea Greco
2019-04-08 12:12 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).