aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/airo.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/airo.c')
-rw-r--r--drivers/net/wireless/airo.c32
1 files changed, 12 insertions, 20 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index 7d717c4d9845..95d3cd1c49a7 100644
--- a/drivers/net/wireless/airo.c
+++ b/drivers/net/wireless/airo.c
@@ -2821,6 +2821,7 @@ static struct net_device *_init_airo_card( unsigned short irq, int port,
2821 struct net_device *dev; 2821 struct net_device *dev;
2822 struct airo_info *ai; 2822 struct airo_info *ai;
2823 int i, rc; 2823 int i, rc;
2824 DECLARE_MAC_BUF(mac);
2824 2825
2825 /* Create the network device object. */ 2826 /* Create the network device object. */
2826 dev = alloc_netdev(sizeof(*ai), "", ether_setup); 2827 dev = alloc_netdev(sizeof(*ai), "", ether_setup);
@@ -2923,9 +2924,8 @@ static struct net_device *_init_airo_card( unsigned short irq, int port,
2923 goto err_out_reg; 2924 goto err_out_reg;
2924 2925
2925 set_bit(FLAG_REGISTERED,&ai->flags); 2926 set_bit(FLAG_REGISTERED,&ai->flags);
2926 airo_print_info(dev->name, "MAC enabled %x:%x:%x:%x:%x:%x", 2927 airo_print_info(dev->name, "MAC enabled %s",
2927 dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2], 2928 print_mac(mac, dev->dev_addr));
2928 dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5] );
2929 2929
2930 /* Allocate the transmit buffers */ 2930 /* Allocate the transmit buffers */
2931 if (probe && !test_bit(FLAG_MPI,&ai->flags)) 2931 if (probe && !test_bit(FLAG_MPI,&ai->flags))
@@ -2982,6 +2982,7 @@ int reset_airo_card( struct net_device *dev )
2982{ 2982{
2983 int i; 2983 int i;
2984 struct airo_info *ai = dev->priv; 2984 struct airo_info *ai = dev->priv;
2985 DECLARE_MAC_BUF(mac);
2985 2986
2986 if (reset_card (dev, 1)) 2987 if (reset_card (dev, 1))
2987 return -1; 2988 return -1;
@@ -2990,9 +2991,8 @@ int reset_airo_card( struct net_device *dev )
2990 airo_print_err(dev->name, "MAC could not be enabled"); 2991 airo_print_err(dev->name, "MAC could not be enabled");
2991 return -1; 2992 return -1;
2992 } 2993 }
2993 airo_print_info(dev->name, "MAC enabled %x:%x:%x:%x:%x:%x", 2994 airo_print_info(dev->name, "MAC enabled %s",
2994 dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2], 2995 print_mac(mac, dev->dev_addr));
2995 dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
2996 /* Allocate the transmit buffers if needed */ 2996 /* Allocate the transmit buffers if needed */
2997 if (!test_bit(FLAG_MPI,&ai->flags)) 2997 if (!test_bit(FLAG_MPI,&ai->flags))
2998 for( i = 0; i < MAX_FIDS; i++ ) 2998 for( i = 0; i < MAX_FIDS; i++ )
@@ -5426,6 +5426,7 @@ static int proc_APList_open( struct inode *inode, struct file *file ) {
5426 int i; 5426 int i;
5427 char *ptr; 5427 char *ptr;
5428 APListRid APList_rid; 5428 APListRid APList_rid;
5429 DECLARE_MAC_BUF(mac);
5429 5430
5430 if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) 5431 if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL)
5431 return -ENOMEM; 5432 return -ENOMEM;
@@ -5449,13 +5450,8 @@ static int proc_APList_open( struct inode *inode, struct file *file ) {
5449// We end when we find a zero MAC 5450// We end when we find a zero MAC
5450 if ( !*(int*)APList_rid.ap[i] && 5451 if ( !*(int*)APList_rid.ap[i] &&
5451 !*(int*)&APList_rid.ap[i][2]) break; 5452 !*(int*)&APList_rid.ap[i][2]) break;
5452 ptr += sprintf(ptr, "%02x:%02x:%02x:%02x:%02x:%02x\n", 5453 ptr += sprintf(ptr, "%s\n",
5453 (int)APList_rid.ap[i][0], 5454 print_mac(mac, APList_rid.ap[i]));
5454 (int)APList_rid.ap[i][1],
5455 (int)APList_rid.ap[i][2],
5456 (int)APList_rid.ap[i][3],
5457 (int)APList_rid.ap[i][4],
5458 (int)APList_rid.ap[i][5]);
5459 } 5455 }
5460 if (i==0) ptr += sprintf(ptr, "Not using specific APs\n"); 5456 if (i==0) ptr += sprintf(ptr, "Not using specific APs\n");
5461 5457
@@ -5474,6 +5470,7 @@ static int proc_BSSList_open( struct inode *inode, struct file *file ) {
5474 int rc; 5470 int rc;
5475 /* If doLoseSync is not 1, we won't do a Lose Sync */ 5471 /* If doLoseSync is not 1, we won't do a Lose Sync */
5476 int doLoseSync = -1; 5472 int doLoseSync = -1;
5473 DECLARE_MAC_BUF(mac);
5477 5474
5478 if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) 5475 if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL)
5479 return -ENOMEM; 5476 return -ENOMEM;
@@ -5510,13 +5507,8 @@ static int proc_BSSList_open( struct inode *inode, struct file *file ) {
5510 we have to add a spin lock... */ 5507 we have to add a spin lock... */
5511 rc = readBSSListRid(ai, doLoseSync, &BSSList_rid); 5508 rc = readBSSListRid(ai, doLoseSync, &BSSList_rid);
5512 while(rc == 0 && BSSList_rid.index != 0xffff) { 5509 while(rc == 0 && BSSList_rid.index != 0xffff) {
5513 ptr += sprintf(ptr, "%02x:%02x:%02x:%02x:%02x:%02x %*s rssi = %d", 5510 ptr += sprintf(ptr, "%s %*s rssi = %d",
5514 (int)BSSList_rid.bssid[0], 5511 print_mac(mac, BSSList_rid.bssid),
5515 (int)BSSList_rid.bssid[1],
5516 (int)BSSList_rid.bssid[2],
5517 (int)BSSList_rid.bssid[3],
5518 (int)BSSList_rid.bssid[4],
5519 (int)BSSList_rid.bssid[5],
5520 (int)BSSList_rid.ssidLen, 5512 (int)BSSList_rid.ssidLen,
5521 BSSList_rid.ssid, 5513 BSSList_rid.ssid,
5522 (int)BSSList_rid.dBm); 5514 (int)BSSList_rid.dBm);