From: Ben Greear <greearb@candelatech.com>
To: Michal Kazior <michal.kazior@tieto.com>
Cc: ath10k <ath10k@lists.infradead.org>
Subject: Re: Vdev map issues.
Date: Wed, 30 Apr 2014 10:06:55 -0700 [thread overview]
Message-ID: <53612DAF.8070602@candelatech.com> (raw)
In-Reply-To: <CA+BoTQ=hFkj7BUgzK=16-yfgLrkki3ZrpC5P0A3gaWmji07y6Q@mail.gmail.com>
On 04/29/2014 11:06 PM, Michal Kazior wrote:
> On 30 April 2014 02:13, Ben Greear <greearb@candelatech.com> wrote:
>> Possibly I've made too many local changes and gotten confused, but this code
>> appears like it should be doing an |= instead of &= in ath10k_add_interface?
>>
>> err_vdev_delete:
>> ath10k_wmi_vdev_delete(ar, arvif->vdev_id);
>> ar->free_vdev_map &= ~(1LL << arvif->vdev_id);
>> list_del(&arvif->list);
>
> Correct. Will you submit a patch?
This is tangled in another patch that enables 64-bit vdev-maps,
but I will rebase and post it shortly.
Another question in the related code: For monitor devices, we
are using bit - 1 for the monitor device ID, but we do not subtract
one when creating normal stations. Is this on purpose?
And, instead of checking for bit == 0, why not check for
zero map before we even try the ffs call? That should work
for __ffs64 as well, which is what I need for lots of vdevs...
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
next prev parent reply other threads:[~2014-04-30 17:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-30 0:13 Vdev map issues Ben Greear
2014-04-30 6:06 ` Michal Kazior
2014-04-30 17:06 ` Ben Greear [this message]
2014-04-30 17:21 ` Ben Greear
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53612DAF.8070602@candelatech.com \
--to=greearb@candelatech.com \
--cc=ath10k@lists.infradead.org \
--cc=michal.kazior@tieto.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox