Skip to content

Commit

Permalink
mac80211: do not call ieee80211_configure_filter if no interfaces are up
Browse files Browse the repository at this point in the history
Drivers are not expected to handle it before drv_start has been called. It
will be called again after an interface has been brought up.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Felix Fietkau authored and Johannes Berg committed Oct 31, 2012
1 parent 6dbda2d commit 35f5149
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2594,6 +2594,9 @@ static void ieee80211_mgmt_frame_register(struct wiphy *wiphy,
else
local->probe_req_reg--;

if (!local->open_count)
break;

ieee80211_queue_work(&local->hw, &local->reconfig_filter);
break;
default:
Expand Down

0 comments on commit 35f5149

Please sign in to comment.