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.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index 1d05445d4ba3..924ed095dd99 100644
--- a/drivers/net/wireless/airo.c
+++ b/drivers/net/wireless/airo.c
@@ -105,7 +105,7 @@ static struct pci_driver airo_driver = {
105 of statistics in the /proc filesystem */ 105 of statistics in the /proc filesystem */
106 106
107#define IGNLABEL(comment) NULL 107#define IGNLABEL(comment) NULL
108static char *statsLabels[] = { 108static const char *statsLabels[] = {
109 "RxOverrun", 109 "RxOverrun",
110 IGNLABEL("RxPlcpCrcErr"), 110 IGNLABEL("RxPlcpCrcErr"),
111 IGNLABEL("RxPlcpFormatErr"), 111 IGNLABEL("RxPlcpFormatErr"),
@@ -932,7 +932,7 @@ typedef struct aironet_ioctl {
932 unsigned char __user *data; // d-data 932 unsigned char __user *data; // d-data
933} aironet_ioctl; 933} aironet_ioctl;
934 934
935static char swversion[] = "2.1"; 935static const char swversion[] = "2.1";
936#endif /* CISCO_EXT */ 936#endif /* CISCO_EXT */
937 937
938#define NUM_MODULES 2 938#define NUM_MODULES 2
@@ -1374,7 +1374,7 @@ static int micsetup(struct airo_info *ai) {
1374 return SUCCESS; 1374 return SUCCESS;
1375} 1375}
1376 1376
1377static char micsnap[] = {0xAA,0xAA,0x03,0x00,0x40,0x96,0x00,0x02}; 1377static const u8 micsnap[] = {0xAA,0xAA,0x03,0x00,0x40,0x96,0x00,0x02};
1378 1378
1379/*=========================================================================== 1379/*===========================================================================
1380 * Description: Mic a packet 1380 * Description: Mic a packet
@@ -2723,9 +2723,8 @@ static int airo_networks_allocate(struct airo_info *ai)
2723 if (ai->networks) 2723 if (ai->networks)
2724 return 0; 2724 return 0;
2725 2725
2726 ai->networks = 2726 ai->networks = kcalloc(AIRO_MAX_NETWORK_COUNT, sizeof(BSSListElement),
2727 kzalloc(AIRO_MAX_NETWORK_COUNT * sizeof(BSSListElement), 2727 GFP_KERNEL);
2728 GFP_KERNEL);
2729 if (!ai->networks) { 2728 if (!ai->networks) {
2730 airo_print_warn("", "Out of memory allocating beacons"); 2729 airo_print_warn("", "Out of memory allocating beacons");
2731 return -ENOMEM; 2730 return -ENOMEM;
@@ -5024,7 +5023,7 @@ static void proc_config_on_close(struct inode *inode, struct file *file)
5024 airo_config_commit(dev, NULL, NULL, NULL); 5023 airo_config_commit(dev, NULL, NULL, NULL);
5025} 5024}
5026 5025
5027static char *get_rmode(__le16 mode) 5026static const char *get_rmode(__le16 mode)
5028{ 5027{
5029 switch(mode & RXMODE_MASK) { 5028 switch(mode & RXMODE_MASK) {
5030 case RXMODE_RFMON: return "rfmon"; 5029 case RXMODE_RFMON: return "rfmon";