Commit 7d3864d1f6a496108c377f5580a2125c2f8d9014
Committed by
Greg Kroah-Hartman
1 parent
37af07d19a
Exists in
master
and in
7 other branches
Staging: wlan-ng: fixed packed checkpatch warnings
Signed-off-by: Bas van den Berg <b.van.den.berg.nl@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Showing 8 changed files with 127 additions and 127 deletions Side-by-side Diff
drivers/staging/wlan-ng/hfa384x.h
... | ... | @@ -352,12 +352,12 @@ |
352 | 352 | typedef struct hfa384x_bytestr { |
353 | 353 | u16 len; |
354 | 354 | u8 data[0]; |
355 | -} __attribute__ ((packed)) hfa384x_bytestr_t; | |
355 | +} __packed hfa384x_bytestr_t; | |
356 | 356 | |
357 | 357 | typedef struct hfa384x_bytestr32 { |
358 | 358 | u16 len; |
359 | 359 | u8 data[32]; |
360 | -} __attribute__ ((packed)) hfa384x_bytestr32_t; | |
360 | +} __packed hfa384x_bytestr32_t; | |
361 | 361 | |
362 | 362 | /*-------------------------------------------------------------------- |
363 | 363 | Configuration Record Structures: |
... | ... | @@ -370,7 +370,7 @@ |
370 | 370 | u16 variant; |
371 | 371 | u16 major; |
372 | 372 | u16 minor; |
373 | -} __attribute__ ((packed)) hfa384x_compident_t; | |
373 | +} __packed hfa384x_compident_t; | |
374 | 374 | |
375 | 375 | typedef struct hfa384x_caplevel { |
376 | 376 | u16 role; |
... | ... | @@ -378,7 +378,7 @@ |
378 | 378 | u16 variant; |
379 | 379 | u16 bottom; |
380 | 380 | u16 top; |
381 | -} __attribute__ ((packed)) hfa384x_caplevel_t; | |
381 | +} __packed hfa384x_caplevel_t; | |
382 | 382 | |
383 | 383 | /*-- Configuration Record: cnfAuthentication --*/ |
384 | 384 | #define HFA384x_CNFAUTHENTICATION_OPENSYSTEM 0x0001 |
385 | 385 | |
386 | 386 | |
387 | 387 | |
... | ... | @@ -397,26 +397,26 @@ |
397 | 397 | u16 channelList; |
398 | 398 | u16 txRate; |
399 | 399 | hfa384x_bytestr32_t ssid; |
400 | -} __attribute__ ((packed)) hfa384x_HostScanRequest_data_t; | |
400 | +} __packed hfa384x_HostScanRequest_data_t; | |
401 | 401 | |
402 | 402 | /*-- Configuration Record: JoinRequest (data portion only) --*/ |
403 | 403 | typedef struct hfa384x_JoinRequest_data { |
404 | 404 | u8 bssid[WLAN_BSSID_LEN]; |
405 | 405 | u16 channel; |
406 | -} __attribute__ ((packed)) hfa384x_JoinRequest_data_t; | |
406 | +} __packed hfa384x_JoinRequest_data_t; | |
407 | 407 | |
408 | 408 | /*-- Configuration Record: authenticateStation (data portion only) --*/ |
409 | 409 | typedef struct hfa384x_authenticateStation_data { |
410 | 410 | u8 address[ETH_ALEN]; |
411 | 411 | u16 status; |
412 | 412 | u16 algorithm; |
413 | -} __attribute__ ((packed)) hfa384x_authenticateStation_data_t; | |
413 | +} __packed hfa384x_authenticateStation_data_t; | |
414 | 414 | |
415 | 415 | /*-- Configuration Record: WPAData (data portion only) --*/ |
416 | 416 | typedef struct hfa384x_WPAData { |
417 | 417 | u16 datalen; |
418 | 418 | u8 data[0]; /* max 80 */ |
419 | -} __attribute__ ((packed)) hfa384x_WPAData_t; | |
419 | +} __packed hfa384x_WPAData_t; | |
420 | 420 | |
421 | 421 | /*-------------------------------------------------------------------- |
422 | 422 | Information Record Structures: NIC Information |
... | ... | @@ -428,7 +428,7 @@ |
428 | 428 | u16 page; |
429 | 429 | u16 offset; |
430 | 430 | u16 len; |
431 | -} __attribute__ ((packed)) hfa384x_downloadbuffer_t; | |
431 | +} __packed hfa384x_downloadbuffer_t; | |
432 | 432 | |
433 | 433 | /*-------------------------------------------------------------------- |
434 | 434 | Information Record Structures: NIC Information |
435 | 435 | |
... | ... | @@ -441,14 +441,14 @@ |
441 | 441 | u16 CQ_currBSS; |
442 | 442 | u16 ASL_currBSS; |
443 | 443 | u16 ANL_currFC; |
444 | -} __attribute__ ((packed)) hfa384x_commsquality_t; | |
444 | +} __packed hfa384x_commsquality_t; | |
445 | 445 | |
446 | 446 | /*-- Information Record: dmbcommsquality --*/ |
447 | 447 | typedef struct hfa384x_dbmcommsquality { |
448 | 448 | u16 CQdbm_currBSS; |
449 | 449 | u16 ASLdbm_currBSS; |
450 | 450 | u16 ANLdbm_currFC; |
451 | -} __attribute__ ((packed)) hfa384x_dbmcommsquality_t; | |
451 | +} __packed hfa384x_dbmcommsquality_t; | |
452 | 452 | |
453 | 453 | /*-------------------------------------------------------------------- |
454 | 454 | FRAME STRUCTURES: Communication Frames |
... | ... | @@ -481,7 +481,7 @@ |
481 | 481 | u8 dest_addr[6]; |
482 | 482 | u8 src_addr[6]; |
483 | 483 | u16 data_length; /* big endian format */ |
484 | -} __attribute__ ((packed)) hfa384x_tx_frame_t; | |
484 | +} __packed hfa384x_tx_frame_t; | |
485 | 485 | /*-------------------------------------------------------------------- |
486 | 486 | Communication Frames: Field Masks for Transmit Frames |
487 | 487 | --------------------------------------------------------------------*/ |
... | ... | @@ -543,7 +543,7 @@ |
543 | 543 | u8 dest_addr[6]; |
544 | 544 | u8 src_addr[6]; |
545 | 545 | u16 data_length; /* IEEE? (big endian) format */ |
546 | -} __attribute__ ((packed)) hfa384x_rx_frame_t; | |
546 | +} __packed hfa384x_rx_frame_t; | |
547 | 547 | /*-------------------------------------------------------------------- |
548 | 548 | Communication Frames: Field Masks for Receive Frames |
549 | 549 | --------------------------------------------------------------------*/ |
... | ... | @@ -607,7 +607,7 @@ |
607 | 607 | u16 rxdiscardswepundecr; |
608 | 608 | u16 rxmsginmsgfrag; |
609 | 609 | u16 rxmsginbadmsgfrag; |
610 | -} __attribute__ ((packed)) hfa384x_CommTallies16_t; | |
610 | +} __packed hfa384x_CommTallies16_t; | |
611 | 611 | |
612 | 612 | typedef struct hfa384x_CommTallies32 { |
613 | 613 | u32 txunicastframes; |
... | ... | @@ -631,7 +631,7 @@ |
631 | 631 | u32 rxdiscardswepundecr; |
632 | 632 | u32 rxmsginmsgfrag; |
633 | 633 | u32 rxmsginbadmsgfrag; |
634 | -} __attribute__ ((packed)) hfa384x_CommTallies32_t; | |
634 | +} __packed hfa384x_CommTallies32_t; | |
635 | 635 | |
636 | 636 | /*-- Inquiry Frame, Diagnose: Scan Results & Subfields--*/ |
637 | 637 | typedef struct hfa384x_ScanResultSub { |
638 | 638 | |
... | ... | @@ -644,13 +644,13 @@ |
644 | 644 | hfa384x_bytestr32_t ssid; |
645 | 645 | u8 supprates[10]; /* 802.11 info element */ |
646 | 646 | u16 proberesp_rate; |
647 | -} __attribute__ ((packed)) hfa384x_ScanResultSub_t; | |
647 | +} __packed hfa384x_ScanResultSub_t; | |
648 | 648 | |
649 | 649 | typedef struct hfa384x_ScanResult { |
650 | 650 | u16 rsvd; |
651 | 651 | u16 scanreason; |
652 | 652 | hfa384x_ScanResultSub_t result[HFA384x_SCANRESULT_MAX]; |
653 | -} __attribute__ ((packed)) hfa384x_ScanResult_t; | |
653 | +} __packed hfa384x_ScanResult_t; | |
654 | 654 | |
655 | 655 | /*-- Inquiry Frame, Diagnose: ChInfo Results & Subfields--*/ |
656 | 656 | typedef struct hfa384x_ChInfoResultSub { |
... | ... | @@ -658,7 +658,7 @@ |
658 | 658 | u16 anl; |
659 | 659 | u16 pnl; |
660 | 660 | u16 active; |
661 | -} __attribute__ ((packed)) hfa384x_ChInfoResultSub_t; | |
661 | +} __packed hfa384x_ChInfoResultSub_t; | |
662 | 662 | |
663 | 663 | #define HFA384x_CHINFORESULT_BSSACTIVE BIT(0) |
664 | 664 | #define HFA384x_CHINFORESULT_PCFACTIVE BIT(1) |
... | ... | @@ -666,7 +666,7 @@ |
666 | 666 | typedef struct hfa384x_ChInfoResult { |
667 | 667 | u16 scanchannels; |
668 | 668 | hfa384x_ChInfoResultSub_t result[HFA384x_CHINFORESULT_MAX]; |
669 | -} __attribute__ ((packed)) hfa384x_ChInfoResult_t; | |
669 | +} __packed hfa384x_ChInfoResult_t; | |
670 | 670 | |
671 | 671 | /*-- Inquiry Frame, Diagnose: Host Scan Results & Subfields--*/ |
672 | 672 | typedef struct hfa384x_HScanResultSub { |
673 | 673 | |
... | ... | @@ -680,13 +680,13 @@ |
680 | 680 | u8 supprates[10]; /* 802.11 info element */ |
681 | 681 | u16 proberesp_rate; |
682 | 682 | u16 atim; |
683 | -} __attribute__ ((packed)) hfa384x_HScanResultSub_t; | |
683 | +} __packed hfa384x_HScanResultSub_t; | |
684 | 684 | |
685 | 685 | typedef struct hfa384x_HScanResult { |
686 | 686 | u16 nresult; |
687 | 687 | u16 rsvd; |
688 | 688 | hfa384x_HScanResultSub_t result[HFA384x_HSCANRESULT_MAX]; |
689 | -} __attribute__ ((packed)) hfa384x_HScanResult_t; | |
689 | +} __packed hfa384x_HScanResult_t; | |
690 | 690 | |
691 | 691 | /*-- Unsolicited Frame, MAC Mgmt: LinkStatus --*/ |
692 | 692 | |
... | ... | @@ -700,7 +700,7 @@ |
700 | 700 | |
701 | 701 | typedef struct hfa384x_LinkStatus { |
702 | 702 | u16 linkstatus; |
703 | -} __attribute__ ((packed)) hfa384x_LinkStatus_t; | |
703 | +} __packed hfa384x_LinkStatus_t; | |
704 | 704 | |
705 | 705 | /*-- Unsolicited Frame, MAC Mgmt: AssociationStatus (--*/ |
706 | 706 | |
707 | 707 | |
708 | 708 | |
709 | 709 | |
... | ... | @@ -715,25 +715,25 @@ |
715 | 715 | u8 old_ap_addr[ETH_ALEN]; |
716 | 716 | u16 reason; |
717 | 717 | u16 reserved; |
718 | -} __attribute__ ((packed)) hfa384x_AssocStatus_t; | |
718 | +} __packed hfa384x_AssocStatus_t; | |
719 | 719 | |
720 | 720 | /*-- Unsolicited Frame, MAC Mgmt: AuthRequest (AP Only) --*/ |
721 | 721 | |
722 | 722 | typedef struct hfa384x_AuthRequest { |
723 | 723 | u8 sta_addr[ETH_ALEN]; |
724 | 724 | u16 algorithm; |
725 | -} __attribute__ ((packed)) hfa384x_AuthReq_t; | |
725 | +} __packed hfa384x_AuthReq_t; | |
726 | 726 | |
727 | 727 | /*-- Unsolicited Frame, MAC Mgmt: PSUserCount (AP Only) --*/ |
728 | 728 | |
729 | 729 | typedef struct hfa384x_PSUserCount { |
730 | 730 | u16 usercnt; |
731 | -} __attribute__ ((packed)) hfa384x_PSUserCount_t; | |
731 | +} __packed hfa384x_PSUserCount_t; | |
732 | 732 | |
733 | 733 | typedef struct hfa384x_KeyIDChanged { |
734 | 734 | u8 sta_addr[ETH_ALEN]; |
735 | 735 | u16 keyid; |
736 | -} __attribute__ ((packed)) hfa384x_KeyIDChanged_t; | |
736 | +} __packed hfa384x_KeyIDChanged_t; | |
737 | 737 | |
738 | 738 | /*-- Collection of all Inf frames ---------------*/ |
739 | 739 | typedef union hfa384x_infodata { |
740 | 740 | |
... | ... | @@ -747,13 +747,13 @@ |
747 | 747 | hfa384x_AuthReq_t authreq; |
748 | 748 | hfa384x_PSUserCount_t psusercnt; |
749 | 749 | hfa384x_KeyIDChanged_t keyidchanged; |
750 | -} __attribute__ ((packed)) hfa384x_infodata_t; | |
750 | +} __packed hfa384x_infodata_t; | |
751 | 751 | |
752 | 752 | typedef struct hfa384x_InfFrame { |
753 | 753 | u16 framelen; |
754 | 754 | u16 infotype; |
755 | 755 | hfa384x_infodata_t info; |
756 | -} __attribute__ ((packed)) hfa384x_InfFrame_t; | |
756 | +} __packed hfa384x_InfFrame_t; | |
757 | 757 | |
758 | 758 | /*-------------------------------------------------------------------- |
759 | 759 | USB Packet structures and constants. |
... | ... | @@ -785,7 +785,7 @@ |
785 | 785 | typedef struct hfa384x_usb_txfrm { |
786 | 786 | hfa384x_tx_frame_t desc; |
787 | 787 | u8 data[WLAN_DATA_MAXLEN]; |
788 | -} __attribute__ ((packed)) hfa384x_usb_txfrm_t; | |
788 | +} __packed hfa384x_usb_txfrm_t; | |
789 | 789 | |
790 | 790 | typedef struct hfa384x_usb_cmdreq { |
791 | 791 | u16 type; |
792 | 792 | |
793 | 793 | |
... | ... | @@ -794,21 +794,21 @@ |
794 | 794 | u16 parm1; |
795 | 795 | u16 parm2; |
796 | 796 | u8 pad[54]; |
797 | -} __attribute__ ((packed)) hfa384x_usb_cmdreq_t; | |
797 | +} __packed hfa384x_usb_cmdreq_t; | |
798 | 798 | |
799 | 799 | typedef struct hfa384x_usb_wridreq { |
800 | 800 | u16 type; |
801 | 801 | u16 frmlen; |
802 | 802 | u16 rid; |
803 | 803 | u8 data[HFA384x_RIDDATA_MAXLEN]; |
804 | -} __attribute__ ((packed)) hfa384x_usb_wridreq_t; | |
804 | +} __packed hfa384x_usb_wridreq_t; | |
805 | 805 | |
806 | 806 | typedef struct hfa384x_usb_rridreq { |
807 | 807 | u16 type; |
808 | 808 | u16 frmlen; |
809 | 809 | u16 rid; |
810 | 810 | u8 pad[58]; |
811 | -} __attribute__ ((packed)) hfa384x_usb_rridreq_t; | |
811 | +} __packed hfa384x_usb_rridreq_t; | |
812 | 812 | |
813 | 813 | typedef struct hfa384x_usb_wmemreq { |
814 | 814 | u16 type; |
... | ... | @@ -816,7 +816,7 @@ |
816 | 816 | u16 offset; |
817 | 817 | u16 page; |
818 | 818 | u8 data[HFA384x_USB_RWMEM_MAXLEN]; |
819 | -} __attribute__ ((packed)) hfa384x_usb_wmemreq_t; | |
819 | +} __packed hfa384x_usb_wmemreq_t; | |
820 | 820 | |
821 | 821 | typedef struct hfa384x_usb_rmemreq { |
822 | 822 | u16 type; |
... | ... | @@ -824,7 +824,7 @@ |
824 | 824 | u16 offset; |
825 | 825 | u16 page; |
826 | 826 | u8 pad[56]; |
827 | -} __attribute__ ((packed)) hfa384x_usb_rmemreq_t; | |
827 | +} __packed hfa384x_usb_rmemreq_t; | |
828 | 828 | |
829 | 829 | /*------------------------------------*/ |
830 | 830 | /* Response (bulk IN) packet contents */ |
831 | 831 | |
... | ... | @@ -832,12 +832,12 @@ |
832 | 832 | typedef struct hfa384x_usb_rxfrm { |
833 | 833 | hfa384x_rx_frame_t desc; |
834 | 834 | u8 data[WLAN_DATA_MAXLEN]; |
835 | -} __attribute__ ((packed)) hfa384x_usb_rxfrm_t; | |
835 | +} __packed hfa384x_usb_rxfrm_t; | |
836 | 836 | |
837 | 837 | typedef struct hfa384x_usb_infofrm { |
838 | 838 | u16 type; |
839 | 839 | hfa384x_InfFrame_t info; |
840 | -} __attribute__ ((packed)) hfa384x_usb_infofrm_t; | |
840 | +} __packed hfa384x_usb_infofrm_t; | |
841 | 841 | |
842 | 842 | typedef struct hfa384x_usb_statusresp { |
843 | 843 | u16 type; |
... | ... | @@ -845,7 +845,7 @@ |
845 | 845 | u16 resp0; |
846 | 846 | u16 resp1; |
847 | 847 | u16 resp2; |
848 | -} __attribute__ ((packed)) hfa384x_usb_cmdresp_t; | |
848 | +} __packed hfa384x_usb_cmdresp_t; | |
849 | 849 | |
850 | 850 | typedef hfa384x_usb_cmdresp_t hfa384x_usb_wridresp_t; |
851 | 851 | |
... | ... | @@ -854,7 +854,7 @@ |
854 | 854 | u16 frmlen; |
855 | 855 | u16 rid; |
856 | 856 | u8 data[HFA384x_RIDDATA_MAXLEN]; |
857 | -} __attribute__ ((packed)) hfa384x_usb_rridresp_t; | |
857 | +} __packed hfa384x_usb_rridresp_t; | |
858 | 858 | |
859 | 859 | typedef hfa384x_usb_cmdresp_t hfa384x_usb_wmemresp_t; |
860 | 860 | |
861 | 861 | |
862 | 862 | |
... | ... | @@ -862,17 +862,17 @@ |
862 | 862 | u16 type; |
863 | 863 | u16 frmlen; |
864 | 864 | u8 data[HFA384x_USB_RWMEM_MAXLEN]; |
865 | -} __attribute__ ((packed)) hfa384x_usb_rmemresp_t; | |
865 | +} __packed hfa384x_usb_rmemresp_t; | |
866 | 866 | |
867 | 867 | typedef struct hfa384x_usb_bufavail { |
868 | 868 | u16 type; |
869 | 869 | u16 frmlen; |
870 | -} __attribute__ ((packed)) hfa384x_usb_bufavail_t; | |
870 | +} __packed hfa384x_usb_bufavail_t; | |
871 | 871 | |
872 | 872 | typedef struct hfa384x_usb_error { |
873 | 873 | u16 type; |
874 | 874 | u16 errortype; |
875 | -} __attribute__ ((packed)) hfa384x_usb_error_t; | |
875 | +} __packed hfa384x_usb_error_t; | |
876 | 876 | |
877 | 877 | /*----------------------------------------------------------*/ |
878 | 878 | /* Unions for packaging all the known packet types together */ |
... | ... | @@ -885,7 +885,7 @@ |
885 | 885 | hfa384x_usb_rridreq_t rridreq; |
886 | 886 | hfa384x_usb_wmemreq_t wmemreq; |
887 | 887 | hfa384x_usb_rmemreq_t rmemreq; |
888 | -} __attribute__ ((packed)) hfa384x_usbout_t; | |
888 | +} __packed hfa384x_usbout_t; | |
889 | 889 | |
890 | 890 | typedef union hfa384x_usbin { |
891 | 891 | u16 type; |
... | ... | @@ -900,7 +900,7 @@ |
900 | 900 | hfa384x_usb_bufavail_t bufavail; |
901 | 901 | hfa384x_usb_error_t usberror; |
902 | 902 | u8 boguspad[3000]; |
903 | -} __attribute__ ((packed)) hfa384x_usbin_t; | |
903 | +} __packed hfa384x_usbin_t; | |
904 | 904 | |
905 | 905 | /*-------------------------------------------------------------------- |
906 | 906 | PD record structures. |
907 | 907 | |
908 | 908 | |
... | ... | @@ -908,15 +908,15 @@ |
908 | 908 | |
909 | 909 | typedef struct hfa384x_pdr_pcb_partnum { |
910 | 910 | u8 num[8]; |
911 | -} __attribute__ ((packed)) hfa384x_pdr_pcb_partnum_t; | |
911 | +} __packed hfa384x_pdr_pcb_partnum_t; | |
912 | 912 | |
913 | 913 | typedef struct hfa384x_pdr_pcb_tracenum { |
914 | 914 | u8 num[8]; |
915 | -} __attribute__ ((packed)) hfa384x_pdr_pcb_tracenum_t; | |
915 | +} __packed hfa384x_pdr_pcb_tracenum_t; | |
916 | 916 | |
917 | 917 | typedef struct hfa384x_pdr_nic_serial { |
918 | 918 | u8 num[12]; |
919 | -} __attribute__ ((packed)) hfa384x_pdr_nic_serial_t; | |
919 | +} __packed hfa384x_pdr_nic_serial_t; | |
920 | 920 | |
921 | 921 | typedef struct hfa384x_pdr_mkk_measurements { |
922 | 922 | double carrier_freq; |
923 | 923 | |
924 | 924 | |
925 | 925 | |
926 | 926 | |
927 | 927 | |
928 | 928 | |
929 | 929 | |
930 | 930 | |
931 | 931 | |
932 | 932 | |
933 | 933 | |
934 | 934 | |
935 | 935 | |
936 | 936 | |
937 | 937 | |
938 | 938 | |
939 | 939 | |
940 | 940 | |
941 | 941 | |
942 | 942 | |
943 | 943 | |
944 | 944 | |
945 | 945 | |
946 | 946 | |
947 | 947 | |
948 | 948 | |
949 | 949 | |
950 | 950 | |
951 | 951 | |
952 | 952 | |
... | ... | @@ -934,138 +934,138 @@ |
934 | 934 | double rx_spur_f2; |
935 | 935 | double rx_spur_l1; |
936 | 936 | double rx_spur_l2; |
937 | -} __attribute__ ((packed)) hfa384x_pdr_mkk_measurements_t; | |
937 | +} __packed hfa384x_pdr_mkk_measurements_t; | |
938 | 938 | |
939 | 939 | typedef struct hfa384x_pdr_nic_ramsize { |
940 | 940 | u8 size[12]; /* units of KB */ |
941 | -} __attribute__ ((packed)) hfa384x_pdr_nic_ramsize_t; | |
941 | +} __packed hfa384x_pdr_nic_ramsize_t; | |
942 | 942 | |
943 | 943 | typedef struct hfa384x_pdr_mfisuprange { |
944 | 944 | u16 id; |
945 | 945 | u16 variant; |
946 | 946 | u16 bottom; |
947 | 947 | u16 top; |
948 | -} __attribute__ ((packed)) hfa384x_pdr_mfisuprange_t; | |
948 | +} __packed hfa384x_pdr_mfisuprange_t; | |
949 | 949 | |
950 | 950 | typedef struct hfa384x_pdr_cfisuprange { |
951 | 951 | u16 id; |
952 | 952 | u16 variant; |
953 | 953 | u16 bottom; |
954 | 954 | u16 top; |
955 | -} __attribute__ ((packed)) hfa384x_pdr_cfisuprange_t; | |
955 | +} __packed hfa384x_pdr_cfisuprange_t; | |
956 | 956 | |
957 | 957 | typedef struct hfa384x_pdr_nicid { |
958 | 958 | u16 id; |
959 | 959 | u16 variant; |
960 | 960 | u16 major; |
961 | 961 | u16 minor; |
962 | -} __attribute__ ((packed)) hfa384x_pdr_nicid_t; | |
962 | +} __packed hfa384x_pdr_nicid_t; | |
963 | 963 | |
964 | 964 | typedef struct hfa384x_pdr_refdac_measurements { |
965 | 965 | u16 value[0]; |
966 | -} __attribute__ ((packed)) hfa384x_pdr_refdac_measurements_t; | |
966 | +} __packed hfa384x_pdr_refdac_measurements_t; | |
967 | 967 | |
968 | 968 | typedef struct hfa384x_pdr_vgdac_measurements { |
969 | 969 | u16 value[0]; |
970 | -} __attribute__ ((packed)) hfa384x_pdr_vgdac_measurements_t; | |
970 | +} __packed hfa384x_pdr_vgdac_measurements_t; | |
971 | 971 | |
972 | 972 | typedef struct hfa384x_pdr_level_comp_measurements { |
973 | 973 | u16 value[0]; |
974 | -} __attribute__ ((packed)) hfa384x_pdr_level_compc_measurements_t; | |
974 | +} __packed hfa384x_pdr_level_compc_measurements_t; | |
975 | 975 | |
976 | 976 | typedef struct hfa384x_pdr_mac_address { |
977 | 977 | u8 addr[6]; |
978 | -} __attribute__ ((packed)) hfa384x_pdr_mac_address_t; | |
978 | +} __packed hfa384x_pdr_mac_address_t; | |
979 | 979 | |
980 | 980 | typedef struct hfa384x_pdr_mkk_callname { |
981 | 981 | u8 callname[8]; |
982 | -} __attribute__ ((packed)) hfa384x_pdr_mkk_callname_t; | |
982 | +} __packed hfa384x_pdr_mkk_callname_t; | |
983 | 983 | |
984 | 984 | typedef struct hfa384x_pdr_regdomain { |
985 | 985 | u16 numdomains; |
986 | 986 | u16 domain[5]; |
987 | -} __attribute__ ((packed)) hfa384x_pdr_regdomain_t; | |
987 | +} __packed hfa384x_pdr_regdomain_t; | |
988 | 988 | |
989 | 989 | typedef struct hfa384x_pdr_allowed_channel { |
990 | 990 | u16 ch_bitmap; |
991 | -} __attribute__ ((packed)) hfa384x_pdr_allowed_channel_t; | |
991 | +} __packed hfa384x_pdr_allowed_channel_t; | |
992 | 992 | |
993 | 993 | typedef struct hfa384x_pdr_default_channel { |
994 | 994 | u16 channel; |
995 | -} __attribute__ ((packed)) hfa384x_pdr_default_channel_t; | |
995 | +} __packed hfa384x_pdr_default_channel_t; | |
996 | 996 | |
997 | 997 | typedef struct hfa384x_pdr_privacy_option { |
998 | 998 | u16 available; |
999 | -} __attribute__ ((packed)) hfa384x_pdr_privacy_option_t; | |
999 | +} __packed hfa384x_pdr_privacy_option_t; | |
1000 | 1000 | |
1001 | 1001 | typedef struct hfa384x_pdr_temptype { |
1002 | 1002 | u16 type; |
1003 | -} __attribute__ ((packed)) hfa384x_pdr_temptype_t; | |
1003 | +} __packed hfa384x_pdr_temptype_t; | |
1004 | 1004 | |
1005 | 1005 | typedef struct hfa384x_pdr_refdac_setup { |
1006 | 1006 | u16 ch_value[14]; |
1007 | -} __attribute__ ((packed)) hfa384x_pdr_refdac_setup_t; | |
1007 | +} __packed hfa384x_pdr_refdac_setup_t; | |
1008 | 1008 | |
1009 | 1009 | typedef struct hfa384x_pdr_vgdac_setup { |
1010 | 1010 | u16 ch_value[14]; |
1011 | -} __attribute__ ((packed)) hfa384x_pdr_vgdac_setup_t; | |
1011 | +} __packed hfa384x_pdr_vgdac_setup_t; | |
1012 | 1012 | |
1013 | 1013 | typedef struct hfa384x_pdr_level_comp_setup { |
1014 | 1014 | u16 ch_value[14]; |
1015 | -} __attribute__ ((packed)) hfa384x_pdr_level_comp_setup_t; | |
1015 | +} __packed hfa384x_pdr_level_comp_setup_t; | |
1016 | 1016 | |
1017 | 1017 | typedef struct hfa384x_pdr_trimdac_setup { |
1018 | 1018 | u16 trimidac; |
1019 | 1019 | u16 trimqdac; |
1020 | -} __attribute__ ((packed)) hfa384x_pdr_trimdac_setup_t; | |
1020 | +} __packed hfa384x_pdr_trimdac_setup_t; | |
1021 | 1021 | |
1022 | 1022 | typedef struct hfa384x_pdr_ifr_setting { |
1023 | 1023 | u16 value[3]; |
1024 | -} __attribute__ ((packed)) hfa384x_pdr_ifr_setting_t; | |
1024 | +} __packed hfa384x_pdr_ifr_setting_t; | |
1025 | 1025 | |
1026 | 1026 | typedef struct hfa384x_pdr_rfr_setting { |
1027 | 1027 | u16 value[3]; |
1028 | -} __attribute__ ((packed)) hfa384x_pdr_rfr_setting_t; | |
1028 | +} __packed hfa384x_pdr_rfr_setting_t; | |
1029 | 1029 | |
1030 | 1030 | typedef struct hfa384x_pdr_hfa3861_baseline { |
1031 | 1031 | u16 value[50]; |
1032 | -} __attribute__ ((packed)) hfa384x_pdr_hfa3861_baseline_t; | |
1032 | +} __packed hfa384x_pdr_hfa3861_baseline_t; | |
1033 | 1033 | |
1034 | 1034 | typedef struct hfa384x_pdr_hfa3861_shadow { |
1035 | 1035 | u32 value[32]; |
1036 | -} __attribute__ ((packed)) hfa384x_pdr_hfa3861_shadow_t; | |
1036 | +} __packed hfa384x_pdr_hfa3861_shadow_t; | |
1037 | 1037 | |
1038 | 1038 | typedef struct hfa384x_pdr_hfa3861_ifrf { |
1039 | 1039 | u32 value[20]; |
1040 | -} __attribute__ ((packed)) hfa384x_pdr_hfa3861_ifrf_t; | |
1040 | +} __packed hfa384x_pdr_hfa3861_ifrf_t; | |
1041 | 1041 | |
1042 | 1042 | typedef struct hfa384x_pdr_hfa3861_chcalsp { |
1043 | 1043 | u16 value[14]; |
1044 | -} __attribute__ ((packed)) hfa384x_pdr_hfa3861_chcalsp_t; | |
1044 | +} __packed hfa384x_pdr_hfa3861_chcalsp_t; | |
1045 | 1045 | |
1046 | 1046 | typedef struct hfa384x_pdr_hfa3861_chcali { |
1047 | 1047 | u16 value[17]; |
1048 | -} __attribute__ ((packed)) hfa384x_pdr_hfa3861_chcali_t; | |
1048 | +} __packed hfa384x_pdr_hfa3861_chcali_t; | |
1049 | 1049 | |
1050 | 1050 | typedef struct hfa384x_pdr_hfa3861_nic_config { |
1051 | 1051 | u16 config_bitmap; |
1052 | -} __attribute__ ((packed)) hfa384x_pdr_nic_config_t; | |
1052 | +} __packed hfa384x_pdr_nic_config_t; | |
1053 | 1053 | |
1054 | 1054 | typedef struct hfa384x_pdr_hfo_delay { |
1055 | 1055 | u8 hfo_delay; |
1056 | -} __attribute__ ((packed)) hfa384x_hfo_delay_t; | |
1056 | +} __packed hfa384x_hfo_delay_t; | |
1057 | 1057 | |
1058 | 1058 | typedef struct hfa384x_pdr_hfa3861_manf_testsp { |
1059 | 1059 | u16 value[30]; |
1060 | -} __attribute__ ((packed)) hfa384x_pdr_hfa3861_manf_testsp_t; | |
1060 | +} __packed hfa384x_pdr_hfa3861_manf_testsp_t; | |
1061 | 1061 | |
1062 | 1062 | typedef struct hfa384x_pdr_hfa3861_manf_testi { |
1063 | 1063 | u16 value[30]; |
1064 | -} __attribute__ ((packed)) hfa384x_pdr_hfa3861_manf_testi_t; | |
1064 | +} __packed hfa384x_pdr_hfa3861_manf_testi_t; | |
1065 | 1065 | |
1066 | 1066 | typedef struct hfa384x_end_of_pda { |
1067 | 1067 | u16 crc; |
1068 | -} __attribute__ ((packed)) hfa384x_pdr_end_of_pda_t; | |
1068 | +} __packed hfa384x_pdr_end_of_pda_t; | |
1069 | 1069 | |
1070 | 1070 | typedef struct hfa384x_pdrec { |
1071 | 1071 | u16 len; /* in words */ |
... | ... | @@ -1107,7 +1107,7 @@ |
1107 | 1107 | hfa384x_pdr_end_of_pda_t end_of_pda; |
1108 | 1108 | |
1109 | 1109 | } data; |
1110 | -} __attribute__ ((packed)) hfa384x_pdrec_t; | |
1110 | +} __packed hfa384x_pdrec_t; | |
1111 | 1111 | |
1112 | 1112 | #ifdef __KERNEL__ |
1113 | 1113 | /*-------------------------------------------------------------------- |
drivers/staging/wlan-ng/p80211conv.h
... | ... | @@ -134,20 +134,20 @@ |
134 | 134 | u8 daddr[WLAN_ETHADDR_LEN]; |
135 | 135 | u8 saddr[WLAN_ETHADDR_LEN]; |
136 | 136 | u16 type; |
137 | -} __attribute__ ((packed)); | |
137 | +} __packed; | |
138 | 138 | |
139 | 139 | /* local llc header type */ |
140 | 140 | struct wlan_llc { |
141 | 141 | u8 dsap; |
142 | 142 | u8 ssap; |
143 | 143 | u8 ctl; |
144 | -} __attribute__ ((packed)); | |
144 | +} __packed; | |
145 | 145 | |
146 | 146 | /* local snap header type */ |
147 | 147 | struct wlan_snap { |
148 | 148 | u8 oui[WLAN_IEEE_OUI_LEN]; |
149 | 149 | u16 type; |
150 | -} __attribute__ ((packed)); | |
150 | +} __packed; | |
151 | 151 | |
152 | 152 | /* Circular include trick */ |
153 | 153 | struct wlandevice; |
drivers/staging/wlan-ng/p80211hdr.h
... | ... | @@ -154,7 +154,7 @@ |
154 | 154 | u8 a2[ETH_ALEN]; |
155 | 155 | u8 a3[ETH_ALEN]; |
156 | 156 | u16 seq; |
157 | -} __attribute__ ((packed)); | |
157 | +} __packed; | |
158 | 158 | |
159 | 159 | struct p80211_hdr_a4 { |
160 | 160 | u16 fc; |
161 | 161 | |
... | ... | @@ -164,12 +164,12 @@ |
164 | 164 | u8 a3[ETH_ALEN]; |
165 | 165 | u16 seq; |
166 | 166 | u8 a4[ETH_ALEN]; |
167 | -} __attribute__ ((packed)); | |
167 | +} __packed; | |
168 | 168 | |
169 | 169 | union p80211_hdr { |
170 | 170 | struct p80211_hdr_a3 a3; |
171 | 171 | struct p80211_hdr_a4 a4; |
172 | -} __attribute__ ((packed)); | |
172 | +} __packed; | |
173 | 173 | |
174 | 174 | /* Frame and header length macros */ |
175 | 175 |
drivers/staging/wlan-ng/p80211ioctl.h
drivers/staging/wlan-ng/p80211metastruct.h
... | ... | @@ -53,7 +53,7 @@ |
53 | 53 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
54 | 54 | p80211item_unk392_t mibattribute; |
55 | 55 | p80211item_uint32_t resultcode; |
56 | -} __attribute__ ((packed)); | |
56 | +} __packed; | |
57 | 57 | |
58 | 58 | struct p80211msg_dot11req_mibset { |
59 | 59 | u32 msgcode; |
... | ... | @@ -61,7 +61,7 @@ |
61 | 61 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
62 | 62 | p80211item_unk392_t mibattribute; |
63 | 63 | p80211item_uint32_t resultcode; |
64 | -} __attribute__ ((packed)); | |
64 | +} __packed; | |
65 | 65 | |
66 | 66 | struct p80211msg_dot11req_scan { |
67 | 67 | u32 msgcode; |
... | ... | @@ -81,7 +81,7 @@ |
81 | 81 | p80211item_uint32_t resultcode; |
82 | 82 | p80211item_uint32_t numbss; |
83 | 83 | p80211item_uint32_t append; |
84 | -} __attribute__ ((packed)); | |
84 | +} __packed; | |
85 | 85 | |
86 | 86 | struct p80211msg_dot11req_scan_results { |
87 | 87 | u32 msgcode; |
... | ... | @@ -130,7 +130,7 @@ |
130 | 130 | p80211item_uint32_t supprate6; |
131 | 131 | p80211item_uint32_t supprate7; |
132 | 132 | p80211item_uint32_t supprate8; |
133 | -} __attribute__ ((packed)); | |
133 | +} __packed; | |
134 | 134 | |
135 | 135 | struct p80211msg_dot11req_start { |
136 | 136 | u32 msgcode; |
... | ... | @@ -168,7 +168,7 @@ |
168 | 168 | p80211item_uint32_t operationalrate7; |
169 | 169 | p80211item_uint32_t operationalrate8; |
170 | 170 | p80211item_uint32_t resultcode; |
171 | -} __attribute__ ((packed)); | |
171 | +} __packed; | |
172 | 172 | |
173 | 173 | struct p80211msg_lnxreq_ifstate { |
174 | 174 | u32 msgcode; |
... | ... | @@ -176,7 +176,7 @@ |
176 | 176 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
177 | 177 | p80211item_uint32_t ifstate; |
178 | 178 | p80211item_uint32_t resultcode; |
179 | -} __attribute__ ((packed)); | |
179 | +} __packed; | |
180 | 180 | |
181 | 181 | struct p80211msg_lnxreq_wlansniff { |
182 | 182 | u32 msgcode; |
... | ... | @@ -190,7 +190,7 @@ |
190 | 190 | p80211item_uint32_t stripfcs; |
191 | 191 | p80211item_uint32_t packet_trunc; |
192 | 192 | p80211item_uint32_t resultcode; |
193 | -} __attribute__ ((packed)); | |
193 | +} __packed; | |
194 | 194 | |
195 | 195 | struct p80211msg_lnxreq_hostwep { |
196 | 196 | u32 msgcode; |
... | ... | @@ -199,7 +199,7 @@ |
199 | 199 | p80211item_uint32_t resultcode; |
200 | 200 | p80211item_uint32_t decrypt; |
201 | 201 | p80211item_uint32_t encrypt; |
202 | -} __attribute__ ((packed)); | |
202 | +} __packed; | |
203 | 203 | |
204 | 204 | struct p80211msg_lnxreq_commsquality { |
205 | 205 | u32 msgcode; |
... | ... | @@ -211,7 +211,7 @@ |
211 | 211 | p80211item_uint32_t level; |
212 | 212 | p80211item_uint32_t noise; |
213 | 213 | p80211item_uint32_t txrate; |
214 | -} __attribute__ ((packed)); | |
214 | +} __packed; | |
215 | 215 | |
216 | 216 | struct p80211msg_lnxreq_autojoin { |
217 | 217 | u32 msgcode; |
... | ... | @@ -221,7 +221,7 @@ |
221 | 221 | u8 pad_19D[3]; |
222 | 222 | p80211item_uint32_t authtype; |
223 | 223 | p80211item_uint32_t resultcode; |
224 | -} __attribute__ ((packed)); | |
224 | +} __packed; | |
225 | 225 | |
226 | 226 | struct p80211msg_p2req_readpda { |
227 | 227 | u32 msgcode; |
... | ... | @@ -229,7 +229,7 @@ |
229 | 229 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
230 | 230 | p80211item_unk1024_t pda; |
231 | 231 | p80211item_uint32_t resultcode; |
232 | -} __attribute__ ((packed)); | |
232 | +} __packed; | |
233 | 233 | |
234 | 234 | struct p80211msg_p2req_ramdl_state { |
235 | 235 | u32 msgcode; |
... | ... | @@ -238,7 +238,7 @@ |
238 | 238 | p80211item_uint32_t enable; |
239 | 239 | p80211item_uint32_t exeaddr; |
240 | 240 | p80211item_uint32_t resultcode; |
241 | -} __attribute__ ((packed)); | |
241 | +} __packed; | |
242 | 242 | |
243 | 243 | struct p80211msg_p2req_ramdl_write { |
244 | 244 | u32 msgcode; |
... | ... | @@ -248,7 +248,7 @@ |
248 | 248 | p80211item_uint32_t len; |
249 | 249 | p80211item_unk4096_t data; |
250 | 250 | p80211item_uint32_t resultcode; |
251 | -} __attribute__ ((packed)); | |
251 | +} __packed; | |
252 | 252 | |
253 | 253 | struct p80211msg_p2req_flashdl_state { |
254 | 254 | u32 msgcode; |
... | ... | @@ -256,7 +256,7 @@ |
256 | 256 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
257 | 257 | p80211item_uint32_t enable; |
258 | 258 | p80211item_uint32_t resultcode; |
259 | -} __attribute__ ((packed)); | |
259 | +} __packed; | |
260 | 260 | |
261 | 261 | struct p80211msg_p2req_flashdl_write { |
262 | 262 | u32 msgcode; |
... | ... | @@ -266,7 +266,7 @@ |
266 | 266 | p80211item_uint32_t len; |
267 | 267 | p80211item_unk4096_t data; |
268 | 268 | p80211item_uint32_t resultcode; |
269 | -} __attribute__ ((packed)); | |
269 | +} __packed; | |
270 | 270 | |
271 | 271 | #endif |
drivers/staging/wlan-ng/p80211mgmt.h
... | ... | @@ -222,21 +222,21 @@ |
222 | 222 | typedef struct wlan_ie { |
223 | 223 | u8 eid; |
224 | 224 | u8 len; |
225 | -} __attribute__ ((packed)) wlan_ie_t; | |
225 | +} __packed wlan_ie_t; | |
226 | 226 | |
227 | 227 | /*-- Service Set Identity (SSID) -----------------*/ |
228 | 228 | typedef struct wlan_ie_ssid { |
229 | 229 | u8 eid; |
230 | 230 | u8 len; |
231 | 231 | u8 ssid[1]; /* may be zero, ptrs may overlap */ |
232 | -} __attribute__ ((packed)) wlan_ie_ssid_t; | |
232 | +} __packed wlan_ie_ssid_t; | |
233 | 233 | |
234 | 234 | /*-- Supported Rates -----------------------------*/ |
235 | 235 | typedef struct wlan_ie_supp_rates { |
236 | 236 | u8 eid; |
237 | 237 | u8 len; |
238 | 238 | u8 rates[1]; /* had better be at LEAST one! */ |
239 | -} __attribute__ ((packed)) wlan_ie_supp_rates_t; | |
239 | +} __packed wlan_ie_supp_rates_t; | |
240 | 240 | |
241 | 241 | /*-- FH Parameter Set ----------------------------*/ |
242 | 242 | typedef struct wlan_ie_fh_parms { |
243 | 243 | |
... | ... | @@ -246,14 +246,14 @@ |
246 | 246 | u8 hopset; |
247 | 247 | u8 hoppattern; |
248 | 248 | u8 hopindex; |
249 | -} __attribute__ ((packed)) wlan_ie_fh_parms_t; | |
249 | +} __packed wlan_ie_fh_parms_t; | |
250 | 250 | |
251 | 251 | /*-- DS Parameter Set ----------------------------*/ |
252 | 252 | typedef struct wlan_ie_ds_parms { |
253 | 253 | u8 eid; |
254 | 254 | u8 len; |
255 | 255 | u8 curr_ch; |
256 | -} __attribute__ ((packed)) wlan_ie_ds_parms_t; | |
256 | +} __packed wlan_ie_ds_parms_t; | |
257 | 257 | |
258 | 258 | /*-- CF Parameter Set ----------------------------*/ |
259 | 259 | |
... | ... | @@ -264,7 +264,7 @@ |
264 | 264 | u8 cfp_period; |
265 | 265 | u16 cfp_maxdur; |
266 | 266 | u16 cfp_durremaining; |
267 | -} __attribute__ ((packed)) wlan_ie_cf_parms_t; | |
267 | +} __packed wlan_ie_cf_parms_t; | |
268 | 268 | |
269 | 269 | /*-- TIM ------------------------------------------*/ |
270 | 270 | typedef struct wlan_ie_tim { |
271 | 271 | |
272 | 272 | |
... | ... | @@ -274,21 +274,21 @@ |
274 | 274 | u8 dtim_period; |
275 | 275 | u8 bitmap_ctl; |
276 | 276 | u8 virt_bm[1]; |
277 | -} __attribute__ ((packed)) wlan_ie_tim_t; | |
277 | +} __packed wlan_ie_tim_t; | |
278 | 278 | |
279 | 279 | /*-- IBSS Parameter Set ---------------------------*/ |
280 | 280 | typedef struct wlan_ie_ibss_parms { |
281 | 281 | u8 eid; |
282 | 282 | u8 len; |
283 | 283 | u16 atim_win; |
284 | -} __attribute__ ((packed)) wlan_ie_ibss_parms_t; | |
284 | +} __packed wlan_ie_ibss_parms_t; | |
285 | 285 | |
286 | 286 | /*-- Challenge Text ------------------------------*/ |
287 | 287 | typedef struct wlan_ie_challenge { |
288 | 288 | u8 eid; |
289 | 289 | u8 len; |
290 | 290 | u8 challenge[1]; |
291 | -} __attribute__ ((packed)) wlan_ie_challenge_t; | |
291 | +} __packed wlan_ie_challenge_t; | |
292 | 292 | |
293 | 293 | /*-------------------------------------------------*/ |
294 | 294 | /* Frame Types */ |
drivers/staging/wlan-ng/p80211msg.h
drivers/staging/wlan-ng/p80211types.h
... | ... | @@ -217,49 +217,49 @@ |
217 | 217 | /* Template pascal string */ |
218 | 218 | typedef struct p80211pstr { |
219 | 219 | u8 len; |
220 | -} __attribute__ ((packed)) p80211pstr_t; | |
220 | +} __packed p80211pstr_t; | |
221 | 221 | |
222 | 222 | typedef struct p80211pstrd { |
223 | 223 | u8 len; |
224 | 224 | u8 data[0]; |
225 | -} __attribute__ ((packed)) p80211pstrd_t; | |
225 | +} __packed p80211pstrd_t; | |
226 | 226 | |
227 | 227 | /* Maximum pascal string */ |
228 | 228 | typedef struct p80211pstr255 { |
229 | 229 | u8 len; |
230 | 230 | u8 data[MAXLEN_PSTR255]; |
231 | -} __attribute__ ((packed)) p80211pstr255_t; | |
231 | +} __packed p80211pstr255_t; | |
232 | 232 | |
233 | 233 | /* pascal string for macaddress and bssid */ |
234 | 234 | typedef struct p80211pstr6 { |
235 | 235 | u8 len; |
236 | 236 | u8 data[MAXLEN_PSTR6]; |
237 | -} __attribute__ ((packed)) p80211pstr6_t; | |
237 | +} __packed p80211pstr6_t; | |
238 | 238 | |
239 | 239 | /* pascal string for channel list */ |
240 | 240 | typedef struct p80211pstr14 { |
241 | 241 | u8 len; |
242 | 242 | u8 data[MAXLEN_PSTR14]; |
243 | -} __attribute__ ((packed)) p80211pstr14_t; | |
243 | +} __packed p80211pstr14_t; | |
244 | 244 | |
245 | 245 | /* pascal string for ssid */ |
246 | 246 | typedef struct p80211pstr32 { |
247 | 247 | u8 len; |
248 | 248 | u8 data[MAXLEN_PSTR32]; |
249 | -} __attribute__ ((packed)) p80211pstr32_t; | |
249 | +} __packed p80211pstr32_t; | |
250 | 250 | |
251 | 251 | /* MAC address array */ |
252 | 252 | typedef struct p80211macarray { |
253 | 253 | u32 cnt; |
254 | 254 | u8 data[1][MAXLEN_PSTR6]; |
255 | -} __attribute__ ((packed)) p80211macarray_t; | |
255 | +} __packed p80211macarray_t; | |
256 | 256 | |
257 | 257 | /* prototype template */ |
258 | 258 | typedef struct p80211item { |
259 | 259 | u32 did; |
260 | 260 | u16 status; |
261 | 261 | u16 len; |
262 | -} __attribute__ ((packed)) p80211item_t; | |
262 | +} __packed p80211item_t; | |
263 | 263 | |
264 | 264 | /* prototype template w/ data item */ |
265 | 265 | typedef struct p80211itemd { |
... | ... | @@ -267,7 +267,7 @@ |
267 | 267 | u16 status; |
268 | 268 | u16 len; |
269 | 269 | u8 data[0]; |
270 | -} __attribute__ ((packed)) p80211itemd_t; | |
270 | +} __packed p80211itemd_t; | |
271 | 271 | |
272 | 272 | /* message data item for int, BOUNDEDINT, ENUMINT */ |
273 | 273 | typedef struct p80211item_uint32 { |
... | ... | @@ -275,7 +275,7 @@ |
275 | 275 | u16 status; |
276 | 276 | u16 len; |
277 | 277 | u32 data; |
278 | -} __attribute__ ((packed)) p80211item_uint32_t; | |
278 | +} __packed p80211item_uint32_t; | |
279 | 279 | |
280 | 280 | /* message data item for OCTETSTR, DISPLAYSTR */ |
281 | 281 | typedef struct p80211item_pstr6 { |
... | ... | @@ -283,7 +283,7 @@ |
283 | 283 | u16 status; |
284 | 284 | u16 len; |
285 | 285 | p80211pstr6_t data; |
286 | -} __attribute__ ((packed)) p80211item_pstr6_t; | |
286 | +} __packed p80211item_pstr6_t; | |
287 | 287 | |
288 | 288 | /* message data item for OCTETSTR, DISPLAYSTR */ |
289 | 289 | typedef struct p80211item_pstr14 { |
... | ... | @@ -291,7 +291,7 @@ |
291 | 291 | u16 status; |
292 | 292 | u16 len; |
293 | 293 | p80211pstr14_t data; |
294 | -} __attribute__ ((packed)) p80211item_pstr14_t; | |
294 | +} __packed p80211item_pstr14_t; | |
295 | 295 | |
296 | 296 | /* message data item for OCTETSTR, DISPLAYSTR */ |
297 | 297 | typedef struct p80211item_pstr32 { |
... | ... | @@ -299,7 +299,7 @@ |
299 | 299 | u16 status; |
300 | 300 | u16 len; |
301 | 301 | p80211pstr32_t data; |
302 | -} __attribute__ ((packed)) p80211item_pstr32_t; | |
302 | +} __packed p80211item_pstr32_t; | |
303 | 303 | |
304 | 304 | /* message data item for OCTETSTR, DISPLAYSTR */ |
305 | 305 | typedef struct p80211item_pstr255 { |
... | ... | @@ -307,7 +307,7 @@ |
307 | 307 | u16 status; |
308 | 308 | u16 len; |
309 | 309 | p80211pstr255_t data; |
310 | -} __attribute__ ((packed)) p80211item_pstr255_t; | |
310 | +} __packed p80211item_pstr255_t; | |
311 | 311 | |
312 | 312 | /* message data item for UNK 392, namely mib items */ |
313 | 313 | typedef struct p80211item_unk392 { |
... | ... | @@ -315,7 +315,7 @@ |
315 | 315 | u16 status; |
316 | 316 | u16 len; |
317 | 317 | u8 data[MAXLEN_MIBATTRIBUTE]; |
318 | -} __attribute__ ((packed)) p80211item_unk392_t; | |
318 | +} __packed p80211item_unk392_t; | |
319 | 319 | |
320 | 320 | /* message data item for UNK 1025, namely p2 pdas */ |
321 | 321 | typedef struct p80211item_unk1024 { |
... | ... | @@ -323,7 +323,7 @@ |
323 | 323 | u16 status; |
324 | 324 | u16 len; |
325 | 325 | u8 data[1024]; |
326 | -} __attribute__ ((packed)) p80211item_unk1024_t; | |
326 | +} __packed p80211item_unk1024_t; | |
327 | 327 | |
328 | 328 | /* message data item for UNK 4096, namely p2 download chunks */ |
329 | 329 | typedef struct p80211item_unk4096 { |
... | ... | @@ -331,7 +331,7 @@ |
331 | 331 | u16 status; |
332 | 332 | u16 len; |
333 | 333 | u8 data[4096]; |
334 | -} __attribute__ ((packed)) p80211item_unk4096_t; | |
334 | +} __packed p80211item_unk4096_t; | |
335 | 335 | |
336 | 336 | struct catlistitem; |
337 | 337 |