Skip to contentSkip to conversation

mac80211: do not call ieee80211_configure_filter if no interfaces are up

PATCH Applied Felix Fietkau 2 participants 2 messages Oct 31, 2012 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 net/mac80211/cfg.c | 3 +++
 1 file changed, 3 insertions(+)
net/mac80211/cfg.c +3 -0
index 5eab132..7669002 100644
@@ -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:
Signature · 1 line
1.7.12.2
maintainer Applied
#1 lore raw
Quoted 2 lines · Felix Fietkau

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