diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-27 18:59:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-27 20:06:18 -0400 |
commit | e174961ca1a0b28f7abf0be47973ad57cb74e5f0 (patch) | |
tree | e8f74ecd420a0e380a71670e5aec5c2a0c15640a /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | 0c68ae2605dbcf67414d8d1f19af93be44b355fb (diff) |
net: convert print_mac to %pM
This converts pretty much everything to print_mac. There were
a few things that had conflicts which I have just dropped for
now, no harm done.
I've built an allyesconfig with this and looked at the files
that weren't built very carefully, but it's a huge patch.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 47 |
1 files changed, 17 insertions, 30 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 24a1aeb6448f..2af9a14446e4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -239,7 +239,6 @@ static int iwl4965_commit_rxon(struct iwl_priv *priv) | |||
239 | { | 239 | { |
240 | /* cast away the const for active_rxon in this function */ | 240 | /* cast away the const for active_rxon in this function */ |
241 | struct iwl_rxon_cmd *active_rxon = (void *)&priv->active_rxon; | 241 | struct iwl_rxon_cmd *active_rxon = (void *)&priv->active_rxon; |
242 | DECLARE_MAC_BUF(mac); | ||
243 | int ret; | 242 | int ret; |
244 | bool new_assoc = | 243 | bool new_assoc = |
245 | !!(priv->staging_rxon.filter_flags & RXON_FILTER_ASSOC_MSK); | 244 | !!(priv->staging_rxon.filter_flags & RXON_FILTER_ASSOC_MSK); |
@@ -300,10 +299,10 @@ static int iwl4965_commit_rxon(struct iwl_priv *priv) | |||
300 | IWL_DEBUG_INFO("Sending RXON\n" | 299 | IWL_DEBUG_INFO("Sending RXON\n" |
301 | "* with%s RXON_FILTER_ASSOC_MSK\n" | 300 | "* with%s RXON_FILTER_ASSOC_MSK\n" |
302 | "* channel = %d\n" | 301 | "* channel = %d\n" |
303 | "* bssid = %s\n", | 302 | "* bssid = %pM\n", |
304 | (new_assoc ? "" : "out"), | 303 | (new_assoc ? "" : "out"), |
305 | le16_to_cpu(priv->staging_rxon.channel), | 304 | le16_to_cpu(priv->staging_rxon.channel), |
306 | print_mac(mac, priv->staging_rxon.bssid_addr)); | 305 | priv->staging_rxon.bssid_addr); |
307 | 306 | ||
308 | iwl4965_set_rxon_hwcrypto(priv, !priv->hw_params.sw_crypto); | 307 | iwl4965_set_rxon_hwcrypto(priv, !priv->hw_params.sw_crypto); |
309 | 308 | ||
@@ -1464,7 +1463,6 @@ void iwl_rx_handle(struct iwl_priv *priv) | |||
1464 | static void iwl4965_print_rx_config_cmd(struct iwl_priv *priv) | 1463 | static void iwl4965_print_rx_config_cmd(struct iwl_priv *priv) |
1465 | { | 1464 | { |
1466 | struct iwl_rxon_cmd *rxon = &priv->staging_rxon; | 1465 | struct iwl_rxon_cmd *rxon = &priv->staging_rxon; |
1467 | DECLARE_MAC_BUF(mac); | ||
1468 | 1466 | ||
1469 | IWL_DEBUG_RADIO("RX CONFIG:\n"); | 1467 | IWL_DEBUG_RADIO("RX CONFIG:\n"); |
1470 | iwl_print_hex_dump(priv, IWL_DL_RADIO, (u8 *) rxon, sizeof(*rxon)); | 1468 | iwl_print_hex_dump(priv, IWL_DL_RADIO, (u8 *) rxon, sizeof(*rxon)); |
@@ -1476,10 +1474,8 @@ static void iwl4965_print_rx_config_cmd(struct iwl_priv *priv) | |||
1476 | IWL_DEBUG_RADIO("u8 ofdm_basic_rates: 0x%02x\n", | 1474 | IWL_DEBUG_RADIO("u8 ofdm_basic_rates: 0x%02x\n", |
1477 | rxon->ofdm_basic_rates); | 1475 | rxon->ofdm_basic_rates); |
1478 | IWL_DEBUG_RADIO("u8 cck_basic_rates: 0x%02x\n", rxon->cck_basic_rates); | 1476 | IWL_DEBUG_RADIO("u8 cck_basic_rates: 0x%02x\n", rxon->cck_basic_rates); |
1479 | IWL_DEBUG_RADIO("u8[6] node_addr: %s\n", | 1477 | IWL_DEBUG_RADIO("u8[6] node_addr: %pM\n", rxon->node_addr); |
1480 | print_mac(mac, rxon->node_addr)); | 1478 | IWL_DEBUG_RADIO("u8[6] bssid_addr: %pM\n", rxon->bssid_addr); |
1481 | IWL_DEBUG_RADIO("u8[6] bssid_addr: %s\n", | ||
1482 | print_mac(mac, rxon->bssid_addr)); | ||
1483 | IWL_DEBUG_RADIO("u16 assoc_id: 0x%x\n", le16_to_cpu(rxon->assoc_id)); | 1479 | IWL_DEBUG_RADIO("u16 assoc_id: 0x%x\n", le16_to_cpu(rxon->assoc_id)); |
1484 | } | 1480 | } |
1485 | #endif | 1481 | #endif |
@@ -2466,7 +2462,6 @@ static void iwl4965_post_associate(struct iwl_priv *priv) | |||
2466 | { | 2462 | { |
2467 | struct ieee80211_conf *conf = NULL; | 2463 | struct ieee80211_conf *conf = NULL; |
2468 | int ret = 0; | 2464 | int ret = 0; |
2469 | DECLARE_MAC_BUF(mac); | ||
2470 | unsigned long flags; | 2465 | unsigned long flags; |
2471 | 2466 | ||
2472 | if (priv->iw_mode == NL80211_IFTYPE_AP) { | 2467 | if (priv->iw_mode == NL80211_IFTYPE_AP) { |
@@ -2474,9 +2469,8 @@ static void iwl4965_post_associate(struct iwl_priv *priv) | |||
2474 | return; | 2469 | return; |
2475 | } | 2470 | } |
2476 | 2471 | ||
2477 | IWL_DEBUG_ASSOC("Associated as %d to: %s\n", | 2472 | IWL_DEBUG_ASSOC("Associated as %d to: %pM\n", |
2478 | priv->assoc_id, | 2473 | priv->assoc_id, priv->active_rxon.bssid_addr); |
2479 | print_mac(mac, priv->active_rxon.bssid_addr)); | ||
2480 | 2474 | ||
2481 | 2475 | ||
2482 | if (test_bit(STATUS_EXIT_PENDING, &priv->status)) | 2476 | if (test_bit(STATUS_EXIT_PENDING, &priv->status)) |
@@ -2722,7 +2716,6 @@ static int iwl4965_mac_add_interface(struct ieee80211_hw *hw, | |||
2722 | { | 2716 | { |
2723 | struct iwl_priv *priv = hw->priv; | 2717 | struct iwl_priv *priv = hw->priv; |
2724 | unsigned long flags; | 2718 | unsigned long flags; |
2725 | DECLARE_MAC_BUF(mac); | ||
2726 | 2719 | ||
2727 | IWL_DEBUG_MAC80211("enter: type %d\n", conf->type); | 2720 | IWL_DEBUG_MAC80211("enter: type %d\n", conf->type); |
2728 | 2721 | ||
@@ -2739,7 +2732,7 @@ static int iwl4965_mac_add_interface(struct ieee80211_hw *hw, | |||
2739 | mutex_lock(&priv->mutex); | 2732 | mutex_lock(&priv->mutex); |
2740 | 2733 | ||
2741 | if (conf->mac_addr) { | 2734 | if (conf->mac_addr) { |
2742 | IWL_DEBUG_MAC80211("Set %s\n", print_mac(mac, conf->mac_addr)); | 2735 | IWL_DEBUG_MAC80211("Set %pM\n", conf->mac_addr); |
2743 | memcpy(priv->mac_addr, conf->mac_addr, ETH_ALEN); | 2736 | memcpy(priv->mac_addr, conf->mac_addr, ETH_ALEN); |
2744 | } | 2737 | } |
2745 | 2738 | ||
@@ -2948,7 +2941,6 @@ static int iwl4965_mac_config_interface(struct ieee80211_hw *hw, | |||
2948 | struct ieee80211_if_conf *conf) | 2941 | struct ieee80211_if_conf *conf) |
2949 | { | 2942 | { |
2950 | struct iwl_priv *priv = hw->priv; | 2943 | struct iwl_priv *priv = hw->priv; |
2951 | DECLARE_MAC_BUF(mac); | ||
2952 | unsigned long flags; | 2944 | unsigned long flags; |
2953 | int rc; | 2945 | int rc; |
2954 | 2946 | ||
@@ -2983,8 +2975,7 @@ static int iwl4965_mac_config_interface(struct ieee80211_hw *hw, | |||
2983 | mutex_lock(&priv->mutex); | 2975 | mutex_lock(&priv->mutex); |
2984 | 2976 | ||
2985 | if (conf->bssid) | 2977 | if (conf->bssid) |
2986 | IWL_DEBUG_MAC80211("bssid: %s\n", | 2978 | IWL_DEBUG_MAC80211("bssid: %pM\n", conf->bssid); |
2987 | print_mac(mac, conf->bssid)); | ||
2988 | 2979 | ||
2989 | /* | 2980 | /* |
2990 | * very dubious code was here; the probe filtering flag is never set: | 2981 | * very dubious code was here; the probe filtering flag is never set: |
@@ -2997,8 +2988,8 @@ static int iwl4965_mac_config_interface(struct ieee80211_hw *hw, | |||
2997 | if (!conf->bssid) { | 2988 | if (!conf->bssid) { |
2998 | conf->bssid = priv->mac_addr; | 2989 | conf->bssid = priv->mac_addr; |
2999 | memcpy(priv->bssid, priv->mac_addr, ETH_ALEN); | 2990 | memcpy(priv->bssid, priv->mac_addr, ETH_ALEN); |
3000 | IWL_DEBUG_MAC80211("bssid was set to: %s\n", | 2991 | IWL_DEBUG_MAC80211("bssid was set to: %pM\n", |
3001 | print_mac(mac, conf->bssid)); | 2992 | conf->bssid); |
3002 | } | 2993 | } |
3003 | if (priv->ibss_beacon) | 2994 | if (priv->ibss_beacon) |
3004 | dev_kfree_skb(priv->ibss_beacon); | 2995 | dev_kfree_skb(priv->ibss_beacon); |
@@ -3241,14 +3232,13 @@ static void iwl4965_mac_update_tkip_key(struct ieee80211_hw *hw, | |||
3241 | unsigned long flags; | 3232 | unsigned long flags; |
3242 | __le16 key_flags = 0; | 3233 | __le16 key_flags = 0; |
3243 | int i; | 3234 | int i; |
3244 | DECLARE_MAC_BUF(mac); | ||
3245 | 3235 | ||
3246 | IWL_DEBUG_MAC80211("enter\n"); | 3236 | IWL_DEBUG_MAC80211("enter\n"); |
3247 | 3237 | ||
3248 | sta_id = iwl_find_station(priv, addr); | 3238 | sta_id = iwl_find_station(priv, addr); |
3249 | if (sta_id == IWL_INVALID_STATION) { | 3239 | if (sta_id == IWL_INVALID_STATION) { |
3250 | IWL_DEBUG_MAC80211("leave - %s not in station map.\n", | 3240 | IWL_DEBUG_MAC80211("leave - %pM not in station map.\n", |
3251 | print_mac(mac, addr)); | 3241 | addr); |
3252 | return; | 3242 | return; |
3253 | } | 3243 | } |
3254 | 3244 | ||
@@ -3285,7 +3275,6 @@ static int iwl4965_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
3285 | struct ieee80211_key_conf *key) | 3275 | struct ieee80211_key_conf *key) |
3286 | { | 3276 | { |
3287 | struct iwl_priv *priv = hw->priv; | 3277 | struct iwl_priv *priv = hw->priv; |
3288 | DECLARE_MAC_BUF(mac); | ||
3289 | int ret = 0; | 3278 | int ret = 0; |
3290 | u8 sta_id = IWL_INVALID_STATION; | 3279 | u8 sta_id = IWL_INVALID_STATION; |
3291 | u8 is_default_wep_key = 0; | 3280 | u8 is_default_wep_key = 0; |
@@ -3303,8 +3292,8 @@ static int iwl4965_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
3303 | 3292 | ||
3304 | sta_id = iwl_find_station(priv, addr); | 3293 | sta_id = iwl_find_station(priv, addr); |
3305 | if (sta_id == IWL_INVALID_STATION) { | 3294 | if (sta_id == IWL_INVALID_STATION) { |
3306 | IWL_DEBUG_MAC80211("leave - %s not in station map.\n", | 3295 | IWL_DEBUG_MAC80211("leave - %pM not in station map.\n", |
3307 | print_mac(mac, addr)); | 3296 | addr); |
3308 | return -EINVAL; | 3297 | return -EINVAL; |
3309 | 3298 | ||
3310 | } | 3299 | } |
@@ -3405,10 +3394,9 @@ static int iwl4965_mac_ampdu_action(struct ieee80211_hw *hw, | |||
3405 | struct ieee80211_sta *sta, u16 tid, u16 *ssn) | 3394 | struct ieee80211_sta *sta, u16 tid, u16 *ssn) |
3406 | { | 3395 | { |
3407 | struct iwl_priv *priv = hw->priv; | 3396 | struct iwl_priv *priv = hw->priv; |
3408 | DECLARE_MAC_BUF(mac); | ||
3409 | 3397 | ||
3410 | IWL_DEBUG_HT("A-MPDU action on addr %s tid %d\n", | 3398 | IWL_DEBUG_HT("A-MPDU action on addr %pM tid %d\n", |
3411 | print_mac(mac, sta->addr), tid); | 3399 | sta->addr, tid); |
3412 | 3400 | ||
3413 | if (!(priv->cfg->sku & IWL_SKU_N)) | 3401 | if (!(priv->cfg->sku & IWL_SKU_N)) |
3414 | return -EACCES; | 3402 | return -EACCES; |
@@ -4171,7 +4159,6 @@ static int iwl4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
4171 | struct ieee80211_hw *hw; | 4159 | struct ieee80211_hw *hw; |
4172 | struct iwl_cfg *cfg = (struct iwl_cfg *)(ent->driver_data); | 4160 | struct iwl_cfg *cfg = (struct iwl_cfg *)(ent->driver_data); |
4173 | unsigned long flags; | 4161 | unsigned long flags; |
4174 | DECLARE_MAC_BUF(mac); | ||
4175 | 4162 | ||
4176 | /************************ | 4163 | /************************ |
4177 | * 1. Allocating HW data | 4164 | * 1. Allocating HW data |
@@ -4280,7 +4267,7 @@ static int iwl4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
4280 | 4267 | ||
4281 | /* extract MAC Address */ | 4268 | /* extract MAC Address */ |
4282 | iwl_eeprom_get_mac(priv, priv->mac_addr); | 4269 | iwl_eeprom_get_mac(priv, priv->mac_addr); |
4283 | IWL_DEBUG_INFO("MAC address: %s\n", print_mac(mac, priv->mac_addr)); | 4270 | IWL_DEBUG_INFO("MAC address: %pM\n", priv->mac_addr); |
4284 | SET_IEEE80211_PERM_ADDR(priv->hw, priv->mac_addr); | 4271 | SET_IEEE80211_PERM_ADDR(priv->hw, priv->mac_addr); |
4285 | 4272 | ||
4286 | /************************ | 4273 | /************************ |