source: trunk/package/mac80211/patches/591-ath9k_cleanup_rx_status_rate.patch @ 28117

Last change on this file since 28117 was 28117, checked in by nbd, 5 years ago

ath9k: add some cleanup patches

File size: 791 bytes
  • drivers/net/wireless/ath/ath9k/mac.c

    a b int ath9k_hw_rxprocdesc(struct ath_hw *a 
    596596        else 
    597597                rs->rs_keyix = ATH9K_RXKEYIX_INVALID; 
    598598 
    599         rs->rs_rate = RXSTATUS_RATE(ah, (&ads)); 
     599        rs->rs_rate = MS(ads.ds_rxstatus0, AR_RxRate); 
    600600        rs->rs_more = (ads.ds_rxstatus1 & AR_RxMore) ? 1 : 0; 
    601601 
    602602        rs->rs_isaggr = (ads.ds_rxstatus8 & AR_RxAggr) ? 1 : 0; 
  • drivers/net/wireless/ath/ath9k/mac.h

    a b  
    1717#ifndef MAC_H 
    1818#define MAC_H 
    1919 
    20 #define RXSTATUS_RATE(ah, ads) (AR_SREV_5416_20_OR_LATER(ah) ?          \ 
    21                                 MS(ads->ds_rxstatus0, AR_RxRate) :      \ 
    22                                 (ads->ds_rxstatus3 >> 2) & 0xFF) 
    23  
    2420#define set11nTries(_series, _index) \ 
    2521        (SM((_series)[_index].Tries, AR_XmitDataTries##_index)) 
    2622 
Note: See TracBrowser for help on using the repository browser.