ath6kl: Update BSS information after connection
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / ath / ath6kl / wmi.c
index 72cf78c1ca6a97bc56a7add74c41f40575dce379..f7dcb56ab3543086da4a5a51ae7d39430da943e1 100644 (file)
@@ -917,6 +917,12 @@ static int ath6kl_wmi_bssinfo_event_rx(struct wmi *wmi, u8 *datap, int len)
            bih->frame_type != PROBERESP_FTYPE)
                return 0; /* Only update BSS table for now */
 
+       if (bih->frame_type == BEACON_FTYPE &&
+           test_bit(CLEAR_BSSFILTER_ON_BEACON, &ar->flag)) {
+               clear_bit(CLEAR_BSSFILTER_ON_BEACON, &ar->flag);
+               ath6kl_wmi_bssfilter_cmd(ar->wmi, NONE_BSS_FILTER, 0);
+       }
+
        channel = ieee80211_get_channel(ar->wdev->wiphy, le16_to_cpu(bih->ch));
        if (channel == NULL)
                return -EINVAL;