From patchwork Mon Jan 19 09:13:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 5655731 Return-Path: X-Original-To: patchwork-ath10k@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5EFBAC058E for ; Mon, 19 Jan 2015 09:15:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 011E02028D for ; Mon, 19 Jan 2015 09:15:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2EBBE2034A for ; Mon, 19 Jan 2015 09:15:01 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YD8QB-0005zM-30; Mon, 19 Jan 2015 09:14:55 +0000 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YD8Q8-0005u9-J6 for ath10k@lists.infradead.org; Mon, 19 Jan 2015 09:14:53 +0000 Received: by mail-wi0-f178.google.com with SMTP id em10so4130811wid.5 for ; Mon, 19 Jan 2015 01:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zyr0u+a1VyR6cKYJxznOTZ9bZNY8Q4hHgRbnjg5veCA=; b=oEJyTEEY7qlXFAvo+SUBpjPAGhl7NYtv8wPXXk3YQnl9fO6+IslLhrCatLcDAkBRvR UvixotRg59IaMaKZbZ3kTyV+WkSnJC6hTLw+a2GnA3+u+tP3VIZI2gOQ96kP0VJ1LSYm QwRvpoIa6i6WBgB3lj9WxU2BlncjhdDwyRAag= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zyr0u+a1VyR6cKYJxznOTZ9bZNY8Q4hHgRbnjg5veCA=; b=TrR8ywBuGkeqXUeQ/4fRB8koNBmZLZdMoUWp4xX0oYBmqSZMSVqvF22rUJ+RdMmrHR oMCbGppj2PHfY8cqluJ5Rq9pvHMnD8r8jQuMRdQbSLeHNraNLEfGr/Z4xgdnXtk6iFHo stFUxirEvmx8NnBOsD6mz7t4UNJ8ugxE8YKJriKGEFh3ww1mjFvPYqT93i3eqEp8AEIU NKk5j3M+EAI+RAT4CGQZkGPjcNiBOSkEX1wgjqdajZvg0DCzplXkMxz9bvzx+tkONjCj cjb0MR21coqi/NlDjT/wUbq99/AOyzs3AZUG7vrXkYysp4d2izRXx+Og7I6LPvx3XZIK 6glA== X-Gm-Message-State: ALoCoQlu44ayDgwtw+WZmIbEF+V4hKnyESwY/ofu6OOKP0BRshtfw58PK1lPmzW/Rw7cj1Dt45VbraIyEc1cn/d7jy/zNq98zjEN1xXAGt4hwSHIjN2lkGB20KDkms4C2VNEa1eBtLlkf52d6m6/DvhB+DdjpobzAh+diLd8PzyAOONxOaeSteU= X-Received: by 10.194.48.11 with SMTP id h11mr57007214wjn.23.1421658870379; Mon, 19 Jan 2015 01:14:30 -0800 (PST) Received: from bob.homerouter.cpe (apn-46-76-65-212.dynamic.gprs.plus.pl. [46.76.65.212]) by mx.google.com with ESMTPSA id l6sm16469158wjx.33.2015.01.19.01.14.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Jan 2015 01:14:29 -0800 (PST) From: Michal Kazior To: ath10k@lists.infradead.org Subject: [RFC/RFT] ath10k: enable IBSS in multi-vif Date: Mon, 19 Jan 2015 10:13:53 +0100 Message-Id: <1421658833-13311-1-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <54B97B96.4040903@darmstadt.freifunk.net> References: <54B97B96.4040903@darmstadt.freifunk.net> X-DomainID: tieto.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150119_011452_845206_A7597145 X-CRM114-Status: UNSURE ( 9.74 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: martin@darmstadt.freifunk.net, linux-wireless@vger.kernel.org, Michal Kazior X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The 999.999.0.636 firmware seems to support concurrent IBSS + AP/STA. At least basic stuff works so enable it since some people are interested in this stuff. If it's broken we can fix, restrict or disable it later. Signed-off-by: Michal Kazior --- Hi Martin, Feel free to take this patch and run whatever case you had in mind. If this proves to work for you without any major issues (like notorious crashes, traffic issues and such) I guess we could try pulling this upstream. Make sure you use 999.999.0.636 firmware. The 10.x doesn't support IBSS at all. drivers/net/wireless/ath/ath10k/mac.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 9524bc5..11170ce 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -5032,6 +5032,10 @@ static const struct ieee80211_iface_limit ath10k_if_limits[] = { .max = 7, .types = BIT(NL80211_IFTYPE_AP) }, + { + .max = 1, + .types = BIT(NL80211_IFTYPE_ADHOC) + }, }; static const struct ieee80211_iface_limit ath10k_10x_if_limits[] = {