* about .dump_station() callback
@ 2015-06-09 9:19 Arend van Spriel
2015-06-09 9:41 ` Johannes Berg
0 siblings, 1 reply; 5+ messages in thread
From: Arend van Spriel @ 2015-06-09 9:19 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless@vger.kernel.org
Hi Johannes,
I am looking in get_station() and consequently dump_station() callback
for our brcmfmac driver. The latter is called with index. Can I expect
this to be starting at 0 and iterate through or can it be requested in
any order.
Regards,
Arend
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: about .dump_station() callback
2015-06-09 9:19 about .dump_station() callback Arend van Spriel
@ 2015-06-09 9:41 ` Johannes Berg
2015-06-09 10:52 ` Arend van Spriel
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2015-06-09 9:41 UTC (permalink / raw)
To: Arend van Spriel; +Cc: linux-wireless@vger.kernel.org
On Tue, 2015-06-09 at 11:19 +0200, Arend van Spriel wrote:
> I am looking in get_station() and consequently dump_station() callback
> for our brcmfmac driver. The latter is called with index. Can I expect
> this to be starting at 0 and iterate through or can it be requested in
> any order.
You can expect that, yes.
If it would help, we could instead give the driver one or two pointers
to unsigned long values that start out as 0 and can be controlled
entirely by the driver?
johannes
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: about .dump_station() callback
2015-06-09 9:41 ` Johannes Berg
@ 2015-06-09 10:52 ` Arend van Spriel
2015-06-09 11:01 ` Johannes Berg
0 siblings, 1 reply; 5+ messages in thread
From: Arend van Spriel @ 2015-06-09 10:52 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless@vger.kernel.org
On 06/09/15 11:41, Johannes Berg wrote:
> On Tue, 2015-06-09 at 11:19 +0200, Arend van Spriel wrote:
>
>> I am looking in get_station() and consequently dump_station() callback
>> for our brcmfmac driver. The latter is called with index. Can I expect
>> this to be starting at 0 and iterate through or can it be requested in
>> any order.
>
> You can expect that, yes.
Thanks. Guess it is nl80211.c assuring that. I should have checked that
first. See that I have to return -ENOENT when iteration is done.
> If it would help, we could instead give the driver one or two pointers
> to unsigned long values that start out as 0 and can be controlled
> entirely by the driver?
Not sure if I understand this. What would those pointers represent?
Regards,
Arend
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: about .dump_station() callback
2015-06-09 10:52 ` Arend van Spriel
@ 2015-06-09 11:01 ` Johannes Berg
2015-06-09 15:21 ` Arend van Spriel
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2015-06-09 11:01 UTC (permalink / raw)
To: Arend van Spriel; +Cc: linux-wireless@vger.kernel.org
On Tue, 2015-06-09 at 12:52 +0200, Arend van Spriel wrote:
> Thanks. Guess it is nl80211.c assuring that. I should have checked that
> first. See that I have to return -ENOENT when iteration is done.
Right.
> > If it would help, we could instead give the driver one or two pointers
> > to unsigned long values that start out as 0 and can be controlled
> > entirely by the driver?
>
> Not sure if I understand this. What would those pointers represent?
Well, you could put in there whatever you like :)
Though realistically I wouldn't expect you to put anything other than
the sta_idx that you currently get.
johannes
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: about .dump_station() callback
2015-06-09 11:01 ` Johannes Berg
@ 2015-06-09 15:21 ` Arend van Spriel
0 siblings, 0 replies; 5+ messages in thread
From: Arend van Spriel @ 2015-06-09 15:21 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless@vger.kernel.org
On 06/09/15 13:01, Johannes Berg wrote:
> On Tue, 2015-06-09 at 12:52 +0200, Arend van Spriel wrote:
>
>> Thanks. Guess it is nl80211.c assuring that. I should have checked that
>> first. See that I have to return -ENOENT when iteration is done.
>
> Right.
>
>>> If it would help, we could instead give the driver one or two pointers
>>> to unsigned long values that start out as 0 and can be controlled
>>> entirely by the driver?
>>
>> Not sure if I understand this. What would those pointers represent?
>
> Well, you could put in there whatever you like :)
>
> Though realistically I wouldn't expect you to put anything other than
> the sta_idx that you currently get.
Well, I obtain (in ap mode) a list of associated clients and keep that
list until iteration is done (or .dump_station() is called with sta_idx
== 0). So I am fine with current api.
Regards,
Arend
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-06-09 15:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-09 9:19 about .dump_station() callback Arend van Spriel
2015-06-09 9:41 ` Johannes Berg
2015-06-09 10:52 ` Arend van Spriel
2015-06-09 11:01 ` Johannes Berg
2015-06-09 15:21 ` Arend van Spriel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).