From patchwork Thu Feb 21 23:11:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Greco X-Patchwork-Id: 10824835 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2F97F1399 for ; Thu, 21 Feb 2019 23:12:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D0713245B for ; Thu, 21 Feb 2019 23:12:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10A9832490; Thu, 21 Feb 2019 23:12:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5299C3245B for ; Thu, 21 Feb 2019 23:12:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726962AbfBUXMa (ORCPT ); Thu, 21 Feb 2019 18:12:30 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41669 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726074AbfBUXMa (ORCPT ); Thu, 21 Feb 2019 18:12:30 -0500 Received: by mail-wr1-f65.google.com with SMTP id n2so310499wrw.8 for ; Thu, 21 Feb 2019 15:12:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=4sigma.it; s=google; h=from:to:cc:subject:date:message-id; bh=UBvT747HcZAlE2Jn/xPLTuKslB0UyLXMGwpB3AeXbhQ=; b=frgPMng40gfEzqGiOGWv+GgH6UupZHlHL1YunYeygKT/0sRx8phbmgmwxl9PIVAGxd ZQkaBgsvXaciVzvCu/B84Fpl9llNyBjiSptQRHthjwLE39Mm8C84RnCxz5Us8ywglWIp dGtfaEfuIf6GqEax3sJR9CWUeaeqTy61gfFYA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UBvT747HcZAlE2Jn/xPLTuKslB0UyLXMGwpB3AeXbhQ=; b=ub6MYqiCT+yQHd+YEzRZf29GWLLhKhbmnZldiQOurbaQP2J5zoott+AVS3P246YE/S AtFZBOPVc+nhkS6OvDepFJab1rdkdO5oymYo1jimMTvpSH6NLhpbC7Au5XNULtJe/PGh lkSJQrF78uu3jZ5UIBlyKk0F3JjMRoOOypRIR52M82Cc9SU6vTM21CdRzLkxbHmM+lkf /I/E3DNoKZg9nLV81xxyGMYVG65FExsval3trJKm/5v29OTgVp1ZaBIWRGHOXsywTDXZ Wj/USLz+dW/pNjJ39aVXLZ9+Xf4bT7qka5cMKdpxwfnRcjnsgvgjjHiv8LS4Vwwl+gXJ hoVQ== X-Gm-Message-State: AHQUAuY+sgJSq1j1z40m8nxK2TefyYI9oJ66lRi5GfjCyuMi5nyL2qB1 DWlluVbhtSCq6pHI4PW4jFKapQ== X-Google-Smtp-Source: AHgI3IbUUG7L1msRvm/r6EgoivDt+Z26qhFm5FXJ4DbHyQygo/XSeHPM9CWJbCyacOwzW5TIIW3ebQ== X-Received: by 2002:adf:ec10:: with SMTP id x16mr618705wrn.171.1550790748058; Thu, 21 Feb 2019 15:12:28 -0800 (PST) Received: from localhost.localdomain (host121-71-dynamic.24-79-r.retail.telecomitalia.it. [79.24.71.121]) by smtp.googlemail.com with ESMTPSA id f10sm133258wmb.35.2019.02.21.15.12.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Feb 2019 15:12:27 -0800 (PST) From: Andrea Greco X-Google-Original-From: Andrea Greco To: johannes.berg@intel.com Cc: Andrea Greco , Johannes Berg , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] nl80211: Allow change CW to Ad-Hock network Date: Fri, 22 Feb 2019 00:11:47 +0100 Message-Id: <20190221231147.6141-1-andrea.greco.gapmilano@gmail.com> X-Mailer: git-send-email 2.17.2 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andrea Greco Add net-link support for change CW in Ad-Hock network Signed-off-by: Andrea Greco --- 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))