On Tue, Mar 18, 2014 at 3:53 PM, Michal Kazior <michal.kazior@xxxxxxxxx> wrote: > Do not allocate more channel contexts than a > driver is capable for currently matching interface > combination. > > This allows the ieee80211_vif_reserve_chanctx() to > act as a guard against breaking interface > combinations. > > Signed-off-by: Michal Kazior <michal.kazior@xxxxxxxxx> > --- [...] > +static bool ieee80211_can_create_new_chanctx(struct ieee80211_local *local) > +{ > + lockdep_assert_held(&local->chanctx_mtx); > + return ieee80211_num_chanctx(local) < ieee80211_max_num_channels(local); > +} the same goes here - num_channels and num_chanctx are two different things (afaiu). i don't think you can compare them this way. 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