* Wireless rates with mac80211
@ 2007-04-25 17:55 Larry Finger
2007-04-25 20:37 ` Michael Wu
2007-04-27 20:11 ` Jiri Benc
0 siblings, 2 replies; 11+ messages in thread
From: Larry Finger @ 2007-04-25 17:55 UTC (permalink / raw)
To: wireless
In mac80211, the SIOC{S,G}IWRATE commands are not implemented. Is there another way to find out what
transmission rate is being used?
Larry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Wireless rates with mac80211
2007-04-25 17:55 Wireless rates with mac80211 Larry Finger
@ 2007-04-25 20:37 ` Michael Wu
2007-04-26 4:16 ` Larry Finger
2007-04-27 20:11 ` Jiri Benc
1 sibling, 1 reply; 11+ messages in thread
From: Michael Wu @ 2007-04-25 20:37 UTC (permalink / raw)
To: Larry Finger; +Cc: wireless
[-- Attachment #1: Type: text/plain, Size: 867 bytes --]
On Wednesday 25 April 2007 13:55, Larry Finger wrote:
> In mac80211, the SIOC{S,G}IWRATE commands are not implemented. Is there
> another way to find out what transmission rate is being used?
>
If mac80211 is configured to be verbose enough, it will periodically print the
average rate used since the last time the message was printed out.
#ifdef CONFIG_MAC80211_VERBOSE_DEBUG
printk(KERN_DEBUG "%s: STA " MAC_FMT " Average rate: "
"%d (%d/%d)\n",
dev->name, MAC_ARG(sta->addr),
srctrl->tx_avg_rate_sum /
srctrl->tx_avg_rate_num,
srctrl->tx_avg_rate_sum,
srctrl->tx_avg_rate_num);
#endif /* CONFIG_MAC80211_VERBOSE_DEBUG */
-Michael Wu
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Wireless rates with mac80211
2007-04-25 20:37 ` Michael Wu
@ 2007-04-26 4:16 ` Larry Finger
2007-04-26 4:22 ` Michael Wu
0 siblings, 1 reply; 11+ messages in thread
From: Larry Finger @ 2007-04-26 4:16 UTC (permalink / raw)
To: Michael Wu; +Cc: wireless
Michael Wu wrote:
> On Wednesday 25 April 2007 13:55, Larry Finger wrote:
>> In mac80211, the SIOC{S,G}IWRATE commands are not implemented. Is there
>> another way to find out what transmission rate is being used?
>>
> If mac80211 is configured to be verbose enough, it will periodically print the
> average rate used since the last time the message was printed out.
>
> #ifdef CONFIG_MAC80211_VERBOSE_DEBUG
> printk(KERN_DEBUG "%s: STA " MAC_FMT " Average rate: "
> "%d (%d/%d)\n",
> dev->name, MAC_ARG(sta->addr),
> srctrl->tx_avg_rate_sum /
> srctrl->tx_avg_rate_num,
> srctrl->tx_avg_rate_sum,
> srctrl->tx_avg_rate_num);
> #endif /* CONFIG_MAC80211_VERBOSE_DEBUG */
The problem with that level of debug, the logs are flooded with many lines each scan cycle, which
happens every 1 minute with NetworkManager. In addidtion, I was hoping for something I could look at
without having to peruse my way through the complete log.
Larry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Wireless rates with mac80211
2007-04-26 4:16 ` Larry Finger
@ 2007-04-26 4:22 ` Michael Wu
2007-04-26 5:15 ` Larry Finger
0 siblings, 1 reply; 11+ messages in thread
From: Michael Wu @ 2007-04-26 4:22 UTC (permalink / raw)
To: Larry Finger; +Cc: wireless
[-- Attachment #1: Type: text/plain, Size: 497 bytes --]
On Thursday 26 April 2007 00:16, Larry Finger wrote:
> The problem with that level of debug, the logs are flooded with many lines
> each scan cycle, which happens every 1 minute with NetworkManager. In
> addidtion, I was hoping for something I could look at without having to
> peruse my way through the complete log.
>
Patches welcome. The rate control API currently has no easy way to obtain the
current rate which is part of why SIOCGIWRATE hasn't been implemented yet.
-Michael Wu
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Wireless rates with mac80211
2007-04-26 4:22 ` Michael Wu
@ 2007-04-26 5:15 ` Larry Finger
2007-04-27 3:33 ` Michael Wu
0 siblings, 1 reply; 11+ messages in thread
From: Larry Finger @ 2007-04-26 5:15 UTC (permalink / raw)
To: Michael Wu; +Cc: wireless
Michael Wu wrote:
> On Thursday 26 April 2007 00:16, Larry Finger wrote:
>
> Patches welcome. The rate control API currently has no easy way to obtain the
> current rate which is part of why SIOCGIWRATE hasn't been implemented yet.
What is in txrate in struct sta_info? Isn't it the rate to be used for the next transmission?
Larry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Wireless rates with mac80211
2007-04-26 5:15 ` Larry Finger
@ 2007-04-27 3:33 ` Michael Wu
0 siblings, 0 replies; 11+ messages in thread
From: Michael Wu @ 2007-04-27 3:33 UTC (permalink / raw)
To: Larry Finger; +Cc: wireless
[-- Attachment #1: Type: text/plain, Size: 597 bytes --]
On Thursday 26 April 2007 01:15, Larry Finger wrote:
> What is in txrate in struct sta_info? Isn't it the rate to be used for the
> next transmission?
>
It is an index to the rate that could be used for the next transmission to
that sta. I was referring to the rate_control_ops not having a callback that
would return the current rate, but looking into sta_info should be fine.
Guess I overlooked that when I was looking to implement SIOCGIWRATE. Not sure
if doing this will be valid for other rate control algorithms in the future,
but that can be dealt with later.
-Michael Wu
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Wireless rates with mac80211
2007-04-25 17:55 Wireless rates with mac80211 Larry Finger
2007-04-25 20:37 ` Michael Wu
@ 2007-04-27 20:11 ` Jiri Benc
2007-04-27 20:21 ` Larry Finger
1 sibling, 1 reply; 11+ messages in thread
From: Jiri Benc @ 2007-04-27 20:11 UTC (permalink / raw)
To: Larry Finger; +Cc: wireless
On Wed, 25 Apr 2007 12:55:35 -0500, Larry Finger wrote:
> In mac80211, the SIOC{S,G}IWRATE commands are not implemented. Is there another way to find out what
> transmission rate is being used?
If you have debugfs compiled in, you can look into
<debugfs_mount_point>/ieee80211/phy0/stations/*/rc_simple_tx_avg_rate_[ns]um.
But that's just average.
Jiri
--
Jiri Benc
SUSE Labs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Wireless rates with mac80211
2007-04-27 20:11 ` Jiri Benc
@ 2007-04-27 20:21 ` Larry Finger
2007-04-27 20:29 ` Jiri Benc
0 siblings, 1 reply; 11+ messages in thread
From: Larry Finger @ 2007-04-27 20:21 UTC (permalink / raw)
To: Jiri Benc; +Cc: wireless
Jiri Benc wrote:
>
> If you have debugfs compiled in, you can look into
> <debugfs_mount_point>/ieee80211/phy0/stations/*/rc_simple_tx_avg_rate_[ns]um.
> But that's just average.
Jiri,
Thanks for the info. I'm using txrate in the sta_info struct, which is an index into the rates
array. That turned out to be very useful as I discovered that rc80211_simple was setting the initial
rate to 54 Mbs. I have some doubt if that rate is best under any circumstance, but it certainly is
not for bcm43xx as the current issues with TX power do not allow transmission at that rate. By
setting the initial rate to 1 Mbs, I was able to connect for the first time with my BCM4311.
Larry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Wireless rates with mac80211
2007-04-27 20:21 ` Larry Finger
@ 2007-04-27 20:29 ` Jiri Benc
2007-04-27 20:38 ` Larry Finger
0 siblings, 1 reply; 11+ messages in thread
From: Jiri Benc @ 2007-04-27 20:29 UTC (permalink / raw)
To: Larry Finger; +Cc: wireless
On Fri, 27 Apr 2007 15:21:37 -0500, Larry Finger wrote:
> Thanks for the info. I'm using txrate in the sta_info struct, which is an index into the rates
> array. That turned out to be very useful as I discovered that rc80211_simple was setting the initial
> rate to 54 Mbs. I have some doubt if that rate is best under any circumstance, but it certainly is
> not for bcm43xx as the current issues with TX power do not allow transmission at that rate. By
> setting the initial rate to 1 Mbs, I was able to connect for the first time with my BCM4311.
Rate control modules can be switched on-the-fly with mac80211. You can
write your own rc module that uses 1 mbps all times :-) Actually, I
wrote that module but haven't kept it up to date so it doesn't even
compile now...
Jiri
--
Jiri Benc
SUSE Labs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Wireless rates with mac80211
2007-04-27 20:29 ` Jiri Benc
@ 2007-04-27 20:38 ` Larry Finger
2007-04-27 20:51 ` Johannes Berg
0 siblings, 1 reply; 11+ messages in thread
From: Larry Finger @ 2007-04-27 20:38 UTC (permalink / raw)
To: Jiri Benc; +Cc: wireless
Jiri Benc wrote:
>
> Rate control modules can be switched on-the-fly with mac80211. You can
> write your own rc module that uses 1 mbps all times :-) Actually, I
> wrote that module but haven't kept it up to date so it doesn't even
> compile now...
No, the simple rate algorithm is fine. Once I make the connection, it is changing the rates up and
down as I would have expected. The main problem was that I never got on, and without communication
there was no basis on which to adjust the rate. Now it connects reliably, which makes it a lot
easier to try fixes for the power problem. It is really hard to debug a power problem when nothing
works.
Larry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Wireless rates with mac80211
2007-04-27 20:38 ` Larry Finger
@ 2007-04-27 20:51 ` Johannes Berg
0 siblings, 0 replies; 11+ messages in thread
From: Johannes Berg @ 2007-04-27 20:51 UTC (permalink / raw)
To: Larry Finger; +Cc: Jiri Benc, wireless
[-- Attachment #1: Type: text/plain, Size: 612 bytes --]
On Fri, 2007-04-27 at 15:38 -0500, Larry Finger wrote:
> No, the simple rate algorithm is fine. Once I make the connection, it is changing the rates up and
> down as I would have expected. The main problem was that I never got on, and without communication
> there was no basis on which to adjust the rate.
Hah, I had the same problem and always thought the dhcp server was
somehow a bit buggy because re-doing dhcp fixed it (it sends a bunch of
packets and then the rate gets adjusted down). Of course, I don't have
any problems to associate since my university still runs 40-bit WEP.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-04-27 20:51 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-25 17:55 Wireless rates with mac80211 Larry Finger
2007-04-25 20:37 ` Michael Wu
2007-04-26 4:16 ` Larry Finger
2007-04-26 4:22 ` Michael Wu
2007-04-26 5:15 ` Larry Finger
2007-04-27 3:33 ` Michael Wu
2007-04-27 20:11 ` Jiri Benc
2007-04-27 20:21 ` Larry Finger
2007-04-27 20:29 ` Jiri Benc
2007-04-27 20:38 ` Larry Finger
2007-04-27 20:51 ` Johannes Berg
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).