aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_rate.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/ieee80211_rate.c')
-rw-r--r--net/mac80211/ieee80211_rate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_rate.c b/net/mac80211/ieee80211_rate.c
index 91a9fe2cbad9..93abb8fff141 100644
--- a/net/mac80211/ieee80211_rate.c
+++ b/net/mac80211/ieee80211_rate.c
@@ -145,8 +145,7 @@ int ieee80211_init_rate_ctrl_alg(struct ieee80211_local *local,
145 struct rate_control_ref *ref, *old; 145 struct rate_control_ref *ref, *old;
146 146
147 ASSERT_RTNL(); 147 ASSERT_RTNL();
148 if (local->open_count || netif_running(local->mdev) || 148 if (local->open_count || netif_running(local->mdev))
149 (local->apdev && netif_running(local->apdev)))
150 return -EBUSY; 149 return -EBUSY;
151 150
152 ref = rate_control_alloc(name, local); 151 ref = rate_control_alloc(name, local);