linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mwifiex: increase number of probes for specific SSID scans
@ 2015-04-14 14:49 Amitkumar Karwar
  2015-04-14 15:09 ` Johannes Berg
  2015-04-14 20:37 ` James Cameron
  0 siblings, 2 replies; 6+ messages in thread
From: Amitkumar Karwar @ 2015-04-14 14:49 UTC (permalink / raw)
  To: linux-wireless; +Cc: Cathy Luo, Avinash Patil, Amitkumar Karwar

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 <akarwar@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
---
 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++) {
-- 
1.8.1.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-15 11:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-14 14:49 [PATCH] mwifiex: increase number of probes for specific SSID scans Amitkumar Karwar
2015-04-14 15:09 ` Johannes Berg
2015-04-15  7:30   ` Amitkumar Karwar
2015-04-14 20:37 ` James Cameron
2015-04-15  9:01   ` Amitkumar Karwar
2015-04-15 11:37     ` James Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).