diff options
author | Michal Marek <mmarek@suse.cz> | 2010-08-20 07:53:08 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-08-20 07:53:08 -0400 |
commit | e981b060767b3c4ac9393ad8d2558d648e35dfcb (patch) | |
tree | 9c05eaec3072be3645dda61d35085d152b9d5954 /drivers/net/wireless/airo.c | |
parent | 3c955b407a084810f57260d61548cc92c14bc627 (diff) | |
parent | da5cabf80e2433131bf0ed8993abc0f7ea618c73 (diff) |
Merge commit 'v2.6.36-rc1' into kbuild/rc-fixes
Diffstat (limited to 'drivers/net/wireless/airo.c')
-rw-r--r-- | drivers/net/wireless/airo.c | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 3b7ab20a5c54..1d05445d4ba3 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c | |||
@@ -506,20 +506,20 @@ struct WepKeyRid { | |||
506 | u8 mac[ETH_ALEN]; | 506 | u8 mac[ETH_ALEN]; |
507 | __le16 klen; | 507 | __le16 klen; |
508 | u8 key[16]; | 508 | u8 key[16]; |
509 | } __attribute__ ((packed)); | 509 | } __packed; |
510 | 510 | ||
511 | /* These structures are from the Aironet's PC4500 Developers Manual */ | 511 | /* These structures are from the Aironet's PC4500 Developers Manual */ |
512 | typedef struct Ssid Ssid; | 512 | typedef struct Ssid Ssid; |
513 | struct Ssid { | 513 | struct Ssid { |
514 | __le16 len; | 514 | __le16 len; |
515 | u8 ssid[32]; | 515 | u8 ssid[32]; |
516 | } __attribute__ ((packed)); | 516 | } __packed; |
517 | 517 | ||
518 | typedef struct SsidRid SsidRid; | 518 | typedef struct SsidRid SsidRid; |
519 | struct SsidRid { | 519 | struct SsidRid { |
520 | __le16 len; | 520 | __le16 len; |
521 | Ssid ssids[3]; | 521 | Ssid ssids[3]; |
522 | } __attribute__ ((packed)); | 522 | } __packed; |
523 | 523 | ||
524 | typedef struct ModulationRid ModulationRid; | 524 | typedef struct ModulationRid ModulationRid; |
525 | struct ModulationRid { | 525 | struct ModulationRid { |
@@ -528,7 +528,7 @@ struct ModulationRid { | |||
528 | #define MOD_DEFAULT cpu_to_le16(0) | 528 | #define MOD_DEFAULT cpu_to_le16(0) |
529 | #define MOD_CCK cpu_to_le16(1) | 529 | #define MOD_CCK cpu_to_le16(1) |
530 | #define MOD_MOK cpu_to_le16(2) | 530 | #define MOD_MOK cpu_to_le16(2) |
531 | } __attribute__ ((packed)); | 531 | } __packed; |
532 | 532 | ||
533 | typedef struct ConfigRid ConfigRid; | 533 | typedef struct ConfigRid ConfigRid; |
534 | struct ConfigRid { | 534 | struct ConfigRid { |
@@ -652,7 +652,7 @@ struct ConfigRid { | |||
652 | #define MAGIC_STAY_IN_CAM (1<<10) | 652 | #define MAGIC_STAY_IN_CAM (1<<10) |
653 | u8 magicControl; | 653 | u8 magicControl; |
654 | __le16 autoWake; | 654 | __le16 autoWake; |
655 | } __attribute__ ((packed)); | 655 | } __packed; |
656 | 656 | ||
657 | typedef struct StatusRid StatusRid; | 657 | typedef struct StatusRid StatusRid; |
658 | struct StatusRid { | 658 | struct StatusRid { |
@@ -711,20 +711,20 @@ struct StatusRid { | |||
711 | #define STAT_LEAPFAILED 91 | 711 | #define STAT_LEAPFAILED 91 |
712 | #define STAT_LEAPTIMEDOUT 92 | 712 | #define STAT_LEAPTIMEDOUT 92 |
713 | #define STAT_LEAPCOMPLETE 93 | 713 | #define STAT_LEAPCOMPLETE 93 |
714 | } __attribute__ ((packed)); | 714 | } __packed; |
715 | 715 | ||
716 | typedef struct StatsRid StatsRid; | 716 | typedef struct StatsRid StatsRid; |
717 | struct StatsRid { | 717 | struct StatsRid { |
718 | __le16 len; | 718 | __le16 len; |
719 | __le16 spacer; | 719 | __le16 spacer; |
720 | __le32 vals[100]; | 720 | __le32 vals[100]; |
721 | } __attribute__ ((packed)); | 721 | } __packed; |
722 | 722 | ||
723 | typedef struct APListRid APListRid; | 723 | typedef struct APListRid APListRid; |
724 | struct APListRid { | 724 | struct APListRid { |
725 | __le16 len; | 725 | __le16 len; |
726 | u8 ap[4][ETH_ALEN]; | 726 | u8 ap[4][ETH_ALEN]; |
727 | } __attribute__ ((packed)); | 727 | } __packed; |
728 | 728 | ||
729 | typedef struct CapabilityRid CapabilityRid; | 729 | typedef struct CapabilityRid CapabilityRid; |
730 | struct CapabilityRid { | 730 | struct CapabilityRid { |
@@ -754,7 +754,7 @@ struct CapabilityRid { | |||
754 | __le16 bootBlockVer; | 754 | __le16 bootBlockVer; |
755 | __le16 requiredHard; | 755 | __le16 requiredHard; |
756 | __le16 extSoftCap; | 756 | __le16 extSoftCap; |
757 | } __attribute__ ((packed)); | 757 | } __packed; |
758 | 758 | ||
759 | /* Only present on firmware >= 5.30.17 */ | 759 | /* Only present on firmware >= 5.30.17 */ |
760 | typedef struct BSSListRidExtra BSSListRidExtra; | 760 | typedef struct BSSListRidExtra BSSListRidExtra; |
@@ -762,7 +762,7 @@ struct BSSListRidExtra { | |||
762 | __le16 unknown[4]; | 762 | __le16 unknown[4]; |
763 | u8 fixed[12]; /* WLAN management frame */ | 763 | u8 fixed[12]; /* WLAN management frame */ |
764 | u8 iep[624]; | 764 | u8 iep[624]; |
765 | } __attribute__ ((packed)); | 765 | } __packed; |
766 | 766 | ||
767 | typedef struct BSSListRid BSSListRid; | 767 | typedef struct BSSListRid BSSListRid; |
768 | struct BSSListRid { | 768 | struct BSSListRid { |
@@ -796,7 +796,7 @@ struct BSSListRid { | |||
796 | 796 | ||
797 | /* Only present on firmware >= 5.30.17 */ | 797 | /* Only present on firmware >= 5.30.17 */ |
798 | BSSListRidExtra extra; | 798 | BSSListRidExtra extra; |
799 | } __attribute__ ((packed)); | 799 | } __packed; |
800 | 800 | ||
801 | typedef struct { | 801 | typedef struct { |
802 | BSSListRid bss; | 802 | BSSListRid bss; |
@@ -807,13 +807,13 @@ typedef struct tdsRssiEntry tdsRssiEntry; | |||
807 | struct tdsRssiEntry { | 807 | struct tdsRssiEntry { |
808 | u8 rssipct; | 808 | u8 rssipct; |
809 | u8 rssidBm; | 809 | u8 rssidBm; |
810 | } __attribute__ ((packed)); | 810 | } __packed; |
811 | 811 | ||
812 | typedef struct tdsRssiRid tdsRssiRid; | 812 | typedef struct tdsRssiRid tdsRssiRid; |
813 | struct tdsRssiRid { | 813 | struct tdsRssiRid { |
814 | u16 len; | 814 | u16 len; |
815 | tdsRssiEntry x[256]; | 815 | tdsRssiEntry x[256]; |
816 | } __attribute__ ((packed)); | 816 | } __packed; |
817 | 817 | ||
818 | typedef struct MICRid MICRid; | 818 | typedef struct MICRid MICRid; |
819 | struct MICRid { | 819 | struct MICRid { |
@@ -823,7 +823,7 @@ struct MICRid { | |||
823 | u8 multicast[16]; | 823 | u8 multicast[16]; |
824 | __le16 unicastValid; | 824 | __le16 unicastValid; |
825 | u8 unicast[16]; | 825 | u8 unicast[16]; |
826 | } __attribute__ ((packed)); | 826 | } __packed; |
827 | 827 | ||
828 | typedef struct MICBuffer MICBuffer; | 828 | typedef struct MICBuffer MICBuffer; |
829 | struct MICBuffer { | 829 | struct MICBuffer { |
@@ -841,7 +841,7 @@ struct MICBuffer { | |||
841 | } u; | 841 | } u; |
842 | __be32 mic; | 842 | __be32 mic; |
843 | __be32 seq; | 843 | __be32 seq; |
844 | } __attribute__ ((packed)); | 844 | } __packed; |
845 | 845 | ||
846 | typedef struct { | 846 | typedef struct { |
847 | u8 da[ETH_ALEN]; | 847 | u8 da[ETH_ALEN]; |
@@ -996,7 +996,7 @@ struct rx_hdr { | |||
996 | u8 rate; | 996 | u8 rate; |
997 | u8 freq; | 997 | u8 freq; |
998 | __le16 tmp[4]; | 998 | __le16 tmp[4]; |
999 | } __attribute__ ((packed)); | 999 | } __packed; |
1000 | 1000 | ||
1001 | typedef struct { | 1001 | typedef struct { |
1002 | unsigned int ctl: 15; | 1002 | unsigned int ctl: 15; |
@@ -2931,8 +2931,8 @@ err_out_res: | |||
2931 | release_region( dev->base_addr, 64 ); | 2931 | release_region( dev->base_addr, 64 ); |
2932 | err_out_nets: | 2932 | err_out_nets: |
2933 | airo_networks_free(ai); | 2933 | airo_networks_free(ai); |
2934 | del_airo_dev(ai); | ||
2935 | err_out_free: | 2934 | err_out_free: |
2935 | del_airo_dev(ai); | ||
2936 | free_netdev(dev); | 2936 | free_netdev(dev); |
2937 | return NULL; | 2937 | return NULL; |
2938 | } | 2938 | } |
@@ -4657,7 +4657,7 @@ static ssize_t proc_write( struct file *file, | |||
4657 | loff_t *offset ) | 4657 | loff_t *offset ) |
4658 | { | 4658 | { |
4659 | loff_t pos = *offset; | 4659 | loff_t pos = *offset; |
4660 | struct proc_data *priv = (struct proc_data*)file->private_data; | 4660 | struct proc_data *priv = file->private_data; |
4661 | 4661 | ||
4662 | if (!priv->wbuffer) | 4662 | if (!priv->wbuffer) |
4663 | return -EINVAL; | 4663 | return -EINVAL; |
@@ -4689,7 +4689,7 @@ static int proc_status_open(struct inode *inode, struct file *file) | |||
4689 | 4689 | ||
4690 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 4690 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
4691 | return -ENOMEM; | 4691 | return -ENOMEM; |
4692 | data = (struct proc_data *)file->private_data; | 4692 | data = file->private_data; |
4693 | if ((data->rbuffer = kmalloc( 2048, GFP_KERNEL )) == NULL) { | 4693 | if ((data->rbuffer = kmalloc( 2048, GFP_KERNEL )) == NULL) { |
4694 | kfree (file->private_data); | 4694 | kfree (file->private_data); |
4695 | return -ENOMEM; | 4695 | return -ENOMEM; |
@@ -4772,7 +4772,7 @@ static int proc_stats_rid_open( struct inode *inode, | |||
4772 | 4772 | ||
4773 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 4773 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
4774 | return -ENOMEM; | 4774 | return -ENOMEM; |
4775 | data = (struct proc_data *)file->private_data; | 4775 | data = file->private_data; |
4776 | if ((data->rbuffer = kmalloc( 4096, GFP_KERNEL )) == NULL) { | 4776 | if ((data->rbuffer = kmalloc( 4096, GFP_KERNEL )) == NULL) { |
4777 | kfree (file->private_data); | 4777 | kfree (file->private_data); |
4778 | return -ENOMEM; | 4778 | return -ENOMEM; |
@@ -5045,7 +5045,7 @@ static int proc_config_open(struct inode *inode, struct file *file) | |||
5045 | 5045 | ||
5046 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 5046 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
5047 | return -ENOMEM; | 5047 | return -ENOMEM; |
5048 | data = (struct proc_data *)file->private_data; | 5048 | data = file->private_data; |
5049 | if ((data->rbuffer = kmalloc( 2048, GFP_KERNEL )) == NULL) { | 5049 | if ((data->rbuffer = kmalloc( 2048, GFP_KERNEL )) == NULL) { |
5050 | kfree (file->private_data); | 5050 | kfree (file->private_data); |
5051 | return -ENOMEM; | 5051 | return -ENOMEM; |
@@ -5127,7 +5127,7 @@ static int proc_config_open(struct inode *inode, struct file *file) | |||
5127 | 5127 | ||
5128 | static void proc_SSID_on_close(struct inode *inode, struct file *file) | 5128 | static void proc_SSID_on_close(struct inode *inode, struct file *file) |
5129 | { | 5129 | { |
5130 | struct proc_data *data = (struct proc_data *)file->private_data; | 5130 | struct proc_data *data = file->private_data; |
5131 | struct proc_dir_entry *dp = PDE(inode); | 5131 | struct proc_dir_entry *dp = PDE(inode); |
5132 | struct net_device *dev = dp->data; | 5132 | struct net_device *dev = dp->data; |
5133 | struct airo_info *ai = dev->ml_priv; | 5133 | struct airo_info *ai = dev->ml_priv; |
@@ -5163,7 +5163,7 @@ static void proc_SSID_on_close(struct inode *inode, struct file *file) | |||
5163 | } | 5163 | } |
5164 | 5164 | ||
5165 | static void proc_APList_on_close( struct inode *inode, struct file *file ) { | 5165 | static void proc_APList_on_close( struct inode *inode, struct file *file ) { |
5166 | struct proc_data *data = (struct proc_data *)file->private_data; | 5166 | struct proc_data *data = file->private_data; |
5167 | struct proc_dir_entry *dp = PDE(inode); | 5167 | struct proc_dir_entry *dp = PDE(inode); |
5168 | struct net_device *dev = dp->data; | 5168 | struct net_device *dev = dp->data; |
5169 | struct airo_info *ai = dev->ml_priv; | 5169 | struct airo_info *ai = dev->ml_priv; |
@@ -5309,7 +5309,7 @@ static void proc_wepkey_on_close( struct inode *inode, struct file *file ) { | |||
5309 | 5309 | ||
5310 | memset(key, 0, sizeof(key)); | 5310 | memset(key, 0, sizeof(key)); |
5311 | 5311 | ||
5312 | data = (struct proc_data *)file->private_data; | 5312 | data = file->private_data; |
5313 | if ( !data->writelen ) return; | 5313 | if ( !data->writelen ) return; |
5314 | 5314 | ||
5315 | if (data->wbuffer[0] >= '0' && data->wbuffer[0] <= '3' && | 5315 | if (data->wbuffer[0] >= '0' && data->wbuffer[0] <= '3' && |
@@ -5363,7 +5363,7 @@ static int proc_wepkey_open( struct inode *inode, struct file *file ) | |||
5363 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 5363 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
5364 | return -ENOMEM; | 5364 | return -ENOMEM; |
5365 | memset(&wkr, 0, sizeof(wkr)); | 5365 | memset(&wkr, 0, sizeof(wkr)); |
5366 | data = (struct proc_data *)file->private_data; | 5366 | data = file->private_data; |
5367 | if ((data->rbuffer = kzalloc( 180, GFP_KERNEL )) == NULL) { | 5367 | if ((data->rbuffer = kzalloc( 180, GFP_KERNEL )) == NULL) { |
5368 | kfree (file->private_data); | 5368 | kfree (file->private_data); |
5369 | return -ENOMEM; | 5369 | return -ENOMEM; |
@@ -5409,7 +5409,7 @@ static int proc_SSID_open(struct inode *inode, struct file *file) | |||
5409 | 5409 | ||
5410 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 5410 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
5411 | return -ENOMEM; | 5411 | return -ENOMEM; |
5412 | data = (struct proc_data *)file->private_data; | 5412 | data = file->private_data; |
5413 | if ((data->rbuffer = kmalloc( 104, GFP_KERNEL )) == NULL) { | 5413 | if ((data->rbuffer = kmalloc( 104, GFP_KERNEL )) == NULL) { |
5414 | kfree (file->private_data); | 5414 | kfree (file->private_data); |
5415 | return -ENOMEM; | 5415 | return -ENOMEM; |
@@ -5453,7 +5453,7 @@ static int proc_APList_open( struct inode *inode, struct file *file ) { | |||
5453 | 5453 | ||
5454 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 5454 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
5455 | return -ENOMEM; | 5455 | return -ENOMEM; |
5456 | data = (struct proc_data *)file->private_data; | 5456 | data = file->private_data; |
5457 | if ((data->rbuffer = kmalloc( 104, GFP_KERNEL )) == NULL) { | 5457 | if ((data->rbuffer = kmalloc( 104, GFP_KERNEL )) == NULL) { |
5458 | kfree (file->private_data); | 5458 | kfree (file->private_data); |
5459 | return -ENOMEM; | 5459 | return -ENOMEM; |
@@ -5495,7 +5495,7 @@ static int proc_BSSList_open( struct inode *inode, struct file *file ) { | |||
5495 | 5495 | ||
5496 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 5496 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
5497 | return -ENOMEM; | 5497 | return -ENOMEM; |
5498 | data = (struct proc_data *)file->private_data; | 5498 | data = file->private_data; |
5499 | if ((data->rbuffer = kmalloc( 1024, GFP_KERNEL )) == NULL) { | 5499 | if ((data->rbuffer = kmalloc( 1024, GFP_KERNEL )) == NULL) { |
5500 | kfree (file->private_data); | 5500 | kfree (file->private_data); |
5501 | return -ENOMEM; | 5501 | return -ENOMEM; |