Logo Search packages:      
Sourcecode: uaputl version File versions  Download package

void print_rate ( TLVBUF_RATES *  tlv )

Show rate tlv.

Parameters:
tlvPoniter to rate tlv

$return N/A

Definition at line 5077 of file uaputl.c.

References BASIC_RATE_SET_BIT.

Referenced by apcmd_sys_cfg_rates(), and print_tlv().

{
    int flag = 0;
    int i;
    printf("Basic Rates =");
    for (i = 0; i < tlv->Length; i++) {
        if (tlv->OperationalRates[i] > (BASIC_RATE_SET_BIT - 1)) {
            flag = flag ? : 1;
            printf(" 0x%x", tlv->OperationalRates[i]);
        }
    }
    printf("%s\nNon-Basic Rates =", flag ? "" : " ( none ) ");
    for (flag = 0, i = 0; i < tlv->Length; i++) {
        if (tlv->OperationalRates[i] < BASIC_RATE_SET_BIT) {
            flag = flag ? : 1;
            printf(" 0x%x", tlv->OperationalRates[i]);
        }
    }
    printf("%s\n", flag ? "" : " ( none ) ");
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index