2012-10-31 14:50:37

by Felix Fietkau

[permalink] [raw]
Subject: [PATCH 3.7] mac80211: do not call ieee80211_configure_filter if no interfaces are up

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 <[email protected]>
---
net/mac80211/cfg.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 5eab132..7669002 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -2613,6 +2613,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:
--
1.7.12.2



2012-10-31 15:54:09

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH 3.7] mac80211: do not call ieee80211_configure_filter if no interfaces are up

On Wed, 2012-10-31 at 15:50 +0100, Felix Fietkau wrote:
> 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.

Applied, thanks.

johannes