On Thu, May 29, 2014 at 05:18:54PM +1000, Julian Calaby wrote: > Hi Rajkumar, > > On Thu, May 29, 2014 at 4:49 PM, Rajkumar Manoharan > <rmanohar@xxxxxxxxxxxxxxxx> wrote: > > Currently mac80211 does not support WDS and DFS with channel context > > drivers. So advertise these features only when the driver is not > > supporting channel context and modparam "use_chanctx" is introduced > > for preparing channel context support in ath9k. > > > > @@ -722,12 +736,15 @@ static void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) > > BIT(NL80211_IFTYPE_P2P_GO) | > > BIT(NL80211_IFTYPE_P2P_CLIENT) | > > BIT(NL80211_IFTYPE_AP) | > > - BIT(NL80211_IFTYPE_WDS) | > > BIT(NL80211_IFTYPE_STATION) | > > BIT(NL80211_IFTYPE_ADHOC) | > > BIT(NL80211_IFTYPE_MESH_POINT); > > hw->wiphy->iface_combinations = if_comb; > > - hw->wiphy->n_iface_combinations = ARRAY_SIZE(if_comb); > > + if (!ath9k_use_chanctx) { > > + hw->wiphy->n_iface_combinations = ARRAY_SIZE(if_comb); > > + hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_WDS); > > + } else > > + hw->wiphy->n_iface_combinations = 1; > > Is that right? > Julian, Right now mcc support is not implemented in ath9k and am working on that. Once all channel context callbacks are added, iface_combinations will refer to right interface set. -Rajkumar -- 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