diff options
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r-- | net/mac80211/sta_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index d1a77e79d7a9..f039e761aec1 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -367,7 +367,7 @@ int sta_info_insert(struct sta_info *sta) | |||
367 | * something inserts a STA (on one CPU) without holding the RTNL | 367 | * something inserts a STA (on one CPU) without holding the RTNL |
368 | * and another CPU turns off the net device. | 368 | * and another CPU turns off the net device. |
369 | */ | 369 | */ |
370 | if (unlikely(!netif_running(sdata->dev))) { | 370 | if (unlikely(!ieee80211_sdata_running(sdata))) { |
371 | err = -ENETDOWN; | 371 | err = -ENETDOWN; |
372 | goto out_free; | 372 | goto out_free; |
373 | } | 373 | } |