aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>2012-04-25 03:09:06 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2012-04-27 02:45:25 -0400
commit954e6ce54c0a251758a58a58d75ec63722ff036d (patch)
tree5617f572020d29b6b79694a18043d3e024622f0f
parent7fd1ce7eafb8a68d75363e7500433b0ee4392843 (diff)
ath6kl: Fix bss filter setting while scanning
bss filter is configured to allow the frames from all the bss other than the currenly connected one, this is done when a scan is requested in connected state. There is no reason to filter out the currently connected bss, configure the filter to allow all the bss. This would fix the reporting of stale rssi of the current bss while scanning. Reported-by: Naveen singh <navesing@qca.qualcomm.com> Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r--drivers/net/wireless/ath/ath6kl/cfg80211.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c
index 3404ef211952..b869a358ce43 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -925,10 +925,8 @@ static int ath6kl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
925 925
926 if (!ar->usr_bss_filter) { 926 if (!ar->usr_bss_filter) {
927 clear_bit(CLEAR_BSSFILTER_ON_BEACON, &vif->flags); 927 clear_bit(CLEAR_BSSFILTER_ON_BEACON, &vif->flags);
928 ret = ath6kl_wmi_bssfilter_cmd( 928 ret = ath6kl_wmi_bssfilter_cmd(ar->wmi, vif->fw_vif_idx,
929 ar->wmi, vif->fw_vif_idx, 929 ALL_BSS_FILTER, 0);
930 (test_bit(CONNECTED, &vif->flags) ?
931 ALL_BUT_BSS_FILTER : ALL_BSS_FILTER), 0);
932 if (ret) { 930 if (ret) {
933 ath6kl_err("couldn't set bss filtering\n"); 931 ath6kl_err("couldn't set bss filtering\n");
934 return ret; 932 return ret;