Skip to contentSkip to conversation

mac80211 initial rate: a question

DISCUSSION Larry Finger 3 participants 3 messages Jun 1, 2007

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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

Quoted 23 lines · Larry Finger

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Larry Finger
Quoted 7 lines · Larry Finger

/* 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.

Quoted 1 line

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.

Quoted 5 lines

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)

Quoted 2 lines

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