aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>2012-02-21 05:00:42 -0500
committerKalle Valo <kvalo@qca.qualcomm.com>2012-02-28 03:39:39 -0500
commit13423c31195efb1a1ac319294f5a0148a13433e6 (patch)
tree5388e6b00a9214656f0ad8384959739a9c4c667b /drivers/net/wireless/ath
parent5378f244b677f6696ca8a9a467cef16cd399b0e2 (diff)
ath6kl: Make foreground scan a deterministic one
This makes the device get into scan state as soon as a scan request is received, instead of blocking the scan request till the traffic comes down. It is necessary for the deterministic foreground scan particularly when having multiple vif operating where, if the scan is non- deterministic, scan on one interface will not start as long as there are traffic on the other interface. This change passes 50 msec as foreground scan interval to fix this. Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath6kl/cfg80211.c11
-rw-r--r--drivers/net/wireless/ath/ath6kl/core.h3
2 files changed, 10 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c
index a47688054ce9..d8d483798530 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -927,14 +927,17 @@ static int ath6kl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
927 */ 927 */
928 ret = ath6kl_wmi_beginscan_cmd(ar->wmi, vif->fw_vif_idx, 928 ret = ath6kl_wmi_beginscan_cmd(ar->wmi, vif->fw_vif_idx,
929 WMI_LONG_SCAN, force_fg_scan, 929 WMI_LONG_SCAN, force_fg_scan,
930 false, 0, 0, n_channels, 930 false, 0,
931 channels, request->no_cck, 931 ATH6KL_FG_SCAN_INTERVAL,
932 n_channels, channels,
933 request->no_cck,
932 request->rates); 934 request->rates);
933 } else { 935 } else {
934 ret = ath6kl_wmi_startscan_cmd(ar->wmi, vif->fw_vif_idx, 936 ret = ath6kl_wmi_startscan_cmd(ar->wmi, vif->fw_vif_idx,
935 WMI_LONG_SCAN, force_fg_scan, 937 WMI_LONG_SCAN, force_fg_scan,
936 false, 0, 0, n_channels, 938 false, 0,
937 channels); 939 ATH6KL_FG_SCAN_INTERVAL,
940 n_channels, channels);
938 } 941 }
939 if (ret) 942 if (ret)
940 ath6kl_err("wmi_startscan_cmd failed\n"); 943 ath6kl_err("wmi_startscan_cmd failed\n");
diff --git a/drivers/net/wireless/ath/ath6kl/core.h b/drivers/net/wireless/ath/ath6kl/core.h
index 09efafa5fef1..5bbc595f23d1 100644
--- a/drivers/net/wireless/ath/ath6kl/core.h
+++ b/drivers/net/wireless/ath/ath6kl/core.h
@@ -63,6 +63,9 @@
63#define A_DEFAULT_LISTEN_INTERVAL 1 /* beacon intervals */ 63#define A_DEFAULT_LISTEN_INTERVAL 1 /* beacon intervals */
64#define A_MAX_WOW_LISTEN_INTERVAL 1000 64#define A_MAX_WOW_LISTEN_INTERVAL 1000
65 65
66/* Channel dwell time in fg scan */
67#define ATH6KL_FG_SCAN_INTERVAL 50 /* in ms */
68
66/* includes also the null byte */ 69/* includes also the null byte */
67#define ATH6KL_FIRMWARE_MAGIC "QCA-ATH6KL" 70#define ATH6KL_FIRMWARE_MAGIC "QCA-ATH6KL"
68 71