diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-23 14:47:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-23 14:47:02 -0400 |
commit | 5f05647dd81c11a6a165ccc8f0c1370b16f3bcb0 (patch) | |
tree | 7851ef1c93aa1aba7ef327ca4b75fd35e6d10f29 /drivers/net/wireless/airo.c | |
parent | 02f36038c568111ad4fc433f6fa760ff5e38fab4 (diff) | |
parent | ec37a48d1d16c30b655ac5280209edf52a6775d4 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1699 commits)
bnx2/bnx2x: Unsupported Ethtool operations should return -EINVAL.
vlan: Calling vlan_hwaccel_do_receive() is always valid.
tproxy: use the interface primary IP address as a default value for --on-ip
tproxy: added IPv6 support to the socket match
cxgb3: function namespace cleanup
tproxy: added IPv6 support to the TPROXY target
tproxy: added IPv6 socket lookup function to nf_tproxy_core
be2net: Changes to use only priority codes allowed by f/w
tproxy: allow non-local binds of IPv6 sockets if IP_TRANSPARENT is enabled
tproxy: added tproxy sockopt interface in the IPV6 layer
tproxy: added udp6_lib_lookup function
tproxy: added const specifiers to udp lookup functions
tproxy: split off ipv6 defragmentation to a separate module
l2tp: small cleanup
nf_nat: restrict ICMP translation for embedded header
can: mcp251x: fix generation of error frames
can: mcp251x: fix endless loop in interrupt handler if CANINTF_MERRF is set
can-raw: add msg_flags to distinguish local traffic
9p: client code cleanup
rds: make local functions/variables static
...
Fix up conflicts in net/core/dev.c, drivers/net/pcmcia/smc91c92_cs.c and
drivers/net/wireless/ath/ath9k/debug.c as per David
Diffstat (limited to 'drivers/net/wireless/airo.c')
-rw-r--r-- | drivers/net/wireless/airo.c | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index ce77575e88b3..a36e7870b03e 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 |
108 | static char *statsLabels[] = { | 108 | static const char *statsLabels[] = { |
109 | "RxOverrun", | 109 | "RxOverrun", |
110 | IGNLABEL("RxPlcpCrcErr"), | 110 | IGNLABEL("RxPlcpCrcErr"), |
111 | IGNLABEL("RxPlcpFormatErr"), | 111 | IGNLABEL("RxPlcpFormatErr"), |
@@ -217,7 +217,6 @@ static char *statsLabels[] = { | |||
217 | (no spaces) list of rates (up to 8). */ | 217 | (no spaces) list of rates (up to 8). */ |
218 | 218 | ||
219 | static int rates[8]; | 219 | static int rates[8]; |
220 | static int basic_rate; | ||
221 | static char *ssids[3]; | 220 | static char *ssids[3]; |
222 | 221 | ||
223 | static int io[4]; | 222 | static int io[4]; |
@@ -250,7 +249,6 @@ MODULE_LICENSE("Dual BSD/GPL"); | |||
250 | MODULE_SUPPORTED_DEVICE("Aironet 4500, 4800 and Cisco 340/350"); | 249 | MODULE_SUPPORTED_DEVICE("Aironet 4500, 4800 and Cisco 340/350"); |
251 | module_param_array(io, int, NULL, 0); | 250 | module_param_array(io, int, NULL, 0); |
252 | module_param_array(irq, int, NULL, 0); | 251 | module_param_array(irq, int, NULL, 0); |
253 | module_param(basic_rate, int, 0); | ||
254 | module_param_array(rates, int, NULL, 0); | 252 | module_param_array(rates, int, NULL, 0); |
255 | module_param_array(ssids, charp, NULL, 0); | 253 | module_param_array(ssids, charp, NULL, 0); |
256 | module_param(auto_wep, int, 0); | 254 | module_param(auto_wep, int, 0); |
@@ -932,7 +930,7 @@ typedef struct aironet_ioctl { | |||
932 | unsigned char __user *data; // d-data | 930 | unsigned char __user *data; // d-data |
933 | } aironet_ioctl; | 931 | } aironet_ioctl; |
934 | 932 | ||
935 | static char swversion[] = "2.1"; | 933 | static const char swversion[] = "2.1"; |
936 | #endif /* CISCO_EXT */ | 934 | #endif /* CISCO_EXT */ |
937 | 935 | ||
938 | #define NUM_MODULES 2 | 936 | #define NUM_MODULES 2 |
@@ -1374,7 +1372,7 @@ static int micsetup(struct airo_info *ai) { | |||
1374 | return SUCCESS; | 1372 | return SUCCESS; |
1375 | } | 1373 | } |
1376 | 1374 | ||
1377 | static char micsnap[] = {0xAA,0xAA,0x03,0x00,0x40,0x96,0x00,0x02}; | 1375 | static const u8 micsnap[] = {0xAA,0xAA,0x03,0x00,0x40,0x96,0x00,0x02}; |
1378 | 1376 | ||
1379 | /*=========================================================================== | 1377 | /*=========================================================================== |
1380 | * Description: Mic a packet | 1378 | * Description: Mic a packet |
@@ -2723,9 +2721,8 @@ static int airo_networks_allocate(struct airo_info *ai) | |||
2723 | if (ai->networks) | 2721 | if (ai->networks) |
2724 | return 0; | 2722 | return 0; |
2725 | 2723 | ||
2726 | ai->networks = | 2724 | ai->networks = kcalloc(AIRO_MAX_NETWORK_COUNT, sizeof(BSSListElement), |
2727 | kzalloc(AIRO_MAX_NETWORK_COUNT * sizeof(BSSListElement), | 2725 | GFP_KERNEL); |
2728 | GFP_KERNEL); | ||
2729 | if (!ai->networks) { | 2726 | if (!ai->networks) { |
2730 | airo_print_warn("", "Out of memory allocating beacons"); | 2727 | airo_print_warn("", "Out of memory allocating beacons"); |
2731 | return -ENOMEM; | 2728 | return -ENOMEM; |
@@ -3884,15 +3881,6 @@ static u16 setup_card(struct airo_info *ai, u8 *mac, int lock) | |||
3884 | ai->config.rates[i] = rates[i]; | 3881 | ai->config.rates[i] = rates[i]; |
3885 | } | 3882 | } |
3886 | } | 3883 | } |
3887 | if ( basic_rate > 0 ) { | ||
3888 | for( i = 0; i < 8; i++ ) { | ||
3889 | if ( ai->config.rates[i] == basic_rate || | ||
3890 | !ai->config.rates ) { | ||
3891 | ai->config.rates[i] = basic_rate | 0x80; | ||
3892 | break; | ||
3893 | } | ||
3894 | } | ||
3895 | } | ||
3896 | set_bit (FLAG_COMMIT, &ai->flags); | 3884 | set_bit (FLAG_COMMIT, &ai->flags); |
3897 | } | 3885 | } |
3898 | 3886 | ||
@@ -5032,7 +5020,7 @@ static void proc_config_on_close(struct inode *inode, struct file *file) | |||
5032 | airo_config_commit(dev, NULL, NULL, NULL); | 5020 | airo_config_commit(dev, NULL, NULL, NULL); |
5033 | } | 5021 | } |
5034 | 5022 | ||
5035 | static char *get_rmode(__le16 mode) | 5023 | static const char *get_rmode(__le16 mode) |
5036 | { | 5024 | { |
5037 | switch(mode & RXMODE_MASK) { | 5025 | switch(mode & RXMODE_MASK) { |
5038 | case RXMODE_RFMON: return "rfmon"; | 5026 | case RXMODE_RFMON: return "rfmon"; |