Changeset 5696294 for test


Ignore:
Timestamp:
09/29/06 14:35:03 (14 years ago)
Author:
Scott Raynel <smr26@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
40d0efc
Parents:
742a332
Message:

Make some previously exported trace_get_wireless functions static, as they don't either aren't useful yet or aren't necessarily portable across drivers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-wireless.c

    rfaffcfc r5696294  
    6464        int result;
    6565        uint64_t tsft;
    66         uint16_t freq, cflags, tmp16;
     66        uint16_t freq, tmp16;
    6767        uint32_t fcs;
    6868        uint8_t flags, rate, sdbm, ndbm, sdb, antenna, tmp8;
     
    7070        uint32_t total_fcs, expected_fcs = 3012874435;
    7171        uint16_t total_freq, expected_freq = 24170;
    72         uint16_t total_cflags, expected_cflags = 1600;
    7372       
    7473        void *l;
     
    9392         * existing */
    9493        assert(trace_get_wireless_tsft(l,lt,&tsft));
    95         assert(trace_get_wireless_flags(l,lt,&flags));
    9694        assert(trace_get_wireless_rate(l,lt,&rate));
    9795        assert(trace_get_wireless_freq(l,lt,&freq));
    98         assert(trace_get_wireless_channel_flags(l,lt,&cflags));
    9996        assert(trace_get_wireless_signal_strength_dbm(l,lt,(int8_t *)&sdbm));
    10097        assert(trace_get_wireless_noise_strength_dbm(l,lt,(int8_t *)&ndbm));
     
    105102        /* Check that the fields that do not exist in this trace are
    106103         * reported as not existing */
    107         assert(!trace_get_wireless_fhss_hopset(l,lt,&tmp8));
    108         assert(!trace_get_wireless_fhss_hoppattern(l,lt,&tmp8));
    109104        assert(!trace_get_wireless_noise_strength_db(l,lt,&tmp8));
    110         assert(!trace_get_wireless_lock_quality(l,lt,&tmp16));
    111105        assert(!trace_get_wireless_tx_attenuation(l,lt,&tmp16));
    112106        assert(!trace_get_wireless_tx_attenuation_db(l,lt,&tmp16));
     
    119113        total_fcs = fcs;
    120114        total_freq = freq;
    121         total_cflags = cflags;
    122115       
    123116        while((result = trace_read_packet(trace, packet)) > 0) {
     
    126119                if(trace_get_wireless_freq(l,lt,&freq))
    127120                        total_freq += freq;
    128                 if(trace_get_wireless_channel_flags(l,lt,&cflags))
    129                         total_cflags += cflags;
    130121        }
    131122
    132123        assert(total_fcs == expected_fcs);
    133124        assert(total_freq == expected_freq);
    134         assert(total_cflags == expected_cflags);
    135125
    136126        trace_destroy_packet(packet);
     
    150140
    151141        assert(!trace_get_wireless_tsft(l,lt,&tsft));
    152         assert(!trace_get_wireless_flags(l,lt,&flags));
    153142        assert(!trace_get_wireless_rate(l,lt,&rate));
    154143        assert(!trace_get_wireless_freq(l,lt,&freq));
    155         assert(!trace_get_wireless_channel_flags(l,lt,&cflags));
    156144        assert(!trace_get_wireless_signal_strength_dbm(l,lt,(int8_t *)&sdbm));
    157145        assert(!trace_get_wireless_noise_strength_dbm(l,lt,(int8_t *)&ndbm));
     
    159147        assert(!trace_get_wireless_antenna(l,lt,&antenna));
    160148        assert(!trace_get_wireless_fcs(l,lt,&fcs));
    161         assert(!trace_get_wireless_fhss_hopset(l,lt,&tmp8));
    162         assert(!trace_get_wireless_fhss_hoppattern(l,lt,&tmp8));
    163149        assert(!trace_get_wireless_noise_strength_db(l,lt,&tmp8));
    164         assert(!trace_get_wireless_lock_quality(l,lt,&tmp16));
    165150        assert(!trace_get_wireless_tx_attenuation(l,lt,&tmp16));
    166151        assert(!trace_get_wireless_tx_attenuation_db(l,lt,&tmp16));
Note: See TracChangeset for help on using the changeset viewer.