aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ipw2200.c33
-rw-r--r--drivers/net/wireless/ipw2200.h4
2 files changed, 20 insertions, 17 deletions
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c
index 916b24c544e2..2a834deb60e8 100644
--- a/drivers/net/wireless/ipw2200.c
+++ b/drivers/net/wireless/ipw2200.c
@@ -701,7 +701,7 @@ static void ipw_init_ordinals(struct ipw_priv *priv)
701 701
702} 702}
703 703
704u32 ipw_register_toggle(u32 reg) 704static u32 ipw_register_toggle(u32 reg)
705{ 705{
706 reg &= ~IPW_START_STANDBY; 706 reg &= ~IPW_START_STANDBY;
707 if (reg & IPW_GATE_ODMA) 707 if (reg & IPW_GATE_ODMA)
@@ -726,7 +726,7 @@ u32 ipw_register_toggle(u32 reg)
726#define LD_TIME_LINK_OFF 2700 726#define LD_TIME_LINK_OFF 2700
727#define LD_TIME_ACT_ON 250 727#define LD_TIME_ACT_ON 250
728 728
729void ipw_led_link_on(struct ipw_priv *priv) 729static void ipw_led_link_on(struct ipw_priv *priv)
730{ 730{
731 unsigned long flags; 731 unsigned long flags;
732 u32 led; 732 u32 led;
@@ -769,7 +769,7 @@ static void ipw_bg_led_link_on(void *data)
769 up(&priv->sem); 769 up(&priv->sem);
770} 770}
771 771
772void ipw_led_link_off(struct ipw_priv *priv) 772static void ipw_led_link_off(struct ipw_priv *priv)
773{ 773{
774 unsigned long flags; 774 unsigned long flags;
775 u32 led; 775 u32 led;
@@ -847,6 +847,7 @@ static void __ipw_led_activity_on(struct ipw_priv *priv)
847 } 847 }
848} 848}
849 849
850#if 0
850void ipw_led_activity_on(struct ipw_priv *priv) 851void ipw_led_activity_on(struct ipw_priv *priv)
851{ 852{
852 unsigned long flags; 853 unsigned long flags;
@@ -854,8 +855,9 @@ void ipw_led_activity_on(struct ipw_priv *priv)
854 __ipw_led_activity_on(priv); 855 __ipw_led_activity_on(priv);
855 spin_unlock_irqrestore(&priv->lock, flags); 856 spin_unlock_irqrestore(&priv->lock, flags);
856} 857}
858#endif /* 0 */
857 859
858void ipw_led_activity_off(struct ipw_priv *priv) 860static void ipw_led_activity_off(struct ipw_priv *priv)
859{ 861{
860 unsigned long flags; 862 unsigned long flags;
861 u32 led; 863 u32 led;
@@ -890,7 +892,7 @@ static void ipw_bg_led_activity_off(void *data)
890 up(&priv->sem); 892 up(&priv->sem);
891} 893}
892 894
893void ipw_led_band_on(struct ipw_priv *priv) 895static void ipw_led_band_on(struct ipw_priv *priv)
894{ 896{
895 unsigned long flags; 897 unsigned long flags;
896 u32 led; 898 u32 led;
@@ -925,7 +927,7 @@ void ipw_led_band_on(struct ipw_priv *priv)
925 spin_unlock_irqrestore(&priv->lock, flags); 927 spin_unlock_irqrestore(&priv->lock, flags);
926} 928}
927 929
928void ipw_led_band_off(struct ipw_priv *priv) 930static void ipw_led_band_off(struct ipw_priv *priv)
929{ 931{
930 unsigned long flags; 932 unsigned long flags;
931 u32 led; 933 u32 led;
@@ -948,24 +950,24 @@ void ipw_led_band_off(struct ipw_priv *priv)
948 spin_unlock_irqrestore(&priv->lock, flags); 950 spin_unlock_irqrestore(&priv->lock, flags);
949} 951}
950 952
951void ipw_led_radio_on(struct ipw_priv *priv) 953static void ipw_led_radio_on(struct ipw_priv *priv)
952{ 954{
953 ipw_led_link_on(priv); 955 ipw_led_link_on(priv);
954} 956}
955 957
956void ipw_led_radio_off(struct ipw_priv *priv) 958static void ipw_led_radio_off(struct ipw_priv *priv)
957{ 959{
958 ipw_led_activity_off(priv); 960 ipw_led_activity_off(priv);
959 ipw_led_link_off(priv); 961 ipw_led_link_off(priv);
960} 962}
961 963
962void ipw_led_link_up(struct ipw_priv *priv) 964static void ipw_led_link_up(struct ipw_priv *priv)
963{ 965{
964 /* Set the Link Led on for all nic types */ 966 /* Set the Link Led on for all nic types */
965 ipw_led_link_on(priv); 967 ipw_led_link_on(priv);
966} 968}
967 969
968void ipw_led_link_down(struct ipw_priv *priv) 970static void ipw_led_link_down(struct ipw_priv *priv)
969{ 971{
970 ipw_led_activity_off(priv); 972 ipw_led_activity_off(priv);
971 ipw_led_link_off(priv); 973 ipw_led_link_off(priv);
@@ -974,7 +976,7 @@ void ipw_led_link_down(struct ipw_priv *priv)
974 ipw_led_radio_off(priv); 976 ipw_led_radio_off(priv);
975} 977}
976 978
977void ipw_led_init(struct ipw_priv *priv) 979static void ipw_led_init(struct ipw_priv *priv)
978{ 980{
979 priv->nic_type = priv->eeprom[EEPROM_NIC_TYPE]; 981 priv->nic_type = priv->eeprom[EEPROM_NIC_TYPE];
980 982
@@ -1025,7 +1027,7 @@ void ipw_led_init(struct ipw_priv *priv)
1025 } 1027 }
1026} 1028}
1027 1029
1028void ipw_led_shutdown(struct ipw_priv *priv) 1030static void ipw_led_shutdown(struct ipw_priv *priv)
1029{ 1031{
1030 ipw_led_activity_off(priv); 1032 ipw_led_activity_off(priv);
1031 ipw_led_link_off(priv); 1033 ipw_led_link_off(priv);
@@ -6204,7 +6206,8 @@ static int ipw_wpa_set_auth_algs(struct ipw_priv *priv, int value)
6204 return ret; 6206 return ret;
6205} 6207}
6206 6208
6207void ipw_wpa_assoc_frame(struct ipw_priv *priv, char *wpa_ie, int wpa_ie_len) 6209static void ipw_wpa_assoc_frame(struct ipw_priv *priv, char *wpa_ie,
6210 int wpa_ie_len)
6208{ 6211{
6209 /* make sure WPA is enabled */ 6212 /* make sure WPA is enabled */
6210 ipw_wpa_enable(priv, 1); 6213 ipw_wpa_enable(priv, 1);
@@ -10059,7 +10062,7 @@ static void ipw_bg_rf_kill(void *data)
10059 up(&priv->sem); 10062 up(&priv->sem);
10060} 10063}
10061 10064
10062void ipw_link_up(struct ipw_priv *priv) 10065static void ipw_link_up(struct ipw_priv *priv)
10063{ 10066{
10064 priv->last_seq_num = -1; 10067 priv->last_seq_num = -1;
10065 priv->last_frag_num = -1; 10068 priv->last_frag_num = -1;
@@ -10094,7 +10097,7 @@ static void ipw_bg_link_up(void *data)
10094 up(&priv->sem); 10097 up(&priv->sem);
10095} 10098}
10096 10099
10097void ipw_link_down(struct ipw_priv *priv) 10100static void ipw_link_down(struct ipw_priv *priv)
10098{ 10101{
10099 ipw_led_link_down(priv); 10102 ipw_led_link_down(priv);
10100 netif_carrier_off(priv->net_dev); 10103 netif_carrier_off(priv->net_dev);
diff --git a/drivers/net/wireless/ipw2200.h b/drivers/net/wireless/ipw2200.h
index e65620a4d79e..e2afa76ad3cd 100644
--- a/drivers/net/wireless/ipw2200.h
+++ b/drivers/net/wireless/ipw2200.h
@@ -852,7 +852,7 @@ struct ipw_scan_request_ext {
852 u16 dwell_time[IPW_SCAN_TYPES]; 852 u16 dwell_time[IPW_SCAN_TYPES];
853} __attribute__ ((packed)); 853} __attribute__ ((packed));
854 854
855extern inline u8 ipw_get_scan_type(struct ipw_scan_request_ext *scan, u8 index) 855static inline u8 ipw_get_scan_type(struct ipw_scan_request_ext *scan, u8 index)
856{ 856{
857 if (index % 2) 857 if (index % 2)
858 return scan->scan_type[index / 2] & 0x0F; 858 return scan->scan_type[index / 2] & 0x0F;
@@ -860,7 +860,7 @@ extern inline u8 ipw_get_scan_type(struct ipw_scan_request_ext *scan, u8 index)
860 return (scan->scan_type[index / 2] & 0xF0) >> 4; 860 return (scan->scan_type[index / 2] & 0xF0) >> 4;
861} 861}
862 862
863extern inline void ipw_set_scan_type(struct ipw_scan_request_ext *scan, 863static inline void ipw_set_scan_type(struct ipw_scan_request_ext *scan,
864 u8 index, u8 scan_type) 864 u8 index, u8 scan_type)
865{ 865{
866 if (index % 2) 866 if (index % 2)