Search Linux Wireless

Re: [PATCH] ath9k: Fix interface combinations for multi-channel concurrency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rajkumar,

On Thu, May 29, 2014 at 7:33 PM, Rajkumar Manoharan
<rmanohar@xxxxxxxxxxxxxxxx> wrote:
> 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.

I was referring to the n_iface_combinations = 1 line which doesn't
seem to match the size of if_comb.

Of course there's probably something subtle I'm missing =)

Thanks,

-- 
Julian Calaby

Email: julian.calaby@xxxxxxxxx
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/
--
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




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux