Skip to content

Commit

Permalink
[MAC80211]: Check open_count before calling config callback.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Buesch authored and David S. Miller committed Oct 10, 2007
1 parent 05b64b3 commit f7c4dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/ieee80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f7c4dae

Please sign in to comment.