summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2013-07-19 23:23:26 -0400
committerSolomon Peachy <pizza@shaftnet.org>2013-07-19 23:23:26 -0400
commit67d580065fc4139dba3c044081c4e2076db588ae (patch)
tree871650241f5a47586457b2f4d1d63dd88e2ab66e
parent91e25f71bdbb657d70b7732bd647368f33c0732c (diff)
downloadcompat-wireless-cw1200-67d580065fc4139dba3c044081c4e2076db588ae.tar.gz
compat-wireless-cw1200-67d580065fc4139dba3c044081c4e2076db588ae.tar.bz2
compat-wireless-cw1200-67d580065fc4139dba3c044081c4e2076db588ae.zip
cw1200: Fix crash in monitor mode.
-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 0c3fa68..2cffe38 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;