| 59 |  | == The purpose of a rate-control module? == | 
          
            |  | 63 | == Rate-control modules == | 
          
            |  | 64 |  | 
          
            |  | 65 | == Function: ath_rate_findrate == | 
          
            |  | 66 |  | 
          
            |  | 67 | This function takes following parameters: | 
          
            |  | 68 | * '''struct ath_softc * sc''' :local priv in driver | 
          
            |  | 69 | * ''' struct ath_node * an''' : Destination Node | 
          
            |  | 70 | * int shortPreamble, | 
          
            |  | 71 | * '''size_t frameLen''' : used by SampleRate algorithm to calculate throughput for a certain packet length bin. | 
          
            |  | 72 | * u_int8_t *rix, | 
          
            |  | 73 | * int *try0 : return to show how many attempts should be used for this txrate. | 
          
            |  | 74 | * u_int8_t *txrate : return the transmit rate. | 
          
            |  | 75 |  | 
          
            |  | 76 |  | 
          
            |  | 77 |  | 
          
            |  | 78 |  | 
          
            |  | 79 |  |