summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/cw1200/txrx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/cw1200/txrx.c')
-rw-r--r--drivers/net/wireless/cw1200/txrx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/cw1200/txrx.c b/drivers/net/wireless/cw1200/txrx.c
index 5862c373d71..e824d4d4a18 100644
--- a/drivers/net/wireless/cw1200/txrx.c
+++ b/drivers/net/wireless/cw1200/txrx.c
@@ -1165,7 +1165,7 @@ void cw1200_rx_cb(struct cw1200_common *priv,
if (cw1200_handle_action_rx(priv, skb))
return;
} else if (ieee80211_is_beacon(frame->frame_control) &&
- !arg->status &&
+ !arg->status && priv->vif &&
!memcmp(ieee80211_get_SA(frame), priv->vif->bss_conf.bssid,
ETH_ALEN)) {
const u8 *tim_ie;