diff options
author | Christian Lamparter <chunkeey@googlemail.com> | 2011-08-19 19:53:59 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-24 14:57:13 -0400 |
commit | 0d78156eef1d8869ea4e56f8a257252a8f262f04 (patch) | |
tree | bfd4db22b84225b3f5ae777c6503eb30af37ff07 /drivers/net/wireless/p54/p54.h | |
parent | 6423d30f030b560ef1b701bb1f205c3817efe380 (diff) |
p54: improve site survey
The firmware keeps track of channel usage. This data can
be used by the automatic channel selection to find the best
channel.
Survey data from wlan4
frequency: 5200 MHz [in use]
noise: -91 dBm
channel active time: 811909 ms
channel busy time: 63395 ms
channel transmit time: 59636 ms
Survey data from wlan4
frequency: 5210 MHz
noise: -91 dBm
channel active time: 121 ms
channel busy time: 119 ms
channel transmit time: 0 ms
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/p54.h')
-rw-r--r-- | drivers/net/wireless/p54/p54.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/p54.h b/drivers/net/wireless/p54/p54.h index 799d05e12595..452fa3a64aa1 100644 --- a/drivers/net/wireless/p54/p54.h +++ b/drivers/net/wireless/p54/p54.h | |||
@@ -199,6 +199,22 @@ struct p54_common { | |||
199 | u8 tx_diversity_mask; | 199 | u8 tx_diversity_mask; |
200 | unsigned int output_power; | 200 | unsigned int output_power; |
201 | struct p54_rssi_db_entry *cur_rssi; | 201 | struct p54_rssi_db_entry *cur_rssi; |
202 | struct ieee80211_channel *curchan; | ||
203 | struct survey_info *survey; | ||
204 | unsigned int chan_num; | ||
205 | struct completion stat_comp; | ||
206 | bool update_stats; | ||
207 | struct { | ||
208 | unsigned int timestamp; | ||
209 | unsigned int cached_cca; | ||
210 | unsigned int cached_tx; | ||
211 | unsigned int cached_rssi; | ||
212 | u64 active; | ||
213 | u64 cca; | ||
214 | u64 tx; | ||
215 | u64 rssi; | ||
216 | } survey_raw; | ||
217 | |||
202 | int noise; | 218 | int noise; |
203 | /* calibration, output power limit and rssi<->dBm conversation data */ | 219 | /* calibration, output power limit and rssi<->dBm conversation data */ |
204 | struct pda_iq_autocal_entry *iq_autocal; | 220 | struct pda_iq_autocal_entry *iq_autocal; |
@@ -220,6 +236,8 @@ struct p54_common { | |||
220 | u32 basic_rate_mask; | 236 | u32 basic_rate_mask; |
221 | u16 aid; | 237 | u16 aid; |
222 | u8 coverage_class; | 238 | u8 coverage_class; |
239 | bool phy_idle; | ||
240 | bool phy_ps; | ||
223 | bool powersave_override; | 241 | bool powersave_override; |
224 | __le32 beacon_req_id; | 242 | __le32 beacon_req_id; |
225 | struct completion beacon_comp; | 243 | struct completion beacon_comp; |