Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194114
b: refs/heads/master
c: a8c944f
h: refs/heads/master
v: v3
  • Loading branch information
Bruno Randolf authored and John W. Linville committed Mar 31, 2010
1 parent ce26724 commit bd699f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da35111ad970081bdf6e848d1861c7d16e71079b
refs/heads/master: a8c944f8a00dcc4ac6900efcddab1a0cf300c791
2 changes: 2 additions & 0 deletions trunk/drivers/net/wireless/ath/ath5k/ath5k.h
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,8 @@ struct ath5k_capabilities {
struct {
u8 q_tx_num;
} cap_queues;

bool cap_has_phyerr_counters;
};

/* size of noise floor history (keep it a power of two) */
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/net/wireless/ath/ath5k/caps.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ int ath5k_hw_set_capabilities(struct ath5k_hw *ah)
else
ah->ah_capabilities.cap_queues.q_tx_num = AR5K_NUM_TX_QUEUES;

/* newer hardware has PHY error counters */
if (ah->ah_mac_srev >= AR5K_SREV_AR5213A)
ah->ah_capabilities.cap_has_phyerr_counters = true;
else
ah->ah_capabilities.cap_has_phyerr_counters = false;

return 0;
}

Expand Down

0 comments on commit bd699f5

Please sign in to comment.