mac80211: Don't set per-BSS QoS for monitor interfaces
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
@@ -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
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
Signed-off-by Sujith <[email protected]>--- net/mac80211/util.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)net/mac80211/util.c +6
-2@@ -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,
Quoted 9 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.Makes sense.
Acked-by Johannes Berg <[email protected]>Quoted 1 line
Signed-off-by Sujith <[email protected]>
Stable?
Luis
Johannes Berg
maintainerQuoted 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.
Acked-by Johannes Berg <[email protected]>Quoted 1 line
Signed-off-by Sujith <[email protected]>Stable?
Err, no, the change that does this isn't going in until .36 I think.
johannes