summaryrefslogtreecommitdiffstats
path: root/include/linux/ieee80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-12-28 06:00:40 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-01-03 07:01:43 -0500
commit598a5938e04ce30d837dca4c3c3326c69435342a (patch)
tree7eb83503e3c9c43932633746faed8a2bc50450dd /include/linux/ieee80211.h
parent18b559d5db47c86b10c14590aa2d26c0243c39e4 (diff)
wireless: use __packed in ieee80211.h
Use __packed instead of __attribute__((packed)). Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/linux/ieee80211.h')
-rw-r--r--include/linux/ieee80211.h84
1 files changed, 42 insertions, 42 deletions
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index 09879eb24380..5db76ebe8810 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -180,7 +180,7 @@ struct ieee80211_hdr {
180 u8 addr3[6]; 180 u8 addr3[6];
181 __le16 seq_ctrl; 181 __le16 seq_ctrl;
182 u8 addr4[6]; 182 u8 addr4[6];
183} __attribute__ ((packed)); 183} __packed;
184 184
185struct ieee80211_hdr_3addr { 185struct ieee80211_hdr_3addr {
186 __le16 frame_control; 186 __le16 frame_control;
@@ -189,7 +189,7 @@ struct ieee80211_hdr_3addr {
189 u8 addr2[6]; 189 u8 addr2[6];
190 u8 addr3[6]; 190 u8 addr3[6];
191 __le16 seq_ctrl; 191 __le16 seq_ctrl;
192} __attribute__ ((packed)); 192} __packed;
193 193
194struct ieee80211_qos_hdr { 194struct ieee80211_qos_hdr {
195 __le16 frame_control; 195 __le16 frame_control;
@@ -199,7 +199,7 @@ struct ieee80211_qos_hdr {
199 u8 addr3[6]; 199 u8 addr3[6];
200 __le16 seq_ctrl; 200 __le16 seq_ctrl;
201 __le16 qos_ctrl; 201 __le16 qos_ctrl;
202} __attribute__ ((packed)); 202} __packed;
203 203
204/** 204/**
205 * ieee80211_has_tods - check if IEEE80211_FCTL_TODS is set 205 * ieee80211_has_tods - check if IEEE80211_FCTL_TODS is set
@@ -576,7 +576,7 @@ struct ieee80211s_hdr {
576 __le32 seqnum; 576 __le32 seqnum;
577 u8 eaddr1[6]; 577 u8 eaddr1[6];
578 u8 eaddr2[6]; 578 u8 eaddr2[6];
579} __attribute__ ((packed)); 579} __packed;
580 580
581/* Mesh flags */ 581/* Mesh flags */
582#define MESH_FLAGS_AE_A4 0x1 582#define MESH_FLAGS_AE_A4 0x1
@@ -614,7 +614,7 @@ struct ieee80211_quiet_ie {
614 u8 period; 614 u8 period;
615 __le16 duration; 615 __le16 duration;
616 __le16 offset; 616 __le16 offset;
617} __attribute__ ((packed)); 617} __packed;
618 618
619/** 619/**
620 * struct ieee80211_msrment_ie 620 * struct ieee80211_msrment_ie
@@ -626,7 +626,7 @@ struct ieee80211_msrment_ie {
626 u8 mode; 626 u8 mode;
627 u8 type; 627 u8 type;
628 u8 request[0]; 628 u8 request[0];
629} __attribute__ ((packed)); 629} __packed;
630 630
631/** 631/**
632 * struct ieee80211_channel_sw_ie 632 * struct ieee80211_channel_sw_ie
@@ -637,7 +637,7 @@ struct ieee80211_channel_sw_ie {
637 u8 mode; 637 u8 mode;
638 u8 new_ch_num; 638 u8 new_ch_num;
639 u8 count; 639 u8 count;
640} __attribute__ ((packed)); 640} __packed;
641 641
642/** 642/**
643 * struct ieee80211_tim 643 * struct ieee80211_tim
@@ -650,7 +650,7 @@ struct ieee80211_tim_ie {
650 u8 bitmap_ctrl; 650 u8 bitmap_ctrl;
651 /* variable size: 1 - 251 bytes */ 651 /* variable size: 1 - 251 bytes */
652 u8 virtual_map[1]; 652 u8 virtual_map[1];
653} __attribute__ ((packed)); 653} __packed;
654 654
655/** 655/**
656 * struct ieee80211_meshconf_ie 656 * struct ieee80211_meshconf_ie
@@ -665,7 +665,7 @@ struct ieee80211_meshconf_ie {
665 u8 meshconf_auth; 665 u8 meshconf_auth;
666 u8 meshconf_form; 666 u8 meshconf_form;
667 u8 meshconf_cap; 667 u8 meshconf_cap;
668} __attribute__ ((packed)); 668} __packed;
669 669
670/** 670/**
671 * enum mesh_config_capab_flags - Mesh Configuration IE capability field flags 671 * enum mesh_config_capab_flags - Mesh Configuration IE capability field flags
@@ -695,7 +695,7 @@ struct ieee80211_rann_ie {
695 __le32 rann_seq; 695 __le32 rann_seq;
696 __le32 rann_interval; 696 __le32 rann_interval;
697 __le32 rann_metric; 697 __le32 rann_metric;
698} __attribute__ ((packed)); 698} __packed;
699 699
700enum ieee80211_rann_flags { 700enum ieee80211_rann_flags {
701 RANN_FLAG_IS_GATE = 1 << 0, 701 RANN_FLAG_IS_GATE = 1 << 0,
@@ -717,33 +717,33 @@ struct ieee80211_mgmt {
717 __le16 status_code; 717 __le16 status_code;
718 /* possibly followed by Challenge text */ 718 /* possibly followed by Challenge text */
719 u8 variable[0]; 719 u8 variable[0];
720 } __attribute__ ((packed)) auth; 720 } __packed auth;
721 struct { 721 struct {
722 __le16 reason_code; 722 __le16 reason_code;
723 } __attribute__ ((packed)) deauth; 723 } __packed deauth;
724 struct { 724 struct {
725 __le16 capab_info; 725 __le16 capab_info;
726 __le16 listen_interval; 726 __le16 listen_interval;
727 /* followed by SSID and Supported rates */ 727 /* followed by SSID and Supported rates */
728 u8 variable[0]; 728 u8 variable[0];
729 } __attribute__ ((packed)) assoc_req; 729 } __packed assoc_req;
730 struct { 730 struct {
731 __le16 capab_info; 731 __le16 capab_info;
732 __le16 status_code; 732 __le16 status_code;
733 __le16 aid; 733 __le16 aid;
734 /* followed by Supported rates */ 734 /* followed by Supported rates */
735 u8 variable[0]; 735 u8 variable[0];
736 } __attribute__ ((packed)) assoc_resp, reassoc_resp; 736 } __packed assoc_resp, reassoc_resp;
737 struct { 737 struct {
738 __le16 capab_info; 738 __le16 capab_info;
739 __le16 listen_interval; 739 __le16 listen_interval;
740 u8 current_ap[6]; 740 u8 current_ap[6];
741 /* followed by SSID and Supported rates */ 741 /* followed by SSID and Supported rates */
742 u8 variable[0]; 742 u8 variable[0];
743 } __attribute__ ((packed)) reassoc_req; 743 } __packed reassoc_req;
744 struct { 744 struct {
745 __le16 reason_code; 745 __le16 reason_code;
746 } __attribute__ ((packed)) disassoc; 746 } __packed disassoc;
747 struct { 747 struct {
748 __le64 timestamp; 748 __le64 timestamp;
749 __le16 beacon_int; 749 __le16 beacon_int;
@@ -751,11 +751,11 @@ struct ieee80211_mgmt {
751 /* followed by some of SSID, Supported rates, 751 /* followed by some of SSID, Supported rates,
752 * FH Params, DS Params, CF Params, IBSS Params, TIM */ 752 * FH Params, DS Params, CF Params, IBSS Params, TIM */
753 u8 variable[0]; 753 u8 variable[0];
754 } __attribute__ ((packed)) beacon; 754 } __packed beacon;
755 struct { 755 struct {
756 /* only variable items: SSID, Supported rates */ 756 /* only variable items: SSID, Supported rates */
757 u8 variable[0]; 757 u8 variable[0];
758 } __attribute__ ((packed)) probe_req; 758 } __packed probe_req;
759 struct { 759 struct {
760 __le64 timestamp; 760 __le64 timestamp;
761 __le16 beacon_int; 761 __le16 beacon_int;
@@ -763,7 +763,7 @@ struct ieee80211_mgmt {
763 /* followed by some of SSID, Supported rates, 763 /* followed by some of SSID, Supported rates,
764 * FH Params, DS Params, CF Params, IBSS Params */ 764 * FH Params, DS Params, CF Params, IBSS Params */
765 u8 variable[0]; 765 u8 variable[0];
766 } __attribute__ ((packed)) probe_resp; 766 } __packed probe_resp;
767 struct { 767 struct {
768 u8 category; 768 u8 category;
769 union { 769 union {
@@ -772,55 +772,55 @@ struct ieee80211_mgmt {
772 u8 dialog_token; 772 u8 dialog_token;
773 u8 status_code; 773 u8 status_code;
774 u8 variable[0]; 774 u8 variable[0];
775 } __attribute__ ((packed)) wme_action; 775 } __packed wme_action;
776 struct{ 776 struct{
777 u8 action_code; 777 u8 action_code;
778 u8 element_id; 778 u8 element_id;
779 u8 length; 779 u8 length;
780 struct ieee80211_channel_sw_ie sw_elem; 780 struct ieee80211_channel_sw_ie sw_elem;
781 } __attribute__((packed)) chan_switch; 781 } __packed chan_switch;
782 struct{ 782 struct{
783 u8 action_code; 783 u8 action_code;
784 u8 dialog_token; 784 u8 dialog_token;
785 u8 element_id; 785 u8 element_id;
786 u8 length; 786 u8 length;
787 struct ieee80211_msrment_ie msr_elem; 787 struct ieee80211_msrment_ie msr_elem;
788 } __attribute__((packed)) measurement; 788 } __packed measurement;
789 struct{ 789 struct{
790 u8 action_code; 790 u8 action_code;
791 u8 dialog_token; 791 u8 dialog_token;
792 __le16 capab; 792 __le16 capab;
793 __le16 timeout; 793 __le16 timeout;
794 __le16 start_seq_num; 794 __le16 start_seq_num;
795 } __attribute__((packed)) addba_req; 795 } __packed addba_req;
796 struct{ 796 struct{
797 u8 action_code; 797 u8 action_code;
798 u8 dialog_token; 798 u8 dialog_token;
799 __le16 status; 799 __le16 status;
800 __le16 capab; 800 __le16 capab;
801 __le16 timeout; 801 __le16 timeout;
802 } __attribute__((packed)) addba_resp; 802 } __packed addba_resp;
803 struct{ 803 struct{
804 u8 action_code; 804 u8 action_code;
805 __le16 params; 805 __le16 params;
806 __le16 reason_code; 806 __le16 reason_code;
807 } __attribute__((packed)) delba; 807 } __packed delba;
808 struct { 808 struct {
809 u8 action_code; 809 u8 action_code;
810 u8 variable[0]; 810 u8 variable[0];
811 } __attribute__((packed)) self_prot; 811 } __packed self_prot;
812 struct{ 812 struct{
813 u8 action_code; 813 u8 action_code;
814 u8 variable[0]; 814 u8 variable[0];
815 } __attribute__((packed)) mesh_action; 815 } __packed mesh_action;
816 struct { 816 struct {
817 u8 action; 817 u8 action;
818 u8 trans_id[WLAN_SA_QUERY_TR_ID_LEN]; 818 u8 trans_id[WLAN_SA_QUERY_TR_ID_LEN];
819 } __attribute__ ((packed)) sa_query; 819 } __packed sa_query;
820 struct { 820 struct {
821 u8 action; 821 u8 action;
822 u8 smps_control; 822 u8 smps_control;
823 } __attribute__ ((packed)) ht_smps; 823 } __packed ht_smps;
824 struct { 824 struct {
825 u8 action_code; 825 u8 action_code;
826 u8 dialog_token; 826 u8 dialog_token;
@@ -828,9 +828,9 @@ struct ieee80211_mgmt {
828 u8 variable[0]; 828 u8 variable[0];
829 } __packed tdls_discover_resp; 829 } __packed tdls_discover_resp;
830 } u; 830 } u;
831 } __attribute__ ((packed)) action; 831 } __packed action;
832 } u; 832 } u;
833} __attribute__ ((packed)); 833} __packed;
834 834
835/* Supported Rates value encodings in 802.11n-2009 7.3.2.2 */ 835/* Supported Rates value encodings in 802.11n-2009 7.3.2.2 */
836#define BSS_MEMBERSHIP_SELECTOR_HT_PHY 127 836#define BSS_MEMBERSHIP_SELECTOR_HT_PHY 127
@@ -846,7 +846,7 @@ struct ieee80211_mmie {
846 __le16 key_id; 846 __le16 key_id;
847 u8 sequence_number[6]; 847 u8 sequence_number[6];
848 u8 mic[8]; 848 u8 mic[8];
849} __attribute__ ((packed)); 849} __packed;
850 850
851struct ieee80211_vendor_ie { 851struct ieee80211_vendor_ie {
852 u8 element_id; 852 u8 element_id;
@@ -861,20 +861,20 @@ struct ieee80211_rts {
861 __le16 duration; 861 __le16 duration;
862 u8 ra[6]; 862 u8 ra[6];
863 u8 ta[6]; 863 u8 ta[6];
864} __attribute__ ((packed)); 864} __packed;
865 865
866struct ieee80211_cts { 866struct ieee80211_cts {
867 __le16 frame_control; 867 __le16 frame_control;
868 __le16 duration; 868 __le16 duration;
869 u8 ra[6]; 869 u8 ra[6];
870} __attribute__ ((packed)); 870} __packed;
871 871
872struct ieee80211_pspoll { 872struct ieee80211_pspoll {
873 __le16 frame_control; 873 __le16 frame_control;
874 __le16 aid; 874 __le16 aid;
875 u8 bssid[6]; 875 u8 bssid[6];
876 u8 ta[6]; 876 u8 ta[6];
877} __attribute__ ((packed)); 877} __packed;
878 878
879/* TDLS */ 879/* TDLS */
880 880
@@ -967,7 +967,7 @@ struct ieee80211_bar {
967 __u8 ta[6]; 967 __u8 ta[6];
968 __le16 control; 968 __le16 control;
969 __le16 start_seq_num; 969 __le16 start_seq_num;
970} __attribute__((packed)); 970} __packed;
971 971
972/* 802.11 BAR control masks */ 972/* 802.11 BAR control masks */
973#define IEEE80211_BAR_CTRL_ACK_POLICY_NORMAL 0x0000 973#define IEEE80211_BAR_CTRL_ACK_POLICY_NORMAL 0x0000
@@ -992,7 +992,7 @@ struct ieee80211_mcs_info {
992 __le16 rx_highest; 992 __le16 rx_highest;
993 u8 tx_params; 993 u8 tx_params;
994 u8 reserved[3]; 994 u8 reserved[3];
995} __attribute__((packed)); 995} __packed;
996 996
997/* 802.11n HT capability MSC set */ 997/* 802.11n HT capability MSC set */
998#define IEEE80211_HT_MCS_RX_HIGHEST_MASK 0x3ff 998#define IEEE80211_HT_MCS_RX_HIGHEST_MASK 0x3ff
@@ -1031,7 +1031,7 @@ struct ieee80211_ht_cap {
1031 __le16 extended_ht_cap_info; 1031 __le16 extended_ht_cap_info;
1032 __le32 tx_BF_cap_info; 1032 __le32 tx_BF_cap_info;
1033 u8 antenna_selection_info; 1033 u8 antenna_selection_info;
1034} __attribute__ ((packed)); 1034} __packed;
1035 1035
1036/* 802.11n HT capabilities masks (for cap_info) */ 1036/* 802.11n HT capabilities masks (for cap_info) */
1037#define IEEE80211_HT_CAP_LDPC_CODING 0x0001 1037#define IEEE80211_HT_CAP_LDPC_CODING 0x0001
@@ -1102,7 +1102,7 @@ struct ieee80211_ht_operation {
1102 __le16 operation_mode; 1102 __le16 operation_mode;
1103 __le16 stbc_param; 1103 __le16 stbc_param;
1104 u8 basic_set[16]; 1104 u8 basic_set[16];
1105} __attribute__ ((packed)); 1105} __packed;
1106 1106
1107/* for ht_param */ 1107/* for ht_param */
1108#define IEEE80211_HT_PARAM_CHA_SEC_OFFSET 0x03 1108#define IEEE80211_HT_PARAM_CHA_SEC_OFFSET 0x03
@@ -1839,14 +1839,14 @@ struct ieee80211_country_ie_triplet {
1839 u8 first_channel; 1839 u8 first_channel;
1840 u8 num_channels; 1840 u8 num_channels;
1841 s8 max_power; 1841 s8 max_power;
1842 } __attribute__ ((packed)) chans; 1842 } __packed chans;
1843 struct { 1843 struct {
1844 u8 reg_extension_id; 1844 u8 reg_extension_id;
1845 u8 reg_class; 1845 u8 reg_class;
1846 u8 coverage_class; 1846 u8 coverage_class;
1847 } __attribute__ ((packed)) ext; 1847 } __packed ext;
1848 }; 1848 };
1849} __attribute__ ((packed)); 1849} __packed;
1850 1850
1851enum ieee80211_timeout_interval_type { 1851enum ieee80211_timeout_interval_type {
1852 WLAN_TIMEOUT_REASSOC_DEADLINE = 1 /* 802.11r */, 1852 WLAN_TIMEOUT_REASSOC_DEADLINE = 1 /* 802.11r */,