From patchwork Wed Oct 2 06:48:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Markowski X-Patchwork-Id: 2973161 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 459819F245 for ; Wed, 2 Oct 2013 06:49:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5EF3820395 for ; Wed, 2 Oct 2013 06:49:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3BEBF2034D for ; Wed, 2 Oct 2013 06:49:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752926Ab3JBGtE (ORCPT ); Wed, 2 Oct 2013 02:49:04 -0400 Received: from mail-ee0-f53.google.com ([74.125.83.53]:38693 "EHLO mail-ee0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752738Ab3JBGtC (ORCPT ); Wed, 2 Oct 2013 02:49:02 -0400 Received: by mail-ee0-f53.google.com with SMTP id b15so160603eek.12 for ; Tue, 01 Oct 2013 23:49:01 -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=25/SY0N3T9Ien+E9NPUK9gkes60ApVLmrFM7MvE912s=; b=ShtZt4pfn5hIovHmCaKWF0SCdffjz34dsUfUbJe9nwf8drFCvr2V1HRFPYDGqkMWm7 nGTaamIvZwKyowozHouDZ3DUnIZF8LlSRsY0qsu049tv7dK/ESwExnclm4xRoEuNsf4w hzxxXsswbGkluwK6U91KUvJq5y8FrUI9GYpN0= 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=25/SY0N3T9Ien+E9NPUK9gkes60ApVLmrFM7MvE912s=; b=fcsklETf7qa0WGGRnV/r2/Fp65eAfO1uXUK3y23ceXGGrveBiovXzkha4Z07cDW1Qp cyGA78StnV9Dvf+g8zNR7y7Xy9QKP/tmHJvzH2ISnw3PPfvtknNU/c+3Wy/GbuyOzpjF VepNYUnNcjI5nb3O05iX0qvMgFImTKX7MlH7hDf+VuV2tVNzlNk79YVd6HD7yjZqrSaz MvHjKJK0QaNCOX9jLBvVYdwq0REd7G7tNXkj+MvfeVvd2/pZ/ylfjXkU0q410kz5vlKL Ahok1oPC4SBGiSdTfQmdF19j/JgyekwEev6mX4c9I2S1d/UcBpU2rFBspU+BjDBgKezK JJEQ== X-Gm-Message-State: ALoCoQmGlBGV6YUJGL60IRQ874Ut7j0xIi0pNgDC8n7a5pX/23CbarwVcEnlTUWABePFqvqO734adT3ncJdeLNoyK1WOUurH30/NDYBQB1+UMLIuKSTwRzk= X-Received: by 10.15.35.196 with SMTP id g44mr1227558eev.18.1380696541627; Tue, 01 Oct 2013 23:49:01 -0700 (PDT) Received: from localhost.localdomain ([91.198.246.8]) by mx.google.com with ESMTPSA id d8sm284593eeh.8.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Oct 2013 23:49:01 -0700 (PDT) From: Bartosz Markowski To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Bartosz Markowski Subject: [PATCH 2/2] ath10k: extend the max_scan time Date: Wed, 2 Oct 2013 08:48:52 +0200 Message-Id: <1380696532-4147-2-git-send-email-bartosz.markowski@tieto.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1380696532-4147-1-git-send-email-bartosz.markowski@tieto.com> References: <1380696532-4147-1-git-send-email-bartosz.markowski@tieto.com> 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=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 It was observed few times, the artificial max_scan limit we are using mainly to detect FW hangs, can be not enough for instance while being associated and during heavy traffic. What we do if the FW won't return with scan results within the max_time time is a scan abort. This is especially visible with 10.X fw which in combination with dual band HW (scanning 32 channels) can end up with hw_scan close to 10 seconds. Signed-off-by: Bartosz Markowski --- drivers/net/wireless/ath/ath10k/wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index 416dabb..f9766fa 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -2522,7 +2522,7 @@ void ath10k_wmi_start_scan_init(struct ath10k *ar, arg->repeat_probe_time = 0; arg->probe_spacing_time = 0; arg->idle_time = 0; - arg->max_scan_time = 5000; + arg->max_scan_time = 20000; arg->probe_delay = 5; arg->notify_scan_events = WMI_SCAN_EVENT_STARTED | WMI_SCAN_EVENT_COMPLETED