On Tue, Mar 18, 2014 at 3:53 PM, Michal Kazior <michal.kazior@xxxxxxxxx> wrote: > Relax ieee80211_find_chanctx(). If chanctx > reservation chandef is compatible with > current-future assigned interfaces chandef then > allow it to be used by new interfaces. > > Signed-off-by: Michal Kazior <michal.kazior@xxxxxxxxx> > --- [...] > +static const struct cfg80211_chan_def * > +ieee80211_chanctx_reserved_chandef(struct ieee80211_local *local, > + struct ieee80211_chanctx *ctx, > + const struct cfg80211_chan_def *compat) > +{ > + struct ieee80211_sub_if_data *sdata; > + > + lockdep_assert_held(&local->chanctx_mtx); > + > + list_for_each_entry(sdata, &ctx->reserved_vifs, > + reserved_chanctx_list) { > + if (!compat) > + compat = &sdata->reserved_chandef; this check is redundant. Eliad. -- 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