aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wavelan_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/wavelan_cs.c')
-rw-r--r--drivers/net/wireless/wavelan_cs.c54
1 files changed, 20 insertions, 34 deletions
diff --git a/drivers/net/wireless/wavelan_cs.c b/drivers/net/wireless/wavelan_cs.c
index 9b7f44957869..577c647824fe 100644
--- a/drivers/net/wireless/wavelan_cs.c
+++ b/drivers/net/wireless/wavelan_cs.c
@@ -1042,6 +1042,7 @@ wv_82593_reconfig(struct net_device * dev)
1042static void 1042static void
1043wv_psa_show(psa_t * p) 1043wv_psa_show(psa_t * p)
1044{ 1044{
1045 DECLARE_MAC_BUF(mac);
1045 printk(KERN_DEBUG "##### wavelan psa contents: #####\n"); 1046 printk(KERN_DEBUG "##### wavelan psa contents: #####\n");
1046 printk(KERN_DEBUG "psa_io_base_addr_1: 0x%02X %02X %02X %02X\n", 1047 printk(KERN_DEBUG "psa_io_base_addr_1: 0x%02X %02X %02X %02X\n",
1047 p->psa_io_base_addr_1, 1048 p->psa_io_base_addr_1,
@@ -1055,29 +1056,13 @@ wv_psa_show(psa_t * p)
1055 printk(KERN_DEBUG "psa_holi_params: 0x%02x, ", p->psa_holi_params); 1056 printk(KERN_DEBUG "psa_holi_params: 0x%02x, ", p->psa_holi_params);
1056 printk("psa_int_req_no: %d\n", p->psa_int_req_no); 1057 printk("psa_int_req_no: %d\n", p->psa_int_req_no);
1057#ifdef DEBUG_SHOW_UNUSED 1058#ifdef DEBUG_SHOW_UNUSED
1058 printk(KERN_DEBUG "psa_unused0[]: %02X:%02X:%02X:%02X:%02X:%02X:%02X\n", 1059 printk(KERN_DEBUG "psa_unused0[]: %s\n",
1059 p->psa_unused0[0], 1060 print_mac(mac, p->psa_unused0));
1060 p->psa_unused0[1],
1061 p->psa_unused0[2],
1062 p->psa_unused0[3],
1063 p->psa_unused0[4],
1064 p->psa_unused0[5],
1065 p->psa_unused0[6]);
1066#endif /* DEBUG_SHOW_UNUSED */ 1061#endif /* DEBUG_SHOW_UNUSED */
1067 printk(KERN_DEBUG "psa_univ_mac_addr[]: %02x:%02x:%02x:%02x:%02x:%02x\n", 1062 printk(KERN_DEBUG "psa_univ_mac_addr[]: %s\n",
1068 p->psa_univ_mac_addr[0], 1063 print_mac(mac, p->psa_univ_mac_addr));
1069 p->psa_univ_mac_addr[1], 1064 printk(KERN_DEBUG "psa_local_mac_addr[]: %s\n",
1070 p->psa_univ_mac_addr[2], 1065 print_mac(mac, p->psa_local_mac_addr));
1071 p->psa_univ_mac_addr[3],
1072 p->psa_univ_mac_addr[4],
1073 p->psa_univ_mac_addr[5]);
1074 printk(KERN_DEBUG "psa_local_mac_addr[]: %02x:%02x:%02x:%02x:%02x:%02x\n",
1075 p->psa_local_mac_addr[0],
1076 p->psa_local_mac_addr[1],
1077 p->psa_local_mac_addr[2],
1078 p->psa_local_mac_addr[3],
1079 p->psa_local_mac_addr[4],
1080 p->psa_local_mac_addr[5]);
1081 printk(KERN_DEBUG "psa_univ_local_sel: %d, ", p->psa_univ_local_sel); 1066 printk(KERN_DEBUG "psa_univ_local_sel: %d, ", p->psa_univ_local_sel);
1082 printk("psa_comp_number: %d, ", p->psa_comp_number); 1067 printk("psa_comp_number: %d, ", p->psa_comp_number);
1083 printk("psa_thr_pre_set: 0x%02x\n", p->psa_thr_pre_set); 1068 printk("psa_thr_pre_set: 0x%02x\n", p->psa_thr_pre_set);
@@ -1277,11 +1262,12 @@ wv_packet_info(u_char * p, /* Packet to dump */
1277{ 1262{
1278 int i; 1263 int i;
1279 int maxi; 1264 int maxi;
1265 DECLARE_MAC_BUF(mac);
1280 1266
1281 printk(KERN_DEBUG "%s: %s(): dest %02X:%02X:%02X:%02X:%02X:%02X, length %d\n", 1267 printk(KERN_DEBUG "%s: %s(): dest %s, length %d\n",
1282 msg1, msg2, p[0], p[1], p[2], p[3], p[4], p[5], length); 1268 msg1, msg2, print_mac(mac, p), length);
1283 printk(KERN_DEBUG "%s: %s(): src %02X:%02X:%02X:%02X:%02X:%02X, type 0x%02X%02X\n", 1269 printk(KERN_DEBUG "%s: %s(): src %s, type 0x%02X%02X\n",
1284 msg1, msg2, p[6], p[7], p[8], p[9], p[10], p[11], p[12], p[13]); 1270 msg1, msg2, print_mac(mac, &p[6]), p[12], p[13]);
1285 1271
1286#ifdef DEBUG_PACKET_DUMP 1272#ifdef DEBUG_PACKET_DUMP
1287 1273
@@ -1312,7 +1298,7 @@ wv_init_info(struct net_device * dev)
1312{ 1298{
1313 kio_addr_t base = dev->base_addr; 1299 kio_addr_t base = dev->base_addr;
1314 psa_t psa; 1300 psa_t psa;
1315 int i; 1301 DECLARE_MAC_BUF(mac);
1316 1302
1317 /* Read the parameter storage area */ 1303 /* Read the parameter storage area */
1318 psa_read(dev, 0, (unsigned char *) &psa, sizeof(psa)); 1304 psa_read(dev, 0, (unsigned char *) &psa, sizeof(psa));
@@ -1329,10 +1315,10 @@ wv_init_info(struct net_device * dev)
1329 1315
1330#ifdef DEBUG_BASIC_SHOW 1316#ifdef DEBUG_BASIC_SHOW
1331 /* Now, let's go for the basic stuff */ 1317 /* Now, let's go for the basic stuff */
1332 printk(KERN_NOTICE "%s: WaveLAN: port %#lx, irq %d, hw_addr", 1318 printk(KERN_NOTICE "%s: WaveLAN: port %#lx, irq %d, "
1333 dev->name, base, dev->irq); 1319 "hw_addr %s",
1334 for(i = 0; i < WAVELAN_ADDR_SIZE; i++) 1320 dev->name, base, dev->irq,
1335 printk("%s%02X", (i == 0) ? " " : ":", dev->dev_addr[i]); 1321 print_mac(mac, dev->dev_addr));
1336 1322
1337 /* Print current network id */ 1323 /* Print current network id */
1338 if(psa.psa_nwid_select) 1324 if(psa.psa_nwid_select)
@@ -3691,12 +3677,12 @@ wv_82593_config(struct net_device * dev)
3691 int addrs_len = WAVELAN_ADDR_SIZE * lp->mc_count; 3677 int addrs_len = WAVELAN_ADDR_SIZE * lp->mc_count;
3692 3678
3693#ifdef DEBUG_CONFIG_INFO 3679#ifdef DEBUG_CONFIG_INFO
3680 DECLARE_MAC_BUF(mac);
3694 printk(KERN_DEBUG "%s: wv_hw_config(): set %d multicast addresses:\n", 3681 printk(KERN_DEBUG "%s: wv_hw_config(): set %d multicast addresses:\n",
3695 dev->name, lp->mc_count); 3682 dev->name, lp->mc_count);
3696 for(dmi=dev->mc_list; dmi; dmi=dmi->next) 3683 for(dmi=dev->mc_list; dmi; dmi=dmi->next)
3697 printk(KERN_DEBUG " %02x:%02x:%02x:%02x:%02x:%02x\n", 3684 printk(KERN_DEBUG " %s\n",
3698 dmi->dmi_addr[0], dmi->dmi_addr[1], dmi->dmi_addr[2], 3685 print_mac(mac, dmi->dmi_addr));
3699 dmi->dmi_addr[3], dmi->dmi_addr[4], dmi->dmi_addr[5] );
3700#endif 3686#endif
3701 3687
3702 /* Initialize adapter's ethernet multicast addresses */ 3688 /* Initialize adapter's ethernet multicast addresses */