On Saturday 06 December 2008 16:59:32 Johannes Berg wrote: > For one, I'm a bit concerned that the calculation is fairly complex, and > may not always be necessary; especially divisions can be expensive on > some CPUs. What if I push the calculation into nl80211.c, so it will be only called when the a userspace process requests the station info ? This would mean the calculation is not done at all until someone needs the rate info. > Also, there are duplicate numbers possible, so just the pure bitrate > will _not_ actually be "the typical information" because it's not > specific enough, when debugging, for example, you will probably need to > know whether it's short-gi or not. Don't you think the normal nl80211 use will just be a display of "how fast are we doing at the moment" ? Most applications don't even need to set a rate, they just want to show the user some feedback. Henning
Attachment:
signature.asc
Description: This is a digitally signed message part.