All of lore.kernel.org
 help / color / mirror / Atom feed
* Question on ar->max_num_vdevs and WMI ops config.
@ 2015-03-30 21:09 Ben Greear
  2015-03-31  5:10 ` Michal Kazior
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Greear @ 2015-03-30 21:09 UTC (permalink / raw)
  To: ath10k

I'm porting forward my changes to the 4.0-rc6 kernel, and I notice
something a bit confusing to me.

It seems some upstream patch has added ar->max_num_vdevs and some related
fields.

But, in places like this:

static struct sk_buff *ath10k_wmi_op_gen_init(struct ath10k *ar)
{
	struct wmi_init_cmd *cmd;
	struct sk_buff *buf;
	struct wmi_resource_config config = {};
	u32 len, val;

	config.num_vdevs = __cpu_to_le32(TARGET_NUM_VDEVS);
	config.num_peers = __cpu_to_le32(TARGET_NUM_PEERS);
	config.num_offload_peers = __cpu_to_le32(TARGET_NUM_OFFLOAD_PEERS);


We are still using constants instead of ar->max_num_vdevs.

Was this done on purpose for some reason?

It will make my patches to support CT features a bit cleaner if we use the
values stored in ar->max_num_vdevs etc.


Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question on ar->max_num_vdevs and WMI ops config.
  2015-03-30 21:09 Question on ar->max_num_vdevs and WMI ops config Ben Greear
@ 2015-03-31  5:10 ` Michal Kazior
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Kazior @ 2015-03-31  5:10 UTC (permalink / raw)
  To: Ben Greear; +Cc: ath10k

On 30 March 2015 at 23:09, Ben Greear <greearb@candelatech.com> wrote:
> I'm porting forward my changes to the 4.0-rc6 kernel, and I notice
> something a bit confusing to me.
>
> It seems some upstream patch has added ar->max_num_vdevs and some related
> fields.
>
> But, in places like this:
>
> static struct sk_buff *ath10k_wmi_op_gen_init(struct ath10k *ar)
> {
>         struct wmi_init_cmd *cmd;
>         struct sk_buff *buf;
>         struct wmi_resource_config config = {};
>         u32 len, val;
>
>         config.num_vdevs = __cpu_to_le32(TARGET_NUM_VDEVS);
>         config.num_peers = __cpu_to_le32(TARGET_NUM_PEERS);
>         config.num_offload_peers = __cpu_to_le32(TARGET_NUM_OFFLOAD_PEERS);
>
>
> We are still using constants instead of ar->max_num_vdevs.
>
> Was this done on purpose for some reason?

An oversight I guess.


Michał

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-31  5:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-30 21:09 Question on ar->max_num_vdevs and WMI ops config Ben Greear
2015-03-31  5:10 ` Michal Kazior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.