Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/hw.h

Issue 5990016: ath9k: AR9380 PAPRD changes to improve tx performance (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/kernel.git@master
Patch Set: Created 9 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/hw.h
diff --git a/chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/hw.h b/chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/hw.h
index 7669b01925a7904c19cfe15928ccf942bd011682..6f431b141393cbbeeb9151b4c9ae39fbb609dd4e 100644
--- a/chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/hw.h
+++ b/chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/hw.h
@@ -835,6 +835,11 @@ struct ath_hw {
u32 bb_watchdog_last_status;
u32 bb_watchdog_timeout_ms; /* in ms, 0 to disable */
+ unsigned int paprd_target_power;
+ unsigned int paprd_training_power;
+ unsigned int paprd_ratemask;
+ unsigned int paprd_ratemask_ht40;
+ bool paprd_table_write_done;
u32 paprd_gain_table_entries[PAPRD_GAIN_TABLE_ENTRIES];
u8 paprd_gain_table_index[PAPRD_GAIN_TABLE_ENTRIES];
/*
@@ -874,6 +879,11 @@ static inline int sign_extend(int val, const int nbits)
return (val ^ order) - order;
}
+static inline u8 get_streams(int mask)
+{
+ return !!(mask & BIT(0)) + !!(mask & BIT(1)) + !!(mask & BIT(2));
+}
+
/* Initialization, Detach, Reset */
const char *ath9k_hw_probe(u16 vendorid, u16 devid);
void ath9k_hw_deinit(struct ath_hw *ah);

Powered by Google App Engine
This is Rietveld 408576698