]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ath10k: enable monitor when OTHER_BSS requested
authorBob Copeland <me@bobcopeland.com>
Wed, 9 Sep 2015 16:47:34 +0000 (12:47 -0400)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 17 Sep 2015 10:48:30 +0000 (13:48 +0300)
By default, ath10k restricts received frames to those matching BSSID.
When other BSS frames are requested (e.g. in mesh mode), add an internal
monitor device so those frames are not filtered.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c

index 989d2a154f8f851594abbabc42557145e7112bbc..80efcc8debfec8157ea4daa1277296a5b9edd217 100644 (file)
@@ -1070,6 +1070,7 @@ static bool ath10k_mac_monitor_vdev_is_needed(struct ath10k *ar)
                return false;
 
        return ar->monitor ||
+              ar->filter_flags & FIF_OTHER_BSS ||
               test_bit(ATH10K_CAC_RUNNING, &ar->dev_flags);
 }