diff options
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index da8aa83481f7..631d65b73edf 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -258,7 +258,8 @@ static int mac80211_hwsim_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
258 | 258 | ||
259 | txi = IEEE80211_SKB_CB(skb); | 259 | txi = IEEE80211_SKB_CB(skb); |
260 | 260 | ||
261 | hwsim_check_magic(txi->control.vif); | 261 | if (txi->control.vif) |
262 | hwsim_check_magic(txi->control.vif); | ||
262 | if (txi->control.sta) | 263 | if (txi->control.sta) |
263 | hwsim_check_sta_magic(txi->control.sta); | 264 | hwsim_check_sta_magic(txi->control.sta); |
264 | 265 | ||