aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl4965-base.c
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/net/wireless/iwlwifi/iwl4965-base.c
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/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c20
1 files changed, 10 insertions, 10 deletions
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)