mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 07:29:12 -04:00
[MAC80211]: Check open_count before calling config callback.
Also remove the check for ops->config!=NULL, as it can never be NULL. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
05b64b3648
commit
f7c4daed99
@@ -678,7 +678,7 @@ int ieee80211_hw_config(struct ieee80211_local *local)
|
||||
local->hw.conf.phymode);
|
||||
#endif /* CONFIG_MAC80211_VERBOSE_DEBUG */
|
||||
|
||||
if (local->ops->config)
|
||||
if (local->open_count)
|
||||
ret = local->ops->config(local_to_hw(local), &local->hw.conf);
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user