diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/ieee80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index 210319f9ea2f..62877a8f9f0f 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c | |||
@@ -678,7 +678,7 @@ int ieee80211_hw_config(struct ieee80211_local *local) | |||
678 | local->hw.conf.phymode); | 678 | local->hw.conf.phymode); |
679 | #endif /* CONFIG_MAC80211_VERBOSE_DEBUG */ | 679 | #endif /* CONFIG_MAC80211_VERBOSE_DEBUG */ |
680 | 680 | ||
681 | if (local->ops->config) | 681 | if (local->open_count) |
682 | ret = local->ops->config(local_to_hw(local), &local->hw.conf); | 682 | ret = local->ops->config(local_to_hw(local), &local->hw.conf); |
683 | 683 | ||
684 | return ret; | 684 | return ret; |