SIOCGIWRATE

David Gibson david at gibson.dropbear.id.au
Tue Nov 19 02:42:49 EST 2002


On Mon, Nov 18, 2002 at 01:45:32AM +0100, Nikolaos Fideropoulos wrote:
> Hallo,
> 
> i'm a bit confused about the SIOCGIWRATE ioctl and its meaning.
> 
> <wireless.h> says:
> #define SIOCSIWRATE 0x8B20  /* set default bit rate (bps) */
> #define SIOCGIWRATE 0x8B21  /* get default bit rate (bps) */
> 
> What does "default" mean in that context. Is it the forced bit-rate,
> max./min. bit-rate. Is there any difference, in those ioctls meaning, when
> used in Adhoc/Infrastructure Mode?

It will generally be the maximum - the firmware might fall back to a
lower rate.  But ioctl() can also specify that the rate is to be fixed
(forced).  Of course, in the end the behaviour could depend on the
firmware's peculiarities.

-- 
David Gibson			| For every complex problem there is a
david at gibson.dropbear.id.au	| solution which is simple, neat and
				| wrong.
http://www.ozlabs.org/people/dgibson



More information about the wireless mailing list