Changeset 3844

Show
Ignore:
Timestamp:
08/04/08 14:32:43 (2 months ago)
Author:
proski
Message:

Check if rates are available in ath_rate_setupxtxdesc()

Reference: trunk@3775

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • madwifi/branches/madwifi-0.9.4/ath_rate/minstrel/minstrel.c

    r3030 r3844  
    394394        int rc1, rc2, rc3;         /* Index into the rate table, so for example, it is  0..11 */ 
    395395        int rixc1, rixc2, rixc3;   /* The actual bit rate used */ 
     396 
     397        if (sn->num_rates <= 0) { 
     398                DPRINTF(sc, "%s: no rates for %s\n", dev_info, 
     399                        ether_sprintf(an->an_node.ni_macaddr)); 
     400                return; 
     401        } 
    396402 
    397403        if (sn->is_sampling) {