Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp309303imu; Thu, 8 Nov 2018 08:38:05 -0800 (PST) X-Google-Smtp-Source: AJdET5eBkpU77DvZ5T1H6A2YU4RW+yRTnnzEeLolZRrrRK4Ahdg/poR4a82BlR3eTZn1HloFxXWb X-Received: by 2002:a17:902:9a8b:: with SMTP id w11-v6mr5146738plp.94.1541695085447; Thu, 08 Nov 2018 08:38:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541695085; cv=none; d=google.com; s=arc-20160816; b=vetYTlDB350Axks8TcbpCID/ouAJvB1pBftAUmoHbuai3/sn+wf8eNqjJf3nYWX4bt 4lO63gKqP6hVuHCqsrPlV0TrmJj1wRrDUVy71xJxplQbmDU5+SXMtn+7xn7aOz6NBsVw CrNWU1L3Lv/kUCcZ7Jnyh4LFUanecgORoKLkw8wxy/ILFnFfXCYE1pN7RMZD6cS5Bhkk fWOQ6MKF3Lxg67miw6ZfRWqtfP7bfgK9sSwvJVb3CkLzLSn7aHesjJRL6ryNk70QrFuR ZIt5J3/1V/wxprmG5y3PF7v6ufLLPofUq1rCJHdn6oa/Ohprmhc1wj6pO9i00gj25J/V I5pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=yA0A+yXSptj/0o137AgZrBi1M0n9BTsVMHX3ozsoqHA=; b=CQWb/mjCDRn73aklJkruUOuvmoMRbpRyJmJweqf7ogGt4+WtBkW+/5sCpARwZJj7Ka ZBxt6eoGoXuq3SxIuJLx3rE319ZMgbFbZF90WBPkfSq5xYP/+A77CEmyVzASN9kqV+mS zmf9S8EfpaqW4A1iWDQuJy7FJFY8N3/3R2/DpDeS27CgIoQEU30ublp9wRB0u2XAW3lc 1soEPlzmAMiWhRfmX6VsyH4+uJvK0k1EO+mDe0tMeePWU7Q2Nl9Dp+lIJUOCbrExAtyQ LXwJ2non3l/TDJOm2uRU36WN7apnxkQAR61+h7mNm9HHN5g8s4sgfvPt4+VikCmmxXY7 hYDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3-v6si4220285pgl.442.2018.11.08.08.37.50; Thu, 08 Nov 2018 08:38:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727055AbeKICN3 (ORCPT + 99 others); Thu, 8 Nov 2018 21:13:29 -0500 Received: from mx0a-00010702.pphosted.com ([148.163.156.75]:52638 "EHLO mx0b-00010702.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726584AbeKICN2 (ORCPT ); Thu, 8 Nov 2018 21:13:28 -0500 Received: from pps.filterd (m0098780.ppops.net [127.0.0.1]) by mx0a-00010702.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wA8GZqpr001590; Thu, 8 Nov 2018 10:37:09 -0600 Received: from ni.com (skprod2.natinst.com [130.164.80.23]) by mx0a-00010702.pphosted.com with ESMTP id 2nkvahdqtc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Nov 2018 10:37:08 -0600 Received: from us-aus-exhub1.ni.corp.natinst.com (us-aus-exhub1.ni.corp.natinst.com [130.164.68.41]) by us-aus-skprod2.natinst.com (8.16.0.22/8.16.0.22) with ESMTPS id wA8Gb7qd022612 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 8 Nov 2018 10:37:07 -0600 Received: from us-aus-exch3.ni.corp.natinst.com (130.164.68.13) by us-aus-exhub1.ni.corp.natinst.com (130.164.68.41) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 8 Nov 2018 10:37:07 -0600 Received: from us-aus-exhub2.ni.corp.natinst.com (130.164.68.32) by us-aus-exch3.ni.corp.natinst.com (130.164.68.13) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 8 Nov 2018 10:37:07 -0600 Received: from senary.amer.corp.natinst.com (130.164.49.7) by us-aus-exhub2.ni.corp.natinst.com (130.164.68.32) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 8 Nov 2018 10:37:07 -0600 From: Kyle Roeschley To: Kalle Valo CC: "David S . Miller" , , , , Kyle Roeschley Subject: [PATCH 2/3] ath6kl: Fix off by one error in scan completion Date: Thu, 8 Nov 2018 10:36:58 -0600 Message-ID: <20181108163659.19535-2-kyle.roeschley@ni.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108163659.19535-1-kyle.roeschley@ni.com> References: <20181108163659.19535-1-kyle.roeschley@ni.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-08_08:,, signatures=0 X-Proofpoint-Spam-Reason: safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When ath6kl was reworked to share code between regular and scheduled scans in commit 3b8ffc6a22ba ("ath6kl: Configure probed SSID list consistently"), probed SSID entry changed from 1-index to 0-indexed. However, ath6kl_cfg80211_scan_complete_event() was missed in that change. Fix its indexing so that we correctly clear out the probed SSID list. Signed-off-by: Kyle Roeschley --- drivers/net/wireless/ath/ath6kl/cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index 6c98d7903ffb..d7c626d9594e 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c @@ -1093,7 +1093,7 @@ void ath6kl_cfg80211_scan_complete_event(struct ath6kl_vif *vif, bool aborted) if (vif->scan_req->n_ssids && vif->scan_req->ssids[0].ssid_len) { for (i = 0; i < vif->scan_req->n_ssids; i++) { ath6kl_wmi_probedssid_cmd(ar->wmi, vif->fw_vif_idx, - i + 1, DISABLE_SSID_FLAG, + i, DISABLE_SSID_FLAG, 0, NULL); } } -- 2.19.1