diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-03-12 19:58:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-25 16:41:47 -0400 |
commit | c79dd5b5bc5a65822cdc9d571032c469ad7577d5 (patch) | |
tree | 9056b3470264641eb6d4f25fedef5cde5f1c069d /drivers/net/wireless/iwlwifi/iwl-4965-rs.c | |
parent | 0a6857e70d577237bb1cd1c991e68e7d3b6f7c90 (diff) |
iwlwifi: rename struct iwl4965_priv to struct iwl_priv
This patch renames iwl4965_priv to iwl_priv. iwl_priv will
be shared by more hw.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965-rs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-rs.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c index 7733b23d582c..02990aeabab5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c | |||
@@ -162,11 +162,11 @@ struct iwl4965_lq_sta { | |||
162 | struct dentry *rs_sta_dbgfs_tx_agg_tid_en_file; | 162 | struct dentry *rs_sta_dbgfs_tx_agg_tid_en_file; |
163 | #endif | 163 | #endif |
164 | struct iwl4965_rate dbg_fixed; | 164 | struct iwl4965_rate dbg_fixed; |
165 | struct iwl4965_priv *drv; | 165 | struct iwl_priv *drv; |
166 | #endif | 166 | #endif |
167 | }; | 167 | }; |
168 | 168 | ||
169 | static void rs_rate_scale_perform(struct iwl4965_priv *priv, | 169 | static void rs_rate_scale_perform(struct iwl_priv *priv, |
170 | struct net_device *dev, | 170 | struct net_device *dev, |
171 | struct ieee80211_hdr *hdr, | 171 | struct ieee80211_hdr *hdr, |
172 | struct sta_info *sta); | 172 | struct sta_info *sta); |
@@ -229,7 +229,7 @@ static s32 expected_tpt_mimo40MHzSGI[IWL_RATE_COUNT] = { | |||
229 | 0, 0, 0, 0, 131, 131, 191, 222, 242, 270, 284, 289, 293 | 229 | 0, 0, 0, 0, 131, 131, 191, 222, 242, 270, 284, 289, 293 |
230 | }; | 230 | }; |
231 | 231 | ||
232 | static int iwl4965_lq_sync_callback(struct iwl4965_priv *priv, | 232 | static int iwl4965_lq_sync_callback(struct iwl_priv *priv, |
233 | struct iwl4965_cmd *cmd, struct sk_buff *skb) | 233 | struct iwl4965_cmd *cmd, struct sk_buff *skb) |
234 | { | 234 | { |
235 | /*We didn't cache the SKB; let the caller free it */ | 235 | /*We didn't cache the SKB; let the caller free it */ |
@@ -241,7 +241,7 @@ static inline u8 iwl4965_rate_get_rate(u32 rate_n_flags) | |||
241 | return (u8)(rate_n_flags & 0xFF); | 241 | return (u8)(rate_n_flags & 0xFF); |
242 | } | 242 | } |
243 | 243 | ||
244 | static int rs_send_lq_cmd(struct iwl4965_priv *priv, | 244 | static int rs_send_lq_cmd(struct iwl_priv *priv, |
245 | struct iwl4965_link_quality_cmd *lq, u8 flags) | 245 | struct iwl4965_link_quality_cmd *lq, u8 flags) |
246 | { | 246 | { |
247 | #ifdef CONFIG_IWLWIFI_DEBUG | 247 | #ifdef CONFIG_IWLWIFI_DEBUG |
@@ -388,7 +388,7 @@ static u32 rs_tl_get_load(struct iwl4965_lq_sta *lq_data, u8 tid) | |||
388 | return tl->total; | 388 | return tl->total; |
389 | } | 389 | } |
390 | 390 | ||
391 | static void rs_tl_turn_on_agg_for_tid(struct iwl4965_priv *priv, | 391 | static void rs_tl_turn_on_agg_for_tid(struct iwl_priv *priv, |
392 | struct iwl4965_lq_sta *lq_data, u8 tid, | 392 | struct iwl4965_lq_sta *lq_data, u8 tid, |
393 | struct sta_info *sta) | 393 | struct sta_info *sta) |
394 | { | 394 | { |
@@ -407,7 +407,7 @@ static void rs_tl_turn_on_agg_for_tid(struct iwl4965_priv *priv, | |||
407 | } | 407 | } |
408 | } | 408 | } |
409 | 409 | ||
410 | static void rs_tl_turn_on_agg(struct iwl4965_priv *priv, u8 tid, | 410 | static void rs_tl_turn_on_agg(struct iwl_priv *priv, u8 tid, |
411 | struct iwl4965_lq_sta *lq_data, | 411 | struct iwl4965_lq_sta *lq_data, |
412 | struct sta_info *sta) | 412 | struct sta_info *sta) |
413 | { | 413 | { |
@@ -658,7 +658,7 @@ static inline void rs_toggle_antenna(struct iwl4965_rate *new_rate, | |||
658 | } | 658 | } |
659 | } | 659 | } |
660 | 660 | ||
661 | static inline u8 rs_use_green(struct iwl4965_priv *priv, | 661 | static inline u8 rs_use_green(struct iwl_priv *priv, |
662 | struct ieee80211_conf *conf) | 662 | struct ieee80211_conf *conf) |
663 | { | 663 | { |
664 | #ifdef CONFIG_IWL4965_HT | 664 | #ifdef CONFIG_IWL4965_HT |
@@ -821,7 +821,7 @@ static void rs_tx_status(void *priv_rate, struct net_device *dev, | |||
821 | struct iwl4965_link_quality_cmd *table; | 821 | struct iwl4965_link_quality_cmd *table; |
822 | struct sta_info *sta; | 822 | struct sta_info *sta; |
823 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; | 823 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; |
824 | struct iwl4965_priv *priv = (struct iwl4965_priv *)priv_rate; | 824 | struct iwl_priv *priv = (struct iwl_priv *)priv_rate; |
825 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); | 825 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); |
826 | struct ieee80211_hw *hw = local_to_hw(local); | 826 | struct ieee80211_hw *hw = local_to_hw(local); |
827 | struct iwl4965_rate_scale_data *window = NULL; | 827 | struct iwl4965_rate_scale_data *window = NULL; |
@@ -1128,7 +1128,7 @@ static void rs_get_expected_tpt_table(struct iwl4965_lq_sta *lq_sta, | |||
1128 | * to decrease to match "active" throughput. When moving from MIMO to SISO, | 1128 | * to decrease to match "active" throughput. When moving from MIMO to SISO, |
1129 | * bit rate will typically need to increase, but not if performance was bad. | 1129 | * bit rate will typically need to increase, but not if performance was bad. |
1130 | */ | 1130 | */ |
1131 | static s32 rs_get_best_rate(struct iwl4965_priv *priv, | 1131 | static s32 rs_get_best_rate(struct iwl_priv *priv, |
1132 | struct iwl4965_lq_sta *lq_sta, | 1132 | struct iwl4965_lq_sta *lq_sta, |
1133 | struct iwl4965_scale_tbl_info *tbl, /* "search" */ | 1133 | struct iwl4965_scale_tbl_info *tbl, /* "search" */ |
1134 | u16 rate_mask, s8 index, s8 rate) | 1134 | u16 rate_mask, s8 index, s8 rate) |
@@ -1226,7 +1226,7 @@ static inline u8 rs_is_both_ant_supp(u8 valid_antenna) | |||
1226 | /* | 1226 | /* |
1227 | * Set up search table for MIMO | 1227 | * Set up search table for MIMO |
1228 | */ | 1228 | */ |
1229 | static int rs_switch_to_mimo(struct iwl4965_priv *priv, | 1229 | static int rs_switch_to_mimo(struct iwl_priv *priv, |
1230 | struct iwl4965_lq_sta *lq_sta, | 1230 | struct iwl4965_lq_sta *lq_sta, |
1231 | struct ieee80211_conf *conf, | 1231 | struct ieee80211_conf *conf, |
1232 | struct sta_info *sta, | 1232 | struct sta_info *sta, |
@@ -1291,7 +1291,7 @@ static int rs_switch_to_mimo(struct iwl4965_priv *priv, | |||
1291 | /* | 1291 | /* |
1292 | * Set up search table for SISO | 1292 | * Set up search table for SISO |
1293 | */ | 1293 | */ |
1294 | static int rs_switch_to_siso(struct iwl4965_priv *priv, | 1294 | static int rs_switch_to_siso(struct iwl_priv *priv, |
1295 | struct iwl4965_lq_sta *lq_sta, | 1295 | struct iwl4965_lq_sta *lq_sta, |
1296 | struct ieee80211_conf *conf, | 1296 | struct ieee80211_conf *conf, |
1297 | struct sta_info *sta, | 1297 | struct sta_info *sta, |
@@ -1354,7 +1354,7 @@ static int rs_switch_to_siso(struct iwl4965_priv *priv, | |||
1354 | /* | 1354 | /* |
1355 | * Try to switch to new modulation mode from legacy | 1355 | * Try to switch to new modulation mode from legacy |
1356 | */ | 1356 | */ |
1357 | static int rs_move_legacy_other(struct iwl4965_priv *priv, | 1357 | static int rs_move_legacy_other(struct iwl_priv *priv, |
1358 | struct iwl4965_lq_sta *lq_sta, | 1358 | struct iwl4965_lq_sta *lq_sta, |
1359 | struct ieee80211_conf *conf, | 1359 | struct ieee80211_conf *conf, |
1360 | struct sta_info *sta, | 1360 | struct sta_info *sta, |
@@ -1452,7 +1452,7 @@ static int rs_move_legacy_other(struct iwl4965_priv *priv, | |||
1452 | /* | 1452 | /* |
1453 | * Try to switch to new modulation mode from SISO | 1453 | * Try to switch to new modulation mode from SISO |
1454 | */ | 1454 | */ |
1455 | static int rs_move_siso_to_other(struct iwl4965_priv *priv, | 1455 | static int rs_move_siso_to_other(struct iwl_priv *priv, |
1456 | struct iwl4965_lq_sta *lq_sta, | 1456 | struct iwl4965_lq_sta *lq_sta, |
1457 | struct ieee80211_conf *conf, | 1457 | struct ieee80211_conf *conf, |
1458 | struct sta_info *sta, | 1458 | struct sta_info *sta, |
@@ -1548,7 +1548,7 @@ static int rs_move_siso_to_other(struct iwl4965_priv *priv, | |||
1548 | /* | 1548 | /* |
1549 | * Try to switch to new modulation mode from MIMO | 1549 | * Try to switch to new modulation mode from MIMO |
1550 | */ | 1550 | */ |
1551 | static int rs_move_mimo_to_other(struct iwl4965_priv *priv, | 1551 | static int rs_move_mimo_to_other(struct iwl_priv *priv, |
1552 | struct iwl4965_lq_sta *lq_sta, | 1552 | struct iwl4965_lq_sta *lq_sta, |
1553 | struct ieee80211_conf *conf, | 1553 | struct ieee80211_conf *conf, |
1554 | struct sta_info *sta, | 1554 | struct sta_info *sta, |
@@ -1728,7 +1728,7 @@ static void rs_stay_in_table(struct iwl4965_lq_sta *lq_sta) | |||
1728 | /* | 1728 | /* |
1729 | * Do rate scaling and search for new modulation mode. | 1729 | * Do rate scaling and search for new modulation mode. |
1730 | */ | 1730 | */ |
1731 | static void rs_rate_scale_perform(struct iwl4965_priv *priv, | 1731 | static void rs_rate_scale_perform(struct iwl_priv *priv, |
1732 | struct net_device *dev, | 1732 | struct net_device *dev, |
1733 | struct ieee80211_hdr *hdr, | 1733 | struct ieee80211_hdr *hdr, |
1734 | struct sta_info *sta) | 1734 | struct sta_info *sta) |
@@ -2148,7 +2148,7 @@ out: | |||
2148 | } | 2148 | } |
2149 | 2149 | ||
2150 | 2150 | ||
2151 | static void rs_initialize_lq(struct iwl4965_priv *priv, | 2151 | static void rs_initialize_lq(struct iwl_priv *priv, |
2152 | struct ieee80211_conf *conf, | 2152 | struct ieee80211_conf *conf, |
2153 | struct sta_info *sta) | 2153 | struct sta_info *sta) |
2154 | { | 2154 | { |
@@ -2213,7 +2213,7 @@ static void rs_get_rate(void *priv_rate, struct net_device *dev, | |||
2213 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; | 2213 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; |
2214 | struct sta_info *sta; | 2214 | struct sta_info *sta; |
2215 | u16 fc; | 2215 | u16 fc; |
2216 | struct iwl4965_priv *priv = (struct iwl4965_priv *)priv_rate; | 2216 | struct iwl_priv *priv = (struct iwl_priv *)priv_rate; |
2217 | struct iwl4965_lq_sta *lq_sta; | 2217 | struct iwl4965_lq_sta *lq_sta; |
2218 | 2218 | ||
2219 | IWL_DEBUG_RATE_LIMIT("rate scale calculate new rate for skb\n"); | 2219 | IWL_DEBUG_RATE_LIMIT("rate scale calculate new rate for skb\n"); |
@@ -2294,7 +2294,7 @@ static void rs_rate_init(void *priv_rate, void *priv_sta, | |||
2294 | int i, j; | 2294 | int i, j; |
2295 | struct ieee80211_conf *conf = &local->hw.conf; | 2295 | struct ieee80211_conf *conf = &local->hw.conf; |
2296 | struct ieee80211_supported_band *sband; | 2296 | struct ieee80211_supported_band *sband; |
2297 | struct iwl4965_priv *priv = (struct iwl4965_priv *)priv_rate; | 2297 | struct iwl_priv *priv = (struct iwl_priv *)priv_rate; |
2298 | struct iwl4965_lq_sta *lq_sta = priv_sta; | 2298 | struct iwl4965_lq_sta *lq_sta = priv_sta; |
2299 | 2299 | ||
2300 | sband = local->hw.wiphy->bands[local->hw.conf.channel->band]; | 2300 | sband = local->hw.wiphy->bands[local->hw.conf.channel->band]; |
@@ -2516,7 +2516,7 @@ static void rs_free(void *priv_rate) | |||
2516 | 2516 | ||
2517 | static void rs_clear(void *priv_rate) | 2517 | static void rs_clear(void *priv_rate) |
2518 | { | 2518 | { |
2519 | struct iwl4965_priv *priv = (struct iwl4965_priv *) priv_rate; | 2519 | struct iwl_priv *priv = (struct iwl_priv *) priv_rate; |
2520 | 2520 | ||
2521 | IWL_DEBUG_RATE("enter\n"); | 2521 | IWL_DEBUG_RATE("enter\n"); |
2522 | 2522 | ||
@@ -2726,7 +2726,7 @@ static struct rate_control_ops rs_ops = { | |||
2726 | int iwl4965_fill_rs_info(struct ieee80211_hw *hw, char *buf, u8 sta_id) | 2726 | int iwl4965_fill_rs_info(struct ieee80211_hw *hw, char *buf, u8 sta_id) |
2727 | { | 2727 | { |
2728 | struct ieee80211_local *local = hw_to_local(hw); | 2728 | struct ieee80211_local *local = hw_to_local(hw); |
2729 | struct iwl4965_priv *priv = hw->priv; | 2729 | struct iwl_priv *priv = hw->priv; |
2730 | struct iwl4965_lq_sta *lq_sta; | 2730 | struct iwl4965_lq_sta *lq_sta; |
2731 | struct sta_info *sta; | 2731 | struct sta_info *sta; |
2732 | int cnt = 0, i; | 2732 | int cnt = 0, i; |
@@ -2816,7 +2816,7 @@ int iwl4965_fill_rs_info(struct ieee80211_hw *hw, char *buf, u8 sta_id) | |||
2816 | 2816 | ||
2817 | void iwl4965_rate_scale_init(struct ieee80211_hw *hw, s32 sta_id) | 2817 | void iwl4965_rate_scale_init(struct ieee80211_hw *hw, s32 sta_id) |
2818 | { | 2818 | { |
2819 | struct iwl4965_priv *priv = hw->priv; | 2819 | struct iwl_priv *priv = hw->priv; |
2820 | 2820 | ||
2821 | priv->lq_mngr.lq_ready = 1; | 2821 | priv->lq_mngr.lq_ready = 1; |
2822 | } | 2822 | } |