From patchwork Wed Mar 7 13:12:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anilkumar Kolli X-Patchwork-Id: 10263997 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B627860247 for ; Wed, 7 Mar 2018 13:12:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E45628607 for ; Wed, 7 Mar 2018 13:12:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 623B52875C; Wed, 7 Mar 2018 13:12:51 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D9C0728607 for ; Wed, 7 Mar 2018 13:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=kPQA70owZSYY/hYr47EnM3HFGqzzAt3Aw0Kp65pveII=; b=Bpb QvuPbE0Yz1CLyojpLFc4wYA+YOxRtL3QBEwFv4OZ27sdFbuM8I4HP05hrrGZVpTPDA04+TflJjcgO Qf010jw2Vp95c7rsi61IHjo+a2NiX9zck2dij0rEZSyODe/7u4REoriBxN01h+LxTWTtbthgSYeLP kFCp0nTm1oYnbbaLWG97KKATjGvp06D4YgU6Jahok7XbkxYOhMb3k3Ps4v7jFRs+xbO6GhM8nSzK5 o1phEVaVUzMlvq1PYy21JtKfS2Bmft5qzh6rvWo6aUcTRXWiJPiKLpmT2MZjS7COEH46RiTCFxwlX DiDKl9+GN0QrmlpDMpJe+9/WVqtuTKQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1etYs1-0008GU-B3; Wed, 07 Mar 2018 13:12:37 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1etYrv-0008En-UD for ath10k@lists.infradead.org; Wed, 07 Mar 2018 13:12:34 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6E47F6053B; Wed, 7 Mar 2018 13:12:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520428340; bh=mkdGdYuEEdnqS4nzKMzjJymawg2kf04aIxijM2graDo=; h=From:To:Cc:Subject:Date:From; b=R2qlOPhHZ59ENqGRE6kaP2MV09kbZqtw5cezOOvkspkbPe/0xw9X+WZGP9LhCoLL7 h+dC5kv1nitg2pgnwAV2bEyK/17HC3MJsZTd8iJZjETjQ6dKeq98huTeryMGpTSEHe QIfrJ3KzC0RY1Zf+JmECVlvTOGQlaqAJTIgo9X78= Received: from localhost (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: akolli@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 38B146016D; Wed, 7 Mar 2018 13:12:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520428340; bh=mkdGdYuEEdnqS4nzKMzjJymawg2kf04aIxijM2graDo=; h=From:To:Cc:Subject:Date:From; b=R2qlOPhHZ59ENqGRE6kaP2MV09kbZqtw5cezOOvkspkbPe/0xw9X+WZGP9LhCoLL7 h+dC5kv1nitg2pgnwAV2bEyK/17HC3MJsZTd8iJZjETjQ6dKeq98huTeryMGpTSEHe QIfrJ3KzC0RY1Zf+JmECVlvTOGQlaqAJTIgo9X78= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 38B146016D Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=akolli@codeaurora.org From: Anilkumar Kolli To: ath10k@lists.infradead.org Subject: [PATCH] ath10k: Advertize beacon_int_min_gcd Date: Wed, 7 Mar 2018 18:42:36 +0530 Message-Id: <1520428356-2762-1-git-send-email-akolli@codeaurora.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180307_051232_136999_6AB50A1F X-CRM114-Status: UNSURE ( 8.15 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anilkumar Kolli , linux-wireless@vger.kernel.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes regression caused by 0c317a02ca98 ("cfg80211: support virtual interfaces with different beacon intervals"), with this change cfg80211 expects the driver to advertize 'beacon_int_min_gcd' to support different beacon intervals in multivap scenario. This support is added for, QCA988X/QCA99X0/QCA9984/QCA4019. Verifed AP + mesh bring up on QCA9984 with beacon interval 100msec and 1000msec respectively. Frimware: firmware-5.bin_10.4-3.5.3-00053 Fixes: 0c317a02ca98 ("cfg80211: support virtual interfaces with different beacon intervals") Signed-off-by: Anilkumar Kolli --- drivers/net/wireless/ath/ath10k/mac.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index ebb3f1b046f3..9486ef7cc06b 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -1,6 +1,7 @@ /* * Copyright (c) 2005-2011 Atheros Communications Inc. * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. + * Copyright (c) 2018, The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -7874,6 +7875,7 @@ void ath10k_mac_destroy(struct ath10k *ar) .max_interfaces = 8, .num_different_channels = 1, .beacon_int_infra_match = true, + .beacon_int_min_gcd = 1, #ifdef CONFIG_ATH10K_DFS_CERTIFIED .radar_detect_widths = BIT(NL80211_CHAN_WIDTH_20_NOHT) | BIT(NL80211_CHAN_WIDTH_20) | @@ -7997,6 +7999,7 @@ void ath10k_mac_destroy(struct ath10k *ar) .max_interfaces = 16, .num_different_channels = 1, .beacon_int_infra_match = true, + .beacon_int_min_gcd = 1, #ifdef CONFIG_ATH10K_DFS_CERTIFIED .radar_detect_widths = BIT(NL80211_CHAN_WIDTH_20_NOHT) | BIT(NL80211_CHAN_WIDTH_20) |