* [PATCH 1/2] mac80211: ignore AP_VLAN in ieee80211_recalc_chanctx_chantype
@ 2014-07-25 14:20 Felix Fietkau
2014-07-25 14:20 ` [PATCH 2/2] mac80211: fix smps mode check for AP_VLAN Felix Fietkau
2014-07-28 9:39 ` [PATCH 1/2] mac80211: ignore AP_VLAN in ieee80211_recalc_chanctx_chantype Johannes Berg
0 siblings, 2 replies; 3+ messages in thread
From: Felix Fietkau @ 2014-07-25 14:20 UTC (permalink / raw)
To: linux-wireless; +Cc: johannes
When bringing down the AP, a WARN_ON is hit because the bss config chandef
is empty here.
Since AP_VLAN channel settings do not matter for anything chanctx related
(always inherits the settings from the AP interface), let's just ignore
it here.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
net/mac80211/chan.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c
index 6d537f0..4206a11 100644
--- a/net/mac80211/chan.c
+++ b/net/mac80211/chan.c
@@ -541,6 +541,8 @@ static void ieee80211_recalc_chanctx_chantype(struct ieee80211_local *local,
continue;
if (rcu_access_pointer(sdata->vif.chanctx_conf) != conf)
continue;
+ if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
+ continue;
if (!compat)
compat = &sdata->vif.bss_conf.chandef;
--
1.8.5.2 (Apple Git-48)
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] mac80211: fix smps mode check for AP_VLAN
2014-07-25 14:20 [PATCH 1/2] mac80211: ignore AP_VLAN in ieee80211_recalc_chanctx_chantype Felix Fietkau
@ 2014-07-25 14:20 ` Felix Fietkau
2014-07-28 9:39 ` [PATCH 1/2] mac80211: ignore AP_VLAN in ieee80211_recalc_chanctx_chantype Johannes Berg
1 sibling, 0 replies; 3+ messages in thread
From: Felix Fietkau @ 2014-07-25 14:20 UTC (permalink / raw)
To: linux-wireless; +Cc: johannes
In ieee80211_sta_ps_deliver_wakeup, sdata->smps_mode is checked. This is
initialized only for the base AP interface, not the individual VLANs.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
net/mac80211/sta_info.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index f41177f..6b0e886 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -1094,8 +1094,11 @@ void ieee80211_sta_ps_deliver_wakeup(struct sta_info *sta)
unsigned long flags;
struct ps_data *ps;
- if (sdata->vif.type == NL80211_IFTYPE_AP ||
- sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
+ if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
+ sdata = container_of(sdata->bss, struct ieee80211_sub_if_data,
+ u.ap);
+
+ if (sdata->vif.type == NL80211_IFTYPE_AP)
ps = &sdata->bss->ps;
else if (ieee80211_vif_is_mesh(&sdata->vif))
ps = &sdata->u.mesh.ps;
--
1.8.5.2 (Apple Git-48)
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] mac80211: ignore AP_VLAN in ieee80211_recalc_chanctx_chantype
2014-07-25 14:20 [PATCH 1/2] mac80211: ignore AP_VLAN in ieee80211_recalc_chanctx_chantype Felix Fietkau
2014-07-25 14:20 ` [PATCH 2/2] mac80211: fix smps mode check for AP_VLAN Felix Fietkau
@ 2014-07-28 9:39 ` Johannes Berg
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2014-07-28 9:39 UTC (permalink / raw)
To: Felix Fietkau; +Cc: linux-wireless
Both applied, thanks.
johannes
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-28 9:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-25 14:20 [PATCH 1/2] mac80211: ignore AP_VLAN in ieee80211_recalc_chanctx_chantype Felix Fietkau
2014-07-25 14:20 ` [PATCH 2/2] mac80211: fix smps mode check for AP_VLAN Felix Fietkau
2014-07-28 9:39 ` [PATCH 1/2] mac80211: ignore AP_VLAN in ieee80211_recalc_chanctx_chantype Johannes Berg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.