From patchwork Tue Mar 31 11:03:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 6128761 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 E5610BF4A6 for ; Tue, 31 Mar 2015 11:08:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 145C52018E for ; Tue, 31 Mar 2015 11:08:22 +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 35C2D20155 for ; Tue, 31 Mar 2015 11:08:20 +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 1Ycu1o-0007si-Bx; Tue, 31 Mar 2015 11:08:16 +0000 Received: from mail-lb0-x22c.google.com ([2a00:1450:4010:c04::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ycu1k-0007j6-Sa for ath10k@lists.infradead.org; Tue, 31 Mar 2015 11:08:13 +0000 Received: by lbcmq2 with SMTP id mq2so9644012lbc.0 for ; Tue, 31 Mar 2015 04:07:48 -0700 (PDT) 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=+S8R964h68wiOj14X8Yypg5PYOy6LezM3NOqRv2oPc0=; b=jOuH1YRxiawTQWRmQbRfllb/aYfU36PX62EQ4rof5q8f95dOSxjyb3cjWZOXJCRTgL 0sLlPqHVX5z5Hs5Vp6rcAeH2BtwQFiGs97amj0MhDkv7tnwYaVEtijZtxd8U8iF097wX +fEuErm83V35dodV4qFpUOd+GMS8XVAYOapck= 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=+S8R964h68wiOj14X8Yypg5PYOy6LezM3NOqRv2oPc0=; b=Dc8Q7F5rJw4eCylqGGHGtk7Mb58W5/1flDXpJnWJXmerAiarBI/H2PPzOeE//a7RNT 3gSyba0mseUvUKK4WSZpvs7HnVJz89qhi0ulRtpOYe0tkZnrwizaGkoRI0dXSCDRoZiz 3Aw6C9d/lTC2YAVL3zeDEulvabu0HHymoNXlCQqQ+algCbGKHwFXQJhto57FWeH/U5Nu Z0JaubPH6s0/6E9otze3qgZve9f4FNUb7VzRCZKLRFJH+zPd9+Y4tls98ozs9WiZvG8h b03Q7xg7mzVfizD0+NCsrakkfZSHMKcjjlWMWXibj2WxLZ/8CoZ3JPUNwHSTniAP8LYq u+Sg== X-Gm-Message-State: ALoCoQl9c0GvAyV1fQX8nLZA3hKS1aCbpyaZ3hQjHWIBfgIFciC8kAewfNSgZi/eBllX8LkW3uZGPXBUn01S3tvRS8+9bUbnmlxLiPEcMmGbCH6+C3i9Sru3hK/t+7PchhfP1z4kvwDlosCto3fZaD8ZYdIhEAJUEkh3pNT5E0xGTaIuJO0DzFE= X-Received: by 10.152.207.74 with SMTP id lu10mr11417427lac.108.1427800068642; Tue, 31 Mar 2015 04:07:48 -0700 (PDT) Received: from bob.homerouter.cpe (apn-46-169-246-95.dynamic.gprs.plus.pl. [46.169.246.95]) by mx.google.com with ESMTPSA id mm7sm2570296lbb.30.2015.03.31.04.07.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Mar 2015 04:07:48 -0700 (PDT) From: Michal Kazior To: ath10k@lists.infradead.org Subject: [PATCH 2/2] ath10k: use scan burst for hw roc Date: Tue, 31 Mar 2015 11:03:48 +0000 Message-Id: <1427799828-9539-2-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1427799828-9539-1-git-send-email-michal.kazior@tieto.com> References: <1427799828-9539-1-git-send-email-michal.kazior@tieto.com> X-DomainID: tieto.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150331_040813_151925_4E9152C6 X-CRM114-Status: UNSURE ( 9.03 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: 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=unavailable 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 This improves chances of getting onto a foreign channel and thus makes P2P a bit more reliable. Without scan burst it was possible for firmware to not switch to foreign channel resulting in "failed to switch to channel for roc scan" warning. This would also effectively fail some offchan tx requests and lead to P2P find/connect taking longer. This could be observed when other vifs were running/busy, e.g. with P2P GO. Signed-off-by: Michal Kazior --- drivers/net/wireless/ath/ath10k/mac.c | 1 + drivers/net/wireless/ath/ath10k/wmi-tlv.c | 2 +- drivers/net/wireless/ath/ath10k/wmi.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index cb5d253e87d9..1d48eaafe42b 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -5069,6 +5069,7 @@ static int ath10k_remain_on_channel(struct ieee80211_hw *hw, arg.max_scan_time = scan_time_msec; arg.scan_ctrl_flags |= WMI_SCAN_FLAG_PASSIVE; arg.scan_ctrl_flags |= WMI_SCAN_FILTER_PROBE_REQ; + arg.burst_duration_ms = duration; ret = ath10k_start_scan(ar, &arg); if (ret) { diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.c b/drivers/net/wireless/ath/ath10k/wmi-tlv.c index 7bfb45492027..8a6f6fdf4bdc 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.c +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.c @@ -1358,7 +1358,7 @@ ath10k_wmi_tlv_op_gen_start_scan(struct ath10k *ar, cmd = (void *)tlv->value; ath10k_wmi_put_start_scan_common(&cmd->common, arg); - cmd->burst_duration_ms = __cpu_to_le32(0); + cmd->burst_duration_ms = __cpu_to_le32(arg->burst_duration_ms); cmd->num_channels = __cpu_to_le32(arg->n_channels); cmd->num_ssids = __cpu_to_le32(arg->n_ssids); cmd->num_bssids = __cpu_to_le32(arg->n_bssids); diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h index 00b5799c5cdb..ef47ab5c4c9f 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.h +++ b/drivers/net/wireless/ath/ath10k/wmi.h @@ -2168,6 +2168,7 @@ struct wmi_start_scan_arg { u32 max_scan_time; u32 probe_delay; u32 scan_ctrl_flags; + u32 burst_duration_ms; u32 ie_len; u32 n_channels;