diff options
Diffstat (limited to 'drivers/staging/wfx/sta.c')
-rw-r--r-- | drivers/staging/wfx/sta.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index c7505b5d0947..a9261ef4b4c5 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -194,6 +194,7 @@ void wfx_configure_filter(struct ieee80211_hw *hw, { struct wfx_vif *wvif = NULL; struct wfx_dev *wdev = hw->priv; + bool filter_bssid, filter_prbreq; // Notes: // - Probe responses (FIF_BCN_PRBRESP_PROMISC) are never filtered @@ -227,9 +228,9 @@ void wfx_configure_filter(struct ieee80211_hw *hw, wfx_update_filtering(wvif); if (*total_flags & FIF_OTHER_BSS) - wvif->filter_bssid = false; + filter_bssid = false; else - wvif->filter_bssid = true; + filter_bssid = true; // In AP mode, chip can reply to probe request itself if (*total_flags & FIF_PROBE_REQ && @@ -239,11 +240,10 @@ void wfx_configure_filter(struct ieee80211_hw *hw, } if (*total_flags & FIF_PROBE_REQ) - wvif->filter_prbreq = false; + filter_prbreq = false; else - wvif->filter_prbreq = true; - hif_set_rx_filter(wvif, wvif->filter_bssid, - wvif->filter_prbreq); + filter_prbreq = true; + hif_set_rx_filter(wvif, filter_bssid, filter_prbreq); mutex_unlock(&wvif->scan_lock); } |