aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ipw2100.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ipw2100.c')
-rw-r--r--drivers/net/wireless/ipw2100.c31
1 files changed, 9 insertions, 22 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c
index bca74811bc7f..6e988d2486a7 100644
--- a/drivers/net/wireless/ipw2100.c
+++ b/drivers/net/wireless/ipw2100.c
@@ -1914,7 +1914,6 @@ static void isr_indicate_associated(struct ipw2100_priv *priv, u32 status)
1914 u32 chan; 1914 u32 chan;
1915 char *txratename; 1915 char *txratename;
1916 u8 bssid[ETH_ALEN]; 1916 u8 bssid[ETH_ALEN];
1917 DECLARE_MAC_BUF(mac);
1918 1917
1919 /* 1918 /*
1920 * TBD: BSSID is usually 00:00:00:00:00:00 here and not 1919 * TBD: BSSID is usually 00:00:00:00:00:00 here and not
@@ -1975,10 +1974,9 @@ static void isr_indicate_associated(struct ipw2100_priv *priv, u32 status)
1975 break; 1974 break;
1976 } 1975 }
1977 1976
1978 IPW_DEBUG_INFO("%s: Associated with '%s' at %s, channel %d (BSSID=" 1977 IPW_DEBUG_INFO("%s: Associated with '%s' at %s, channel %d (BSSID=%pM)\n",
1979 "%s)\n",
1980 priv->net_dev->name, escape_essid(essid, essid_len), 1978 priv->net_dev->name, escape_essid(essid, essid_len),
1981 txratename, chan, print_mac(mac, bssid)); 1979 txratename, chan, bssid);
1982 1980
1983 /* now we copy read ssid into dev */ 1981 /* now we copy read ssid into dev */
1984 if (!(priv->config & CFG_STATIC_ESSID)) { 1982 if (!(priv->config & CFG_STATIC_ESSID)) {
@@ -2046,12 +2044,10 @@ static int ipw2100_set_essid(struct ipw2100_priv *priv, char *essid,
2046 2044
2047static void isr_indicate_association_lost(struct ipw2100_priv *priv, u32 status) 2045static void isr_indicate_association_lost(struct ipw2100_priv *priv, u32 status)
2048{ 2046{
2049 DECLARE_MAC_BUF(mac);
2050
2051 IPW_DEBUG(IPW_DL_NOTIF | IPW_DL_STATE | IPW_DL_ASSOC, 2047 IPW_DEBUG(IPW_DL_NOTIF | IPW_DL_STATE | IPW_DL_ASSOC,
2052 "disassociated: '%s' %s \n", 2048 "disassociated: '%s' %pM \n",
2053 escape_essid(priv->essid, priv->essid_len), 2049 escape_essid(priv->essid, priv->essid_len),
2054 print_mac(mac, priv->bssid)); 2050 priv->bssid);
2055 2051
2056 priv->status &= ~(STATUS_ASSOCIATED | STATUS_ASSOCIATING); 2052 priv->status &= ~(STATUS_ASSOCIATED | STATUS_ASSOCIATING);
2057 2053
@@ -4058,7 +4054,6 @@ static ssize_t show_bssinfo(struct device *d, struct device_attribute *attr,
4058 char *out = buf; 4054 char *out = buf;
4059 int length; 4055 int length;
4060 int ret; 4056 int ret;
4061 DECLARE_MAC_BUF(mac);
4062 4057
4063 if (priv->status & STATUS_RF_KILL_MASK) 4058 if (priv->status & STATUS_RF_KILL_MASK)
4064 return 0; 4059 return 0;
@@ -4086,7 +4081,7 @@ static ssize_t show_bssinfo(struct device *d, struct device_attribute *attr,
4086 __LINE__); 4081 __LINE__);
4087 4082
4088 out += sprintf(out, "ESSID: %s\n", essid); 4083 out += sprintf(out, "ESSID: %s\n", essid);
4089 out += sprintf(out, "BSSID: %s\n", print_mac(mac, bssid)); 4084 out += sprintf(out, "BSSID: %pM\n", bssid);
4090 out += sprintf(out, "Channel: %d\n", chan); 4085 out += sprintf(out, "Channel: %d\n", chan);
4091 4086
4092 return out - buf; 4087 return out - buf;
@@ -4662,7 +4657,6 @@ static int ipw2100_read_mac_address(struct ipw2100_priv *priv)
4662{ 4657{
4663 u32 length = ETH_ALEN; 4658 u32 length = ETH_ALEN;
4664 u8 addr[ETH_ALEN]; 4659 u8 addr[ETH_ALEN];
4665 DECLARE_MAC_BUF(mac);
4666 4660
4667 int err; 4661 int err;
4668 4662
@@ -4673,8 +4667,7 @@ static int ipw2100_read_mac_address(struct ipw2100_priv *priv)
4673 } 4667 }
4674 4668
4675 memcpy(priv->net_dev->dev_addr, addr, ETH_ALEN); 4669 memcpy(priv->net_dev->dev_addr, addr, ETH_ALEN);
4676 IPW_DEBUG_INFO("card MAC is %s\n", 4670 IPW_DEBUG_INFO("card MAC is %pM\n", priv->net_dev->dev_addr);
4677 print_mac(mac, priv->net_dev->dev_addr));
4678 4671
4679 return 0; 4672 return 0;
4680} 4673}
@@ -5053,10 +5046,8 @@ static int ipw2100_set_mandatory_bssid(struct ipw2100_priv *priv, u8 * bssid,
5053 int err; 5046 int err;
5054 5047
5055#ifdef CONFIG_IPW2100_DEBUG 5048#ifdef CONFIG_IPW2100_DEBUG
5056 DECLARE_MAC_BUF(mac);
5057 if (bssid != NULL) 5049 if (bssid != NULL)
5058 IPW_DEBUG_HC("MANDATORY_BSSID: %s\n", 5050 IPW_DEBUG_HC("MANDATORY_BSSID: %pM\n", bssid);
5059 print_mac(mac, bssid));
5060 else 5051 else
5061 IPW_DEBUG_HC("MANDATORY_BSSID: <clear>\n"); 5052 IPW_DEBUG_HC("MANDATORY_BSSID: <clear>\n");
5062#endif 5053#endif
@@ -6905,7 +6896,6 @@ static int ipw2100_wx_set_wap(struct net_device *dev,
6905 static const unsigned char off[] = { 6896 static const unsigned char off[] = {
6906 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 6897 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
6907 }; 6898 };
6908 DECLARE_MAC_BUF(mac);
6909 6899
6910 // sanity checks 6900 // sanity checks
6911 if (wrqu->ap_addr.sa_family != ARPHRD_ETHER) 6901 if (wrqu->ap_addr.sa_family != ARPHRD_ETHER)
@@ -6931,8 +6921,7 @@ static int ipw2100_wx_set_wap(struct net_device *dev,
6931 6921
6932 err = ipw2100_set_mandatory_bssid(priv, wrqu->ap_addr.sa_data, 0); 6922 err = ipw2100_set_mandatory_bssid(priv, wrqu->ap_addr.sa_data, 0);
6933 6923
6934 IPW_DEBUG_WX("SET BSSID -> %s\n", 6924 IPW_DEBUG_WX("SET BSSID -> %pM\n", wrqu->ap_addr.sa_data);
6935 print_mac(mac, wrqu->ap_addr.sa_data));
6936 6925
6937 done: 6926 done:
6938 mutex_unlock(&priv->action_mutex); 6927 mutex_unlock(&priv->action_mutex);
@@ -6948,7 +6937,6 @@ static int ipw2100_wx_get_wap(struct net_device *dev,
6948 */ 6937 */
6949 6938
6950 struct ipw2100_priv *priv = ieee80211_priv(dev); 6939 struct ipw2100_priv *priv = ieee80211_priv(dev);
6951 DECLARE_MAC_BUF(mac);
6952 6940
6953 /* If we are associated, trying to associate, or have a statically 6941 /* If we are associated, trying to associate, or have a statically
6954 * configured BSSID then return that; otherwise return ANY */ 6942 * configured BSSID then return that; otherwise return ANY */
@@ -6958,8 +6946,7 @@ static int ipw2100_wx_get_wap(struct net_device *dev,
6958 } else 6946 } else
6959 memset(wrqu->ap_addr.sa_data, 0, ETH_ALEN); 6947 memset(wrqu->ap_addr.sa_data, 0, ETH_ALEN);
6960 6948
6961 IPW_DEBUG_WX("Getting WAP BSSID: %s\n", 6949 IPW_DEBUG_WX("Getting WAP BSSID: %pM\n", wrqu->ap_addr.sa_data);
6962 print_mac(mac, wrqu->ap_addr.sa_data));
6963 return 0; 6950 return 0;
6964} 6951}
6965 6952