aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-05-15 01:54:01 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-21 21:47:56 -0400
commitfcab423d716f923d6a7601ba33adf356bef83414 (patch)
treeabd8e5b7db2d0b9596d8ca5d7e7c04912c18a731 /drivers
parentbabcebfabbc3f52ba048495537baa9dffff080d4 (diff)
iwlwifi: remove 4965 prefix from iwl4965_frame
This patch removes 4965 from iwl4965_frame struct and handling functions. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c20
3 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 83876a07fe2e..922b0a195e9a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -2016,7 +2016,7 @@ int iwl4965_hw_get_temperature(struct iwl_priv *priv)
2016} 2016}
2017 2017
2018unsigned int iwl4965_hw_get_beacon_cmd(struct iwl_priv *priv, 2018unsigned int iwl4965_hw_get_beacon_cmd(struct iwl_priv *priv,
2019 struct iwl4965_frame *frame, u8 rate) 2019 struct iwl_frame *frame, u8 rate)
2020{ 2020{
2021 struct iwl4965_tx_beacon_cmd *tx_beacon_cmd; 2021 struct iwl4965_tx_beacon_cmd *tx_beacon_cmd;
2022 unsigned int frame_size; 2022 unsigned int frame_size;
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 9a842fd047d4..60a8f06225c9 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -262,7 +262,7 @@ enum iwl_pwr_src {
262#define IEEE80211_HLEN (IEEE80211_4ADDR_LEN) 262#define IEEE80211_HLEN (IEEE80211_4ADDR_LEN)
263#define IEEE80211_FRAME_LEN (IEEE80211_DATA_LEN + IEEE80211_HLEN) 263#define IEEE80211_FRAME_LEN (IEEE80211_DATA_LEN + IEEE80211_HLEN)
264 264
265struct iwl4965_frame { 265struct iwl_frame {
266 union { 266 union {
267 struct ieee80211_hdr frame; 267 struct ieee80211_hdr frame;
268 struct iwl4965_tx_beacon_cmd beacon; 268 struct iwl4965_tx_beacon_cmd beacon;
@@ -696,7 +696,7 @@ extern int iwl4965_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, void *tfd,
696 dma_addr_t addr, u16 len); 696 dma_addr_t addr, u16 len);
697extern int iwl4965_hw_get_temperature(struct iwl_priv *priv); 697extern int iwl4965_hw_get_temperature(struct iwl_priv *priv);
698extern unsigned int iwl4965_hw_get_beacon_cmd(struct iwl_priv *priv, 698extern unsigned int iwl4965_hw_get_beacon_cmd(struct iwl_priv *priv,
699 struct iwl4965_frame *frame, u8 rate); 699 struct iwl_frame *frame, u8 rate);
700extern void iwl4965_hw_build_tx_cmd_rate(struct iwl_priv *priv, 700extern void iwl4965_hw_build_tx_cmd_rate(struct iwl_priv *priv,
701 struct iwl_cmd *cmd, 701 struct iwl_cmd *cmd,
702 struct ieee80211_tx_control *ctrl, 702 struct ieee80211_tx_control *ctrl,
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 0ad9558d6e84..1c45b6f49d56 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -800,7 +800,7 @@ static int iwl4965_send_card_state(struct iwl_priv *priv, u32 flags, u8 meta_fla
800 return iwl_send_cmd(priv, &cmd); 800 return iwl_send_cmd(priv, &cmd);
801} 801}
802 802
803static void iwl4965_clear_free_frames(struct iwl_priv *priv) 803static void iwl_clear_free_frames(struct iwl_priv *priv)
804{ 804{
805 struct list_head *element; 805 struct list_head *element;
806 806
@@ -810,7 +810,7 @@ static void iwl4965_clear_free_frames(struct iwl_priv *priv)
810 while (!list_empty(&priv->free_frames)) { 810 while (!list_empty(&priv->free_frames)) {
811 element = priv->free_frames.next; 811 element = priv->free_frames.next;
812 list_del(element); 812 list_del(element);
813 kfree(list_entry(element, struct iwl4965_frame, list)); 813 kfree(list_entry(element, struct iwl_frame, list));
814 priv->frames_count--; 814 priv->frames_count--;
815 } 815 }
816 816
@@ -821,9 +821,9 @@ static void iwl4965_clear_free_frames(struct iwl_priv *priv)
821 } 821 }
822} 822}
823 823
824static struct iwl4965_frame *iwl4965_get_free_frame(struct iwl_priv *priv) 824static struct iwl_frame *iwl_get_free_frame(struct iwl_priv *priv)
825{ 825{
826 struct iwl4965_frame *frame; 826 struct iwl_frame *frame;
827 struct list_head *element; 827 struct list_head *element;
828 if (list_empty(&priv->free_frames)) { 828 if (list_empty(&priv->free_frames)) {
829 frame = kzalloc(sizeof(*frame), GFP_KERNEL); 829 frame = kzalloc(sizeof(*frame), GFP_KERNEL);
@@ -838,10 +838,10 @@ static struct iwl4965_frame *iwl4965_get_free_frame(struct iwl_priv *priv)
838 838
839 element = priv->free_frames.next; 839 element = priv->free_frames.next;
840 list_del(element); 840 list_del(element);
841 return list_entry(element, struct iwl4965_frame, list); 841 return list_entry(element, struct iwl_frame, list);
842} 842}
843 843
844static void iwl4965_free_frame(struct iwl_priv *priv, struct iwl4965_frame *frame) 844static void iwl_free_frame(struct iwl_priv *priv, struct iwl_frame *frame)
845{ 845{
846 memset(frame, 0, sizeof(*frame)); 846 memset(frame, 0, sizeof(*frame));
847 list_add(&frame->list, &priv->free_frames); 847 list_add(&frame->list, &priv->free_frames);
@@ -892,12 +892,12 @@ static u8 iwl4965_rate_get_lowest_plcp(struct iwl_priv *priv)
892 892
893static int iwl4965_send_beacon_cmd(struct iwl_priv *priv) 893static int iwl4965_send_beacon_cmd(struct iwl_priv *priv)
894{ 894{
895 struct iwl4965_frame *frame; 895 struct iwl_frame *frame;
896 unsigned int frame_size; 896 unsigned int frame_size;
897 int rc; 897 int rc;
898 u8 rate; 898 u8 rate;
899 899
900 frame = iwl4965_get_free_frame(priv); 900 frame = iwl_get_free_frame(priv);
901 901
902 if (!frame) { 902 if (!frame) {
903 IWL_ERROR("Could not obtain free frame buffer for beacon " 903 IWL_ERROR("Could not obtain free frame buffer for beacon "
@@ -912,7 +912,7 @@ static int iwl4965_send_beacon_cmd(struct iwl_priv *priv)
912 rc = iwl_send_cmd_pdu(priv, REPLY_TX_BEACON, frame_size, 912 rc = iwl_send_cmd_pdu(priv, REPLY_TX_BEACON, frame_size,
913 &frame->u.cmd[0]); 913 &frame->u.cmd[0]);
914 914
915 iwl4965_free_frame(priv, frame); 915 iwl_free_frame(priv, frame);
916 916
917 return rc; 917 return rc;
918} 918}
@@ -4355,7 +4355,7 @@ static void __iwl4965_down(struct iwl_priv *priv)
4355 priv->ibss_beacon = NULL; 4355 priv->ibss_beacon = NULL;
4356 4356
4357 /* clear out any free frames */ 4357 /* clear out any free frames */
4358 iwl4965_clear_free_frames(priv); 4358 iwl_clear_free_frames(priv);
4359} 4359}
4360 4360
4361static void iwl4965_down(struct iwl_priv *priv) 4361static void iwl4965_down(struct iwl_priv *priv)