From patchwork Tue Apr 14 14:49:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitkumar Karwar X-Patchwork-Id: 6216361 X-Patchwork-Delegate: kvalo@adurom.com 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 1328D9F1AC for ; Tue, 14 Apr 2015 14:50:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3DB9C201F2 for ; Tue, 14 Apr 2015 14:49:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4B579201E4 for ; Tue, 14 Apr 2015 14:49:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754775AbbDNOt5 (ORCPT ); Tue, 14 Apr 2015 10:49:57 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:18331 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753510AbbDNOtz (ORCPT ); Tue, 14 Apr 2015 10:49:55 -0400 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id t3EEntQQ016802 for ; Tue, 14 Apr 2015 07:49:55 -0700 Received: from sc-owa.marvell.com ([199.233.58.135]) by mx0b-0016f401.pphosted.com with ESMTP id 1tpw0c8hsr-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Tue, 14 Apr 2015 07:49:55 -0700 Received: from maili.marvell.com (10.93.76.83) by SC-OWA.marvell.com (10.93.76.28) with Microsoft SMTP Server id 8.3.327.1; Tue, 14 Apr 2015 07:49:53 -0700 Received: from pe-lt101 (unknown [10.31.131.13]) by maili.marvell.com (Postfix) with ESMTP id 9F56B3F703F; Tue, 14 Apr 2015 07:49:53 -0700 (PDT) Received: from pe-lt101 (pe-lt077 [127.0.0.1]) by pe-lt101 (8.14.4/8.14.4) with ESMTP id t3EEnT40012046; Tue, 14 Apr 2015 07:49:30 -0700 Received: (from root@localhost) by pe-lt101 (8.14.4/8.14.4/Submit) id t3EEnLoo012044; Tue, 14 Apr 2015 07:49:21 -0700 From: Amitkumar Karwar To: CC: Cathy Luo , Avinash Patil , Amitkumar Karwar Subject: [PATCH] mwifiex: increase number of probes for specific SSID scans Date: Tue, 14 Apr 2015 07:49:16 -0700 Message-ID: <1429022956-12016-1-git-send-email-akarwar@marvell.com> X-Mailer: git-send-email 1.7.3.4 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33, 0.0.0000 definitions=2015-04-14_04:2015-04-14, 2015-04-14, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1504140128 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 It's been observed that device sometimes fails to find AP configured in hidden SSID in busy environment. We will increase number of probes for specific SSID scans for getting better results. Signed-off-by: Amitkumar Karwar Signed-off-by: Avinash Patil --- drivers/net/wireless/mwifiex/cfg80211.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index bf9020f..3783db5 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c @@ -2269,6 +2269,12 @@ mwifiex_cfg80211_scan(struct wiphy *wiphy, user_scan_cfg->num_ssids = request->n_ssids; user_scan_cfg->ssid_list = request->ssids; + /* Increase number of probes for specific SSID scans for + * better results + */ + if (request->n_ssids > 1) + user_scan_cfg->num_probes = 4; + if (request->ie && request->ie_len) { offset = 0; for (i = 0; i < MWIFIEX_MAX_VSIE_NUM; i++) {