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: 5655721 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 36A789F2ED for ; Mon, 19 Jan 2015 09:14:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5F86020306 for ; Mon, 19 Jan 2015 09:14:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 48A102028D for ; Mon, 19 Jan 2015 09:14:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751403AbbASJOd (ORCPT ); Mon, 19 Jan 2015 04:14:33 -0500 Received: from mail-we0-f177.google.com ([74.125.82.177]:59877 "EHLO mail-we0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751356AbbASJOc (ORCPT ); Mon, 19 Jan 2015 04:14:32 -0500 Received: by mail-we0-f177.google.com with SMTP id l61so8518659wev.8 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=JCD6A88UbWDSZ7F1bP1R8cMFb5DK6y+xtr+siAN08OHk8NMuk0gaRLRvzsSJmu2ZxM dakv8IfrN11WUQyMyIBkVmN6iz1N2r2Wo6N5iwyqGTiZ+KDImjKDSiF4nUjLzgbaWSBs COwpBbLkFgWPcF8sedRuy1dFHWNGco0T+S+tJoZ3Akrc9p4QG8vuldPa7+zT7TfaExOF ZzOwrl/lMqhw4y1UgMViOCeQZzsnHRaEPw8T0TjgCbL9wuSm0lGcPsXfSIMOiItMqcTw XALYXhnwxIbvfK7pz6MchTlt4n6F/SU/oLhsuV46QTdOJH8NKCOSOp6+T1I2LrpzPC38 L9mw== X-Gm-Message-State: ALoCoQkmTTPe3sFWrk/IOwGpYrHawxK80Lh73dC4TCeuuPHEWva/BgGjXoSKmS/UP7My30M0Ma90REzAygwwQD5iCameZrxie2Bbh/L8XDr+favI3Y+7puyd+Gw7LYzRENetZxZX1zrS 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 Cc: linux-wireless@vger.kernel.org, martin@darmstadt.freifunk.net, Michal Kazior 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 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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[] = {