Skip to contentSkip to conversation

mac80211: Don't set per-BSS QoS for monitor interfaces

PATCH In review Sujith 3 participants 4 messages Jul 23, 2010 – Jul 24, 2010 mac80211

lore
Share & tools
lore

Sujith

author
#0 lore raw

PATCH 1/1 mac80211: Don't set per-BSS QoS for monitor interfaces

In AP mode, there is no need to notify the driver about QoS changes for the monitor interface that is created. The warning in ieee80211_bss_info_change_notify() would be hit otherwise.

---
 net/mac80211/util.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
net/mac80211/util.c +6 -2
index 7947921..748387d 100644
@@ -803,8 +803,12 @@ void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata)
 
 	/* after reinitialize QoS TX queues setting to default,
 	 * disable QoS at all */
-	sdata->vif.bss_conf.qos = sdata->vif.type != NL80211_IFTYPE_STATION;
-	ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_QOS);
+
+	if (sdata->vif.type != NL80211_IFTYPE_MONITOR) {
+		sdata->vif.bss_conf.qos =
+			sdata->vif.type != NL80211_IFTYPE_STATION;
+		ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_QOS);
+	}
 }
 
 void ieee80211_sta_def_wmm_params(struct ieee80211_sub_if_data *sdata,
Signature · 1 line
1.7.1.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Sujith

In AP mode, there is no need to notify the driver about QoS changes for the monitor interface that is created. The warning in ieee80211_bss_info_change_notify() would be hit otherwise.

Makes sense.

Quoted 24 lines
---
 net/mac80211/util.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
net/mac80211/util.c +6 -2
index 7947921..748387d 100644
@@ -803,8 +803,12 @@ void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata)
 
 	/* after reinitialize QoS TX queues setting to default,
 	 * disable QoS at all */
-	sdata->vif.bss_conf.qos = sdata->vif.type != NL80211_IFTYPE_STATION;
-	ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_QOS);
+
+	if (sdata->vif.type != NL80211_IFTYPE_MONITOR) {
+		sdata->vif.bss_conf.qos =
+			sdata->vif.type != NL80211_IFTYPE_STATION;
+		ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_QOS);
+	}
 }
 
 void ieee80211_sta_def_wmm_params(struct ieee80211_sub_if_data *sdata,
maintainer
#3 lore raw
Quoted 7 lines · Luis R. Rodriguez
Quoted 5 lines · Johannes Berg
Quoted 3 lines · Sujith

In AP mode, there is no need to notify the driver about QoS changes for the monitor interface that is created. The warning in ieee80211_bss_info_change_notify() would be hit otherwise.

Quoted 6 lines
Quoted 4 lines

Makes sense.

Quoted 1 line

Stable?

Err, no, the change that does this isn't going in until .36 I think.

johannes