ath6kl: Fix bss filter setting while scanning
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Wed, 25 Apr 2012 07:09:06 +0000 (12:39 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 27 Apr 2012 06:45:25 +0000 (09:45 +0300)
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>
drivers/net/wireless/ath/ath6kl/cfg80211.c

index 3404ef21195230170b648b9c8b948a16a9532921..b869a358ce4366276735f375b1d61366ac8631dc 100644 (file)
@@ -925,10 +925,8 @@ static int ath6kl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
 
        if (!ar->usr_bss_filter) {
                clear_bit(CLEAR_BSSFILTER_ON_BEACON, &vif->flags);
-               ret = ath6kl_wmi_bssfilter_cmd(
-                       ar->wmi, vif->fw_vif_idx,
-                       (test_bit(CONNECTED, &vif->flags) ?
-                        ALL_BUT_BSS_FILTER : ALL_BSS_FILTER), 0);
+               ret = ath6kl_wmi_bssfilter_cmd(ar->wmi, vif->fw_vif_idx,
+                                              ALL_BSS_FILTER, 0);
                if (ret) {
                        ath6kl_err("couldn't set bss filtering\n");
                        return ret;