diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ar9170/main.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/b43/main.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/assoc.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/mwl8k.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251_main.c | 5 |
7 files changed, 9 insertions, 23 deletions
diff --git a/drivers/net/wireless/ath/ar9170/main.c b/drivers/net/wireless/ath/ar9170/main.c index cfe6fc78067a..c7287a883a48 100644 --- a/drivers/net/wireless/ath/ar9170/main.c +++ b/drivers/net/wireless/ath/ar9170/main.c | |||
@@ -2628,7 +2628,6 @@ static int ar9170_read_eeprom(struct ar9170 *ar) | |||
2628 | { | 2628 | { |
2629 | #define RW 8 /* number of words to read at once */ | 2629 | #define RW 8 /* number of words to read at once */ |
2630 | #define RB (sizeof(u32) * RW) | 2630 | #define RB (sizeof(u32) * RW) |
2631 | DECLARE_MAC_BUF(mbuf); | ||
2632 | u8 *eeprom = (void *)&ar->eeprom; | 2631 | u8 *eeprom = (void *)&ar->eeprom; |
2633 | u8 *addr = ar->eeprom.mac_address; | 2632 | u8 *addr = ar->eeprom.mac_address; |
2634 | __le32 offsets[RW]; | 2633 | __le32 offsets[RW]; |
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index e71c8d9cd706..3f4360ad0e4e 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -938,7 +938,6 @@ static void b43_clear_keys(struct b43_wldev *dev) | |||
938 | static void b43_dump_keymemory(struct b43_wldev *dev) | 938 | static void b43_dump_keymemory(struct b43_wldev *dev) |
939 | { | 939 | { |
940 | unsigned int i, index, offset; | 940 | unsigned int i, index, offset; |
941 | DECLARE_MAC_BUF(macbuf); | ||
942 | u8 mac[ETH_ALEN]; | 941 | u8 mac[ETH_ALEN]; |
943 | u16 algo; | 942 | u16 algo; |
944 | u32 rcmta0; | 943 | u32 rcmta0; |
@@ -973,8 +972,7 @@ static void b43_dump_keymemory(struct b43_wldev *dev) | |||
973 | ((index - 4) * 2) + 1); | 972 | ((index - 4) * 2) + 1); |
974 | *((__le32 *)(&mac[0])) = cpu_to_le32(rcmta0); | 973 | *((__le32 *)(&mac[0])) = cpu_to_le32(rcmta0); |
975 | *((__le16 *)(&mac[4])) = cpu_to_le16(rcmta1); | 974 | *((__le16 *)(&mac[4])) = cpu_to_le16(rcmta1); |
976 | printk(" MAC: %s", | 975 | printk(" MAC: %pM", mac); |
977 | print_mac(macbuf, mac)); | ||
978 | } else | 976 | } else |
979 | printk(" DEFAULT KEY"); | 977 | printk(" DEFAULT KEY"); |
980 | printk("\n"); | 978 | printk("\n"); |
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c index fbf26499c9a9..385b50f4b105 100644 --- a/drivers/net/wireless/libertas/assoc.c +++ b/drivers/net/wireless/libertas/assoc.c | |||
@@ -129,7 +129,6 @@ static int lbs_set_authentication(struct lbs_private *priv, u8 bssid[6], u8 auth | |||
129 | { | 129 | { |
130 | struct cmd_ds_802_11_authenticate cmd; | 130 | struct cmd_ds_802_11_authenticate cmd; |
131 | int ret = -1; | 131 | int ret = -1; |
132 | DECLARE_MAC_BUF(mac); | ||
133 | 132 | ||
134 | lbs_deb_enter(LBS_DEB_JOIN); | 133 | lbs_deb_enter(LBS_DEB_JOIN); |
135 | 134 | ||
@@ -138,8 +137,7 @@ static int lbs_set_authentication(struct lbs_private *priv, u8 bssid[6], u8 auth | |||
138 | 137 | ||
139 | cmd.authtype = iw_auth_to_ieee_auth(auth); | 138 | cmd.authtype = iw_auth_to_ieee_auth(auth); |
140 | 139 | ||
141 | lbs_deb_join("AUTH_CMD: BSSID %s, auth 0x%x\n", | 140 | lbs_deb_join("AUTH_CMD: BSSID %pM, auth 0x%x\n", bssid, cmd.authtype); |
142 | print_mac(mac, bssid), cmd.authtype); | ||
143 | 141 | ||
144 | ret = lbs_cmd_with_response(priv, CMD_802_11_AUTHENTICATE, &cmd); | 142 | ret = lbs_cmd_with_response(priv, CMD_802_11_AUTHENTICATE, &cmd); |
145 | 143 | ||
@@ -342,8 +340,6 @@ static int lbs_associate(struct lbs_private *priv, | |||
342 | 340 | ||
343 | /* Firmware v9+ indicate authentication suites as a TLV */ | 341 | /* Firmware v9+ indicate authentication suites as a TLV */ |
344 | if (priv->fwrelease >= 0x09000000) { | 342 | if (priv->fwrelease >= 0x09000000) { |
345 | DECLARE_MAC_BUF(mac); | ||
346 | |||
347 | auth = (struct mrvl_ie_auth_type *) pos; | 343 | auth = (struct mrvl_ie_auth_type *) pos; |
348 | auth->header.type = cpu_to_le16(TLV_TYPE_AUTH_TYPE); | 344 | auth->header.type = cpu_to_le16(TLV_TYPE_AUTH_TYPE); |
349 | auth->header.len = cpu_to_le16(2); | 345 | auth->header.len = cpu_to_le16(2); |
@@ -351,8 +347,8 @@ static int lbs_associate(struct lbs_private *priv, | |||
351 | auth->auth = cpu_to_le16(tmpauth); | 347 | auth->auth = cpu_to_le16(tmpauth); |
352 | pos += sizeof(auth->header) + 2; | 348 | pos += sizeof(auth->header) + 2; |
353 | 349 | ||
354 | lbs_deb_join("AUTH_CMD: BSSID %s, auth 0x%x\n", | 350 | lbs_deb_join("AUTH_CMD: BSSID %pM, auth 0x%x\n", |
355 | print_mac(mac, bss->bssid), priv->secinfo.auth_mode); | 351 | bss->bssid, priv->secinfo.auth_mode); |
356 | } | 352 | } |
357 | 353 | ||
358 | /* WPA/WPA2 IEs */ | 354 | /* WPA/WPA2 IEs */ |
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 78431abc8b40..930f5c7da4a6 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -837,7 +837,6 @@ static void hwsim_send_ps_poll(void *dat, u8 *mac, struct ieee80211_vif *vif) | |||
837 | { | 837 | { |
838 | struct mac80211_hwsim_data *data = dat; | 838 | struct mac80211_hwsim_data *data = dat; |
839 | struct hwsim_vif_priv *vp = (void *)vif->drv_priv; | 839 | struct hwsim_vif_priv *vp = (void *)vif->drv_priv; |
840 | DECLARE_MAC_BUF(buf); | ||
841 | struct sk_buff *skb; | 840 | struct sk_buff *skb; |
842 | struct ieee80211_pspoll *pspoll; | 841 | struct ieee80211_pspoll *pspoll; |
843 | 842 | ||
@@ -867,7 +866,6 @@ static void hwsim_send_nullfunc(struct mac80211_hwsim_data *data, u8 *mac, | |||
867 | struct ieee80211_vif *vif, int ps) | 866 | struct ieee80211_vif *vif, int ps) |
868 | { | 867 | { |
869 | struct hwsim_vif_priv *vp = (void *)vif->drv_priv; | 868 | struct hwsim_vif_priv *vp = (void *)vif->drv_priv; |
870 | DECLARE_MAC_BUF(buf); | ||
871 | struct sk_buff *skb; | 869 | struct sk_buff *skb; |
872 | struct ieee80211_hdr *hdr; | 870 | struct ieee80211_hdr *hdr; |
873 | 871 | ||
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index b9eded88c322..4f725473fb73 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c | |||
@@ -2271,7 +2271,6 @@ static int mwl8k_cmd_update_sta_db(struct ieee80211_hw *hw, | |||
2271 | struct mwl8k_cmd_update_sta_db *cmd; | 2271 | struct mwl8k_cmd_update_sta_db *cmd; |
2272 | struct peer_capability_info *peer_info; | 2272 | struct peer_capability_info *peer_info; |
2273 | struct ieee80211_rate *bitrates = mv_vif->legacy_rates; | 2273 | struct ieee80211_rate *bitrates = mv_vif->legacy_rates; |
2274 | DECLARE_MAC_BUF(mac); | ||
2275 | int rc; | 2274 | int rc; |
2276 | __u8 count, *rates; | 2275 | __u8 count, *rates; |
2277 | 2276 | ||
@@ -3480,7 +3479,6 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev, | |||
3480 | { | 3479 | { |
3481 | struct ieee80211_hw *hw; | 3480 | struct ieee80211_hw *hw; |
3482 | struct mwl8k_priv *priv; | 3481 | struct mwl8k_priv *priv; |
3483 | DECLARE_MAC_BUF(mac); | ||
3484 | int rc; | 3482 | int rc; |
3485 | int i; | 3483 | int i; |
3486 | u8 *fw; | 3484 | u8 *fw; |
@@ -3669,8 +3667,8 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev, | |||
3669 | MWL8K_DESC); | 3667 | MWL8K_DESC); |
3670 | printk(KERN_INFO "%s: Driver Ver:%s Firmware Ver:%u.%u.%u.%u\n", | 3668 | printk(KERN_INFO "%s: Driver Ver:%s Firmware Ver:%u.%u.%u.%u\n", |
3671 | priv->name, MWL8K_VERSION, fw[3], fw[2], fw[1], fw[0]); | 3669 | priv->name, MWL8K_VERSION, fw[3], fw[2], fw[1], fw[0]); |
3672 | printk(KERN_INFO "%s: MAC Address: %s\n", priv->name, | 3670 | printk(KERN_INFO "%s: MAC Address: %pM\n", priv->name, |
3673 | print_mac(mac, hw->wiphy->perm_addr)); | 3671 | hw->wiphy->perm_addr); |
3674 | 3672 | ||
3675 | return 0; | 3673 | return 0; |
3676 | 3674 | ||
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 66e001c392b0..f35b3d6649c8 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -2220,10 +2220,8 @@ static int rt2800usb_validate_eeprom(struct rt2x00_dev *rt2x00dev) | |||
2220 | */ | 2220 | */ |
2221 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); | 2221 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); |
2222 | if (!is_valid_ether_addr(mac)) { | 2222 | if (!is_valid_ether_addr(mac)) { |
2223 | DECLARE_MAC_BUF(macbuf); | ||
2224 | |||
2225 | random_ether_addr(mac); | 2223 | random_ether_addr(mac); |
2226 | EEPROM(rt2x00dev, "MAC: %s\n", print_mac(macbuf, mac)); | 2224 | EEPROM(rt2x00dev, "MAC: %pM\n", mac); |
2227 | } | 2225 | } |
2228 | 2226 | ||
2229 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); | 2227 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); |
diff --git a/drivers/net/wireless/wl12xx/wl1251_main.c b/drivers/net/wireless/wl12xx/wl1251_main.c index 106b0f265192..509cbef5e271 100644 --- a/drivers/net/wireless/wl12xx/wl1251_main.c +++ b/drivers/net/wireless/wl12xx/wl1251_main.c | |||
@@ -435,11 +435,10 @@ static int wl1251_op_add_interface(struct ieee80211_hw *hw, | |||
435 | struct ieee80211_if_init_conf *conf) | 435 | struct ieee80211_if_init_conf *conf) |
436 | { | 436 | { |
437 | struct wl1251 *wl = hw->priv; | 437 | struct wl1251 *wl = hw->priv; |
438 | DECLARE_MAC_BUF(mac); | ||
439 | int ret = 0; | 438 | int ret = 0; |
440 | 439 | ||
441 | wl1251_debug(DEBUG_MAC80211, "mac80211 add interface type %d mac %s", | 440 | wl1251_debug(DEBUG_MAC80211, "mac80211 add interface type %d mac %pM", |
442 | conf->type, print_mac(mac, conf->mac_addr)); | 441 | conf->type, conf->mac_addr); |
443 | 442 | ||
444 | mutex_lock(&wl->mutex); | 443 | mutex_lock(&wl->mutex); |
445 | 444 | ||