On Mon, 2014-01-20 at 15:21 +0100, Michal Kazior wrote: > The sdata->vif.csa_active could be left set after, > e.g. channel context constraints check fail in STA > mode leaving the interface in a strange state for > a brief period of time until it is disconnected. > This was harmless but ugly. > > Signed-off-by: Michal Kazior <michal.kazior@xxxxxxxxx> > --- > net/mac80211/mlme.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c > index fc1d824..bfb81cb 100644 > --- a/net/mac80211/mlme.c > +++ b/net/mac80211/mlme.c > @@ -1001,7 +1001,6 @@ ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata, > } > > ifmgd->flags |= IEEE80211_STA_CSA_RECEIVED; > - sdata->vif.csa_active = true; > > mutex_lock(&local->chanctx_mtx); > if (local->use_chanctx) { > @@ -1039,6 +1038,7 @@ ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata, > mutex_unlock(&local->chanctx_mtx); > > sdata->csa_chandef = csa_ie.chandef; > + sdata->vif.csa_active = true; > > if (csa_ie.mode) > ieee80211_stop_queues_by_reason(&local->hw, Looks better indeed. -- Luca. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html