linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mac80211 initial rate: a question
@ 2007-06-01 16:14 Larry Finger
  2007-06-01 18:13 ` Tomas Winkler
  2007-06-01 19:30 ` Johannes Berg
  0 siblings, 2 replies; 3+ messages in thread
From: Larry Finger @ 2007-06-01 16:14 UTC (permalink / raw)
  To: wireless, Broadcom Linux

In routine rate_control_simple_rate_init in net/mac80211/rc80211_simple.c, there is a comment that says

         /* TODO: what is a good starting rate for STA? About middle? Maybe not
          * the lowest or the highest rate.. Could consider using RSSI from
          * previous packets? Need to have IEEE 802.1X auth succeed immediately
          * after assoc.. */

After that the code goes on to set the rate equal to the last one in the rate table, which might be 
the highest rate. Although that rate might be OK for most of the devices using mac80211, it 
certainly is not for bcm43xx, which does not have the ability to transmit or receive at speeds much 
above 1 Mbs. In a private patch circulated only on the bcm43xx mailing list, I changed this routine 
to set an initial rate of 1 Mbs, which certainly helps bcm43xx authenticate and communicate with the 
DHCP server.

If this low rate were to be set for all drivers, how rapidly would the rate-control algorithm 
respond? Would this cause a serious performance degradation?

Larry

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

* Re: mac80211 initial rate: a question
  2007-06-01 16:14 mac80211 initial rate: a question Larry Finger
@ 2007-06-01 18:13 ` Tomas Winkler
  2007-06-01 19:30 ` Johannes Berg
  1 sibling, 0 replies; 3+ messages in thread
From: Tomas Winkler @ 2007-06-01 18:13 UTC (permalink / raw)
  To: Larry Finger; +Cc: wireless, Broadcom Linux

What about making the initial rate to be configurable in rc80211_simple.c ?


On 6/1/07, Larry Finger <Larry.Finger@lwfinger.net> wrote:
> In routine rate_control_simple_rate_init in net/mac80211/rc80211_simple.c, there is a comment that says
>
>          /* TODO: what is a good starting rate for STA? About middle? Maybe not
>           * the lowest or the highest rate.. Could consider using RSSI from
>           * previous packets? Need to have IEEE 802.1X auth succeed immediately
>           * after assoc.. */
>
> After that the code goes on to set the rate equal to the last one in the rate table, which might be
> the highest rate. Although that rate might be OK for most of the devices using mac80211, it
> certainly is not for bcm43xx, which does not have the ability to transmit or receive at speeds much
> above 1 Mbs. In a private patch circulated only on the bcm43xx mailing list, I changed this routine
> to set an initial rate of 1 Mbs, which certainly helps bcm43xx authenticate and communicate with the
> DHCP server.
>
> If this low rate were to be set for all drivers, how rapidly would the rate-control algorithm
> respond? Would this cause a serious performance degradation?
>
> Larry
> -
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

* Re: mac80211 initial rate: a question
  2007-06-01 16:14 mac80211 initial rate: a question Larry Finger
  2007-06-01 18:13 ` Tomas Winkler
@ 2007-06-01 19:30 ` Johannes Berg
  1 sibling, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2007-06-01 19:30 UTC (permalink / raw)
  To: Larry Finger; +Cc: wireless, Broadcom Linux

[-- Attachment #1: Type: text/plain, Size: 1653 bytes --]

On Fri, 2007-06-01 at 11:14 -0500, Larry Finger wrote:

>          /* TODO: what is a good starting rate for STA? About middle? Maybe not
>           * the lowest or the highest rate.. Could consider using RSSI from
>           * previous packets? Need to have IEEE 802.1X auth succeed immediately
>           * after assoc.. */
> 
> After that the code goes on to set the rate equal to the last one in the rate table, which might be 
> the highest rate. 

Yeah, I think that's very wrong.

> Although that rate might be OK for most of the devices using mac80211,

Even then, if the AP is just in range it might not receive transmissions
at 54M, depending on the fallback mechanism that might or might not be
ok.

> it 
> certainly is not for bcm43xx, which does not have the ability to transmit or receive at speeds much 
> above 1 Mbs. In a private patch circulated only on the bcm43xx mailing list, I changed this routine 
> to set an initial rate of 1 Mbs, which certainly helps bcm43xx authenticate and communicate with the 
> DHCP server.

The thing about 802.1X is that you have a handshake with a few packets
that need to go through or you need to restart, which is the wpa problem
people are seeing currently with bcm43xx, but my brother also sees with
madwifi/atheros in our living room upstairs (router is downstairs here)

> If this low rate were to be set for all drivers, how rapidly would the rate-control algorithm 
> respond? Would this cause a serious performance degradation?

This, unfortunately, I don't know. I'd think the algorithm would adjust
fast enough for it not to be an issue.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

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

end of thread, other threads:[~2007-06-01 19:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-01 16:14 mac80211 initial rate: a question Larry Finger
2007-06-01 18:13 ` Tomas Winkler
2007-06-01 19:30 ` 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).