cw1200: Fix OOPS in monitor mode
In monitor mode, priv->vif is NULL, but at one point in the receive path we blindly attempt to dereference it. Add a test to prevent this. Signed-off-by: Solomon Peachy <pizza@shaftnet.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
4928bd2ef8
commit
16ec75b5de
1 changed files with 1 additions and 1 deletions
|
@ -1165,7 +1165,7 @@ void cw1200_rx_cb(struct cw1200_common *priv,
|
||||||
if (cw1200_handle_action_rx(priv, skb))
|
if (cw1200_handle_action_rx(priv, skb))
|
||||||
return;
|
return;
|
||||||
} else if (ieee80211_is_beacon(frame->frame_control) &&
|
} else if (ieee80211_is_beacon(frame->frame_control) &&
|
||||||
!arg->status &&
|
!arg->status && priv->vif &&
|
||||||
!memcmp(ieee80211_get_SA(frame), priv->vif->bss_conf.bssid,
|
!memcmp(ieee80211_get_SA(frame), priv->vif->bss_conf.bssid,
|
||||||
ETH_ALEN)) {
|
ETH_ALEN)) {
|
||||||
const u8 *tim_ie;
|
const u8 *tim_ie;
|
||||||
|
|
Loading…
Add table
Reference in a new issue