* Rate information in ad-hoc and mesh mode
@ 2009-10-20 14:10 Charles Gordon
2009-10-20 15:14 ` Holger Schurig
2009-10-21 1:10 ` Johannes Berg
0 siblings, 2 replies; 4+ messages in thread
From: Charles Gordon @ 2009-10-20 14:10 UTC (permalink / raw)
To: linux-wireless
I notice that the ieee80211_ioctl_giwrate function in wext.c only
returns rate information for stations associated to an AP. It does
not return rate information for stations operating in ad-hoc mode or
as a mesh point. Is there a reason this function is not supported in
those modes? Is this a deliberate decision or just an oversight?
Thanks for your help.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rate information in ad-hoc and mesh mode
2009-10-20 14:10 Rate information in ad-hoc and mesh mode Charles Gordon
@ 2009-10-20 15:14 ` Holger Schurig
2009-10-20 15:41 ` Charles Gordon
2009-10-21 1:10 ` Johannes Berg
1 sibling, 1 reply; 4+ messages in thread
From: Holger Schurig @ 2009-10-20 15:14 UTC (permalink / raw)
To: Charles Gordon; +Cc: linux-wireless
> I notice that the ieee80211_ioctl_giwrate function in wext.c only
> returns rate information for stations associated to an AP. It does
> not return rate information for stations operating in ad-hoc mode or
> as a mesh point. Is there a reason this function is not supported in
> those modes? Is this a deliberate decision or just an oversight?
You need to give more context. What driver, what kernel?
A quick
ack-grep ieee80211_ioctl_giwrate include/net include/linux \
net/wireless net/mac80211 \
drivers/net/wireless
didn't reveal the function you've mentioned, at least not in the
current wireless-testing kernel.
--
http://www.holgerschurig.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rate information in ad-hoc and mesh mode
2009-10-20 15:14 ` Holger Schurig
@ 2009-10-20 15:41 ` Charles Gordon
0 siblings, 0 replies; 4+ messages in thread
From: Charles Gordon @ 2009-10-20 15:41 UTC (permalink / raw)
To: linux-wireless
I am using version 2.6.28 of the kernel. We are using our own
wireless driver. However, the problem does not appear to be in the
driver. The iw utility uses the SIOCGIWRATE ioctl to get rate
information. This ioctl is handled by the ieee80211_ioctl_giwrate
function in net/mac80211/wext.c in the 2.6.28 version of the kernel.
This function returns immediately if sdata->vif.type !=
NL80211_IFTYPE_STATION, which will be the case for ad-hoc mode.
On Tue, Oct 20, 2009 at 11:14 AM, Holger Schurig
<hs4233@mail.mn-solutions.de> wrote:
>> I notice that the ieee80211_ioctl_giwrate function in wext.c only
>> returns rate information for stations associated to an AP. It does
>> not return rate information for stations operating in ad-hoc mode or
>> as a mesh point. Is there a reason this function is not supported in
>> those modes? Is this a deliberate decision or just an oversight?
>
> You need to give more context. What driver, what kernel?
>
>
> A quick
>
> ack-grep ieee80211_ioctl_giwrate include/net include/linux \
> net/wireless net/mac80211 \
> drivers/net/wireless
>
> didn't reveal the function you've mentioned, at least not in the
> current wireless-testing kernel.
>
> --
> http://www.holgerschurig.de
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rate information in ad-hoc and mesh mode
2009-10-20 14:10 Rate information in ad-hoc and mesh mode Charles Gordon
2009-10-20 15:14 ` Holger Schurig
@ 2009-10-21 1:10 ` Johannes Berg
1 sibling, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2009-10-21 1:10 UTC (permalink / raw)
To: Charles Gordon; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 578 bytes --]
On Tue, 2009-10-20 at 10:10 -0400, Charles Gordon wrote:
> I notice that the ieee80211_ioctl_giwrate function in wext.c only
> returns rate information for stations associated to an AP. It does
> not return rate information for stations operating in ad-hoc mode or
> as a mesh point. Is there a reason this function is not supported in
> those modes? Is this a deliberate decision or just an oversight?
The former -- there's no single rate when you're talking to multiple
peers. "iw wlan0 station dump" would show you the information for each
station.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-21 1:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-20 14:10 Rate information in ad-hoc and mesh mode Charles Gordon
2009-10-20 15:14 ` Holger Schurig
2009-10-20 15:41 ` Charles Gordon
2009-10-21 1:10 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox