diff options
Diffstat (limited to 'drivers/staging/ath6kl/include/common/wmi.h')
-rw-r--r-- | drivers/staging/ath6kl/include/common/wmi.h | 158 |
1 files changed, 79 insertions, 79 deletions
diff --git a/drivers/staging/ath6kl/include/common/wmi.h b/drivers/staging/ath6kl/include/common/wmi.h index d39e7282ec2..d4f8d404b6e 100644 --- a/drivers/staging/ath6kl/include/common/wmi.h +++ b/drivers/staging/ath6kl/include/common/wmi.h | |||
@@ -79,7 +79,7 @@ PREPACK struct host_app_area_s { | |||
79 | typedef PREPACK struct { | 79 | typedef PREPACK struct { |
80 | u8 dstMac[ATH_MAC_LEN]; | 80 | u8 dstMac[ATH_MAC_LEN]; |
81 | u8 srcMac[ATH_MAC_LEN]; | 81 | u8 srcMac[ATH_MAC_LEN]; |
82 | A_UINT16 typeOrLen; | 82 | u16 typeOrLen; |
83 | } POSTPACK ATH_MAC_HDR; | 83 | } POSTPACK ATH_MAC_HDR; |
84 | 84 | ||
85 | typedef PREPACK struct { | 85 | typedef PREPACK struct { |
@@ -87,7 +87,7 @@ typedef PREPACK struct { | |||
87 | u8 ssap; | 87 | u8 ssap; |
88 | u8 cntl; | 88 | u8 cntl; |
89 | u8 orgCode[3]; | 89 | u8 orgCode[3]; |
90 | A_UINT16 etherType; | 90 | u16 etherType; |
91 | } POSTPACK ATH_LLC_SNAP_HDR; | 91 | } POSTPACK ATH_LLC_SNAP_HDR; |
92 | 92 | ||
93 | typedef enum { | 93 | typedef enum { |
@@ -170,12 +170,12 @@ typedef PREPACK struct { | |||
170 | * ACL data(2) | 170 | * ACL data(2) |
171 | */ | 171 | */ |
172 | 172 | ||
173 | A_UINT16 info2; /* usage of 'info2' field(16-bit): | 173 | u16 info2; /* usage of 'info2' field(16-bit): |
174 | * b11:b0 - seq_no | 174 | * b11:b0 - seq_no |
175 | * b12 - A-MSDU? | 175 | * b12 - A-MSDU? |
176 | * b15:b13 - META_DATA_VERSION 0 - 7 | 176 | * b15:b13 - META_DATA_VERSION 0 - 7 |
177 | */ | 177 | */ |
178 | A_UINT16 reserved; | 178 | u16 reserved; |
179 | } POSTPACK WMI_DATA_HDR; | 179 | } POSTPACK WMI_DATA_HDR; |
180 | 180 | ||
181 | /* | 181 | /* |
@@ -246,12 +246,12 @@ typedef PREPACK struct { | |||
246 | u8 rix; /* rate index mapped to rate at which this packet was received. */ | 246 | u8 rix; /* rate index mapped to rate at which this packet was received. */ |
247 | u8 rssi; /* rssi of packet */ | 247 | u8 rssi; /* rssi of packet */ |
248 | u8 channel;/* rf channel during packet reception */ | 248 | u8 channel;/* rf channel during packet reception */ |
249 | A_UINT16 flags; /* a combination of WMI_RX_FLAGS_... */ | 249 | u16 flags; /* a combination of WMI_RX_FLAGS_... */ |
250 | } POSTPACK WMI_RX_META_V1; | 250 | } POSTPACK WMI_RX_META_V1; |
251 | 251 | ||
252 | #define RX_CSUM_VALID_FLAG (0x1) | 252 | #define RX_CSUM_VALID_FLAG (0x1) |
253 | typedef PREPACK struct { | 253 | typedef PREPACK struct { |
254 | A_UINT16 csum; | 254 | u16 csum; |
255 | u8 csumFlags;/* bit 0 set -partial csum valid | 255 | u8 csumFlags;/* bit 0 set -partial csum valid |
256 | bit 1 set -test mode */ | 256 | bit 1 set -test mode */ |
257 | } POSTPACK WMI_RX_META_V2; | 257 | } POSTPACK WMI_RX_META_V2; |
@@ -264,15 +264,15 @@ typedef PREPACK struct { | |||
264 | * Control Path | 264 | * Control Path |
265 | */ | 265 | */ |
266 | typedef PREPACK struct { | 266 | typedef PREPACK struct { |
267 | A_UINT16 commandId; | 267 | u16 commandId; |
268 | /* | 268 | /* |
269 | * info1 - 16 bits | 269 | * info1 - 16 bits |
270 | * b03:b00 - id | 270 | * b03:b00 - id |
271 | * b15:b04 - unused | 271 | * b15:b04 - unused |
272 | */ | 272 | */ |
273 | A_UINT16 info1; | 273 | u16 info1; |
274 | 274 | ||
275 | A_UINT16 reserved; /* For alignment */ | 275 | u16 reserved; /* For alignment */ |
276 | } POSTPACK WMI_CMD_HDR; /* used for commands and events */ | 276 | } POSTPACK WMI_CMD_HDR; /* used for commands and events */ |
277 | 277 | ||
278 | /* | 278 | /* |
@@ -531,7 +531,7 @@ typedef PREPACK struct { | |||
531 | u8 groupCryptoLen; | 531 | u8 groupCryptoLen; |
532 | u8 ssidLength; | 532 | u8 ssidLength; |
533 | A_UCHAR ssid[WMI_MAX_SSID_LEN]; | 533 | A_UCHAR ssid[WMI_MAX_SSID_LEN]; |
534 | A_UINT16 channel; | 534 | u16 channel; |
535 | u8 bssid[ATH_MAC_LEN]; | 535 | u8 bssid[ATH_MAC_LEN]; |
536 | A_UINT32 ctrl_flags; | 536 | A_UINT32 ctrl_flags; |
537 | } POSTPACK WMI_CONNECT_CMD; | 537 | } POSTPACK WMI_CONNECT_CMD; |
@@ -540,7 +540,7 @@ typedef PREPACK struct { | |||
540 | * WMI_RECONNECT_CMDID | 540 | * WMI_RECONNECT_CMDID |
541 | */ | 541 | */ |
542 | typedef PREPACK struct { | 542 | typedef PREPACK struct { |
543 | A_UINT16 channel; /* hint */ | 543 | u16 channel; /* hint */ |
544 | u8 bssid[ATH_MAC_LEN]; /* mandatory if set */ | 544 | u8 bssid[ATH_MAC_LEN]; /* mandatory if set */ |
545 | } POSTPACK WMI_RECONNECT_CMD; | 545 | } POSTPACK WMI_RECONNECT_CMD; |
546 | 546 | ||
@@ -641,7 +641,7 @@ typedef PREPACK struct { | |||
641 | A_UINT32 forceScanInterval; /* Time interval between scans (milliseconds)*/ | 641 | A_UINT32 forceScanInterval; /* Time interval between scans (milliseconds)*/ |
642 | u8 scanType; /* WMI_SCAN_TYPE */ | 642 | u8 scanType; /* WMI_SCAN_TYPE */ |
643 | u8 numChannels; /* how many channels follow */ | 643 | u8 numChannels; /* how many channels follow */ |
644 | A_UINT16 channelList[1]; /* channels in Mhz */ | 644 | u16 channelList[1]; /* channels in Mhz */ |
645 | } POSTPACK WMI_START_SCAN_CMD; | 645 | } POSTPACK WMI_START_SCAN_CMD; |
646 | 646 | ||
647 | /* | 647 | /* |
@@ -676,15 +676,15 @@ typedef enum { | |||
676 | 676 | ||
677 | 677 | ||
678 | typedef PREPACK struct { | 678 | typedef PREPACK struct { |
679 | A_UINT16 fg_start_period; /* seconds */ | 679 | u16 fg_start_period; /* seconds */ |
680 | A_UINT16 fg_end_period; /* seconds */ | 680 | u16 fg_end_period; /* seconds */ |
681 | A_UINT16 bg_period; /* seconds */ | 681 | u16 bg_period; /* seconds */ |
682 | A_UINT16 maxact_chdwell_time; /* msec */ | 682 | u16 maxact_chdwell_time; /* msec */ |
683 | A_UINT16 pas_chdwell_time; /* msec */ | 683 | u16 pas_chdwell_time; /* msec */ |
684 | u8 shortScanRatio; /* how many shorts scan for one long */ | 684 | u8 shortScanRatio; /* how many shorts scan for one long */ |
685 | u8 scanCtrlFlags; | 685 | u8 scanCtrlFlags; |
686 | A_UINT16 minact_chdwell_time; /* msec */ | 686 | u16 minact_chdwell_time; /* msec */ |
687 | A_UINT16 maxact_scan_per_ssid; /* max active scans per ssid */ | 687 | u16 maxact_scan_per_ssid; /* max active scans per ssid */ |
688 | A_UINT32 max_dfsch_act_time; /* msecs */ | 688 | A_UINT32 max_dfsch_act_time; /* msecs */ |
689 | } POSTPACK WMI_SCAN_PARAMS_CMD; | 689 | } POSTPACK WMI_SCAN_PARAMS_CMD; |
690 | 690 | ||
@@ -705,7 +705,7 @@ typedef enum { | |||
705 | typedef PREPACK struct { | 705 | typedef PREPACK struct { |
706 | u8 bssFilter; /* see WMI_BSS_FILTER */ | 706 | u8 bssFilter; /* see WMI_BSS_FILTER */ |
707 | u8 reserved1; /* For alignment */ | 707 | u8 reserved1; /* For alignment */ |
708 | A_UINT16 reserved2; /* For alignment */ | 708 | u16 reserved2; /* For alignment */ |
709 | A_UINT32 ieMask; | 709 | A_UINT32 ieMask; |
710 | } POSTPACK WMI_BSS_FILTER_CMD; | 710 | } POSTPACK WMI_BSS_FILTER_CMD; |
711 | 711 | ||
@@ -737,15 +737,15 @@ typedef PREPACK struct { | |||
737 | #define MAX_LISTEN_BEACONS 50 | 737 | #define MAX_LISTEN_BEACONS 50 |
738 | 738 | ||
739 | typedef PREPACK struct { | 739 | typedef PREPACK struct { |
740 | A_UINT16 listenInterval; | 740 | u16 listenInterval; |
741 | A_UINT16 numBeacons; | 741 | u16 numBeacons; |
742 | } POSTPACK WMI_LISTEN_INT_CMD; | 742 | } POSTPACK WMI_LISTEN_INT_CMD; |
743 | 743 | ||
744 | /* | 744 | /* |
745 | * WMI_SET_BEACON_INT_CMDID | 745 | * WMI_SET_BEACON_INT_CMDID |
746 | */ | 746 | */ |
747 | typedef PREPACK struct { | 747 | typedef PREPACK struct { |
748 | A_UINT16 beaconInterval; | 748 | u16 beaconInterval; |
749 | } POSTPACK WMI_BEACON_INT_CMD; | 749 | } POSTPACK WMI_BEACON_INT_CMD; |
750 | 750 | ||
751 | /* | 751 | /* |
@@ -759,8 +759,8 @@ typedef PREPACK struct { | |||
759 | #define MAX_BMISS_BEACONS 50 | 759 | #define MAX_BMISS_BEACONS 50 |
760 | 760 | ||
761 | typedef PREPACK struct { | 761 | typedef PREPACK struct { |
762 | A_UINT16 bmissTime; | 762 | u16 bmissTime; |
763 | A_UINT16 numBeacons; | 763 | u16 numBeacons; |
764 | } POSTPACK WMI_BMISS_TIME_CMD; | 764 | } POSTPACK WMI_BMISS_TIME_CMD; |
765 | 765 | ||
766 | /* | 766 | /* |
@@ -819,12 +819,12 @@ typedef enum { | |||
819 | } POWER_SAVE_FAIL_EVENT_POLICY; | 819 | } POWER_SAVE_FAIL_EVENT_POLICY; |
820 | 820 | ||
821 | typedef PREPACK struct { | 821 | typedef PREPACK struct { |
822 | A_UINT16 idle_period; /* msec */ | 822 | u16 idle_period; /* msec */ |
823 | A_UINT16 pspoll_number; | 823 | u16 pspoll_number; |
824 | A_UINT16 dtim_policy; | 824 | u16 dtim_policy; |
825 | A_UINT16 tx_wakeup_policy; | 825 | u16 tx_wakeup_policy; |
826 | A_UINT16 num_tx_to_wakeup; | 826 | u16 num_tx_to_wakeup; |
827 | A_UINT16 ps_fail_event_policy; | 827 | u16 ps_fail_event_policy; |
828 | } POSTPACK WMI_POWER_PARAMS_CMD; | 828 | } POSTPACK WMI_POWER_PARAMS_CMD; |
829 | 829 | ||
830 | /* Adhoc power save types */ | 830 | /* Adhoc power save types */ |
@@ -838,8 +838,8 @@ typedef enum { | |||
838 | typedef PREPACK struct { | 838 | typedef PREPACK struct { |
839 | u8 power_saving; | 839 | u8 power_saving; |
840 | u8 ttl; /* number of beacon periods */ | 840 | u8 ttl; /* number of beacon periods */ |
841 | A_UINT16 atim_windows; /* msec */ | 841 | u16 atim_windows; /* msec */ |
842 | A_UINT16 timeout_value; /* msec */ | 842 | u16 timeout_value; /* msec */ |
843 | } POSTPACK WMI_IBSS_PM_CAPS_CMD; | 843 | } POSTPACK WMI_IBSS_PM_CAPS_CMD; |
844 | 844 | ||
845 | /* AP power save types */ | 845 | /* AP power save types */ |
@@ -866,8 +866,8 @@ typedef enum { | |||
866 | } APSD_TIM_POLICY; | 866 | } APSD_TIM_POLICY; |
867 | 867 | ||
868 | typedef PREPACK struct { | 868 | typedef PREPACK struct { |
869 | A_UINT16 psPollTimeout; /* msec */ | 869 | u16 psPollTimeout; /* msec */ |
870 | A_UINT16 triggerTimeout; /* msec */ | 870 | u16 triggerTimeout; /* msec */ |
871 | A_UINT32 apsdTimPolicy; /* TIM behavior with ques APSD enabled. Default is IGNORE_TIM_ALL_QUEUES_APSD */ | 871 | A_UINT32 apsdTimPolicy; /* TIM behavior with ques APSD enabled. Default is IGNORE_TIM_ALL_QUEUES_APSD */ |
872 | A_UINT32 simulatedAPSDTimPolicy; /* TIM behavior with simulated APSD enabled. Default is PROCESS_TIM_SIMULATED_APSD */ | 872 | A_UINT32 simulatedAPSDTimPolicy; /* TIM behavior with simulated APSD enabled. Default is PROCESS_TIM_SIMULATED_APSD */ |
873 | } POSTPACK WMI_POWERSAVE_TIMERS_POLICY_CMD; | 873 | } POSTPACK WMI_POWERSAVE_TIMERS_POLICY_CMD; |
@@ -876,7 +876,7 @@ typedef PREPACK struct { | |||
876 | * WMI_SET_VOICE_PKT_SIZE_CMDID | 876 | * WMI_SET_VOICE_PKT_SIZE_CMDID |
877 | */ | 877 | */ |
878 | typedef PREPACK struct { | 878 | typedef PREPACK struct { |
879 | A_UINT16 voicePktSize; | 879 | u16 voicePktSize; |
880 | } POSTPACK WMI_SET_VOICE_PKT_SIZE_CMD; | 880 | } POSTPACK WMI_SET_VOICE_PKT_SIZE_CMD; |
881 | 881 | ||
882 | /* | 882 | /* |
@@ -941,8 +941,8 @@ typedef PREPACK struct { | |||
941 | A_UINT32 minPhyRate; /* in bps */ | 941 | A_UINT32 minPhyRate; /* in bps */ |
942 | A_UINT32 sba; | 942 | A_UINT32 sba; |
943 | A_UINT32 mediumTime; | 943 | A_UINT32 mediumTime; |
944 | A_UINT16 nominalMSDU; /* in octects */ | 944 | u16 nominalMSDU; /* in octects */ |
945 | A_UINT16 maxMSDU; /* in octects */ | 945 | u16 maxMSDU; /* in octects */ |
946 | u8 trafficClass; | 946 | u8 trafficClass; |
947 | u8 trafficDirection; /* DIR_TYPE */ | 947 | u8 trafficDirection; /* DIR_TYPE */ |
948 | u8 rxQueueNum; | 948 | u8 rxQueueNum; |
@@ -982,7 +982,7 @@ typedef PREPACK struct { | |||
982 | u8 scanParam; /* set if enable scan */ | 982 | u8 scanParam; /* set if enable scan */ |
983 | u8 phyMode; /* see WMI_PHY_MODE */ | 983 | u8 phyMode; /* see WMI_PHY_MODE */ |
984 | u8 numChannels; /* how many channels follow */ | 984 | u8 numChannels; /* how many channels follow */ |
985 | A_UINT16 channelList[1]; /* channels in Mhz */ | 985 | u16 channelList[1]; /* channels in Mhz */ |
986 | } POSTPACK WMI_CHANNEL_PARAMS_CMD; | 986 | } POSTPACK WMI_CHANNEL_PARAMS_CMD; |
987 | 987 | ||
988 | 988 | ||
@@ -1063,7 +1063,7 @@ typedef PREPACK struct { | |||
1063 | }POSTPACK WMI_SET_LPREAMBLE_CMD; | 1063 | }POSTPACK WMI_SET_LPREAMBLE_CMD; |
1064 | 1064 | ||
1065 | typedef PREPACK struct { | 1065 | typedef PREPACK struct { |
1066 | A_UINT16 threshold; | 1066 | u16 threshold; |
1067 | }POSTPACK WMI_SET_RTS_CMD; | 1067 | }POSTPACK WMI_SET_RTS_CMD; |
1068 | 1068 | ||
1069 | /* | 1069 | /* |
@@ -1132,7 +1132,7 @@ typedef PREPACK struct { | |||
1132 | #define WMI_DEFAULT_AIFSN_ACPARAM 2 | 1132 | #define WMI_DEFAULT_AIFSN_ACPARAM 2 |
1133 | #define WMI_MAX_AIFSN_ACPARAM 15 | 1133 | #define WMI_MAX_AIFSN_ACPARAM 15 |
1134 | typedef PREPACK struct { | 1134 | typedef PREPACK struct { |
1135 | A_UINT16 txop; /* in units of 32 usec */ | 1135 | u16 txop; /* in units of 32 usec */ |
1136 | u8 eCWmin; | 1136 | u8 eCWmin; |
1137 | u8 eCWmax; | 1137 | u8 eCWmax; |
1138 | u8 aifsn; | 1138 | u8 aifsn; |
@@ -1208,7 +1208,7 @@ typedef PREPACK struct { | |||
1208 | } POSTPACK WMI_BSS_BIAS_INFO; | 1208 | } POSTPACK WMI_BSS_BIAS_INFO; |
1209 | 1209 | ||
1210 | typedef PREPACK struct WMI_LOWRSSI_SCAN_PARAMS { | 1210 | typedef PREPACK struct WMI_LOWRSSI_SCAN_PARAMS { |
1211 | A_UINT16 lowrssi_scan_period; | 1211 | u16 lowrssi_scan_period; |
1212 | A_INT16 lowrssi_scan_threshold; | 1212 | A_INT16 lowrssi_scan_threshold; |
1213 | A_INT16 lowrssi_roam_threshold; | 1213 | A_INT16 lowrssi_roam_threshold; |
1214 | u8 roam_rssi_floor; | 1214 | u8 roam_rssi_floor; |
@@ -1866,7 +1866,7 @@ typedef PREPACK struct { | |||
1866 | 1866 | ||
1867 | 1867 | ||
1868 | typedef PREPACK struct { | 1868 | typedef PREPACK struct { |
1869 | A_UINT16 cmd_buf_sz; /* HCI cmd buffer size */ | 1869 | u16 cmd_buf_sz; /* HCI cmd buffer size */ |
1870 | u8 buf[1]; /* Absolute HCI cmd */ | 1870 | u8 buf[1]; /* Absolute HCI cmd */ |
1871 | } POSTPACK WMI_HCI_CMD; | 1871 | } POSTPACK WMI_HCI_CMD; |
1872 | 1872 | ||
@@ -1880,7 +1880,7 @@ typedef PREPACK struct { | |||
1880 | typedef PREPACK struct { | 1880 | typedef PREPACK struct { |
1881 | u8 reserved1; | 1881 | u8 reserved1; |
1882 | u8 numChannels; /* number of channels in reply */ | 1882 | u8 numChannels; /* number of channels in reply */ |
1883 | A_UINT16 channelList[1]; /* channel in Mhz */ | 1883 | u16 channelList[1]; /* channel in Mhz */ |
1884 | } POSTPACK WMI_CHANNEL_LIST_REPLY; | 1884 | } POSTPACK WMI_CHANNEL_LIST_REPLY; |
1885 | 1885 | ||
1886 | typedef enum { | 1886 | typedef enum { |
@@ -2002,10 +2002,10 @@ typedef PREPACK struct { | |||
2002 | * Connect Event | 2002 | * Connect Event |
2003 | */ | 2003 | */ |
2004 | typedef PREPACK struct { | 2004 | typedef PREPACK struct { |
2005 | A_UINT16 channel; | 2005 | u16 channel; |
2006 | u8 bssid[ATH_MAC_LEN]; | 2006 | u8 bssid[ATH_MAC_LEN]; |
2007 | A_UINT16 listenInterval; | 2007 | u16 listenInterval; |
2008 | A_UINT16 beaconInterval; | 2008 | u16 beaconInterval; |
2009 | A_UINT32 networkType; | 2009 | A_UINT32 networkType; |
2010 | u8 beaconIeLen; | 2010 | u8 beaconIeLen; |
2011 | u8 assocReqLen; | 2011 | u8 assocReqLen; |
@@ -2033,7 +2033,7 @@ typedef enum { | |||
2033 | } WMI_DISCONNECT_REASON; | 2033 | } WMI_DISCONNECT_REASON; |
2034 | 2034 | ||
2035 | typedef PREPACK struct { | 2035 | typedef PREPACK struct { |
2036 | A_UINT16 protocolReasonStatus; /* reason code, see 802.11 spec. */ | 2036 | u16 protocolReasonStatus; /* reason code, see 802.11 spec. */ |
2037 | u8 bssid[ATH_MAC_LEN]; /* set if known */ | 2037 | u8 bssid[ATH_MAC_LEN]; /* set if known */ |
2038 | u8 disconnectReason ; /* see WMI_DISCONNECT_REASON */ | 2038 | u8 disconnectReason ; /* see WMI_DISCONNECT_REASON */ |
2039 | u8 assocRespLen; | 2039 | u8 assocRespLen; |
@@ -2059,7 +2059,7 @@ enum { | |||
2059 | }; | 2059 | }; |
2060 | 2060 | ||
2061 | typedef PREPACK struct { | 2061 | typedef PREPACK struct { |
2062 | A_UINT16 channel; | 2062 | u16 channel; |
2063 | u8 frameType; /* see WMI_BI_FTYPE */ | 2063 | u8 frameType; /* see WMI_BI_FTYPE */ |
2064 | u8 snr; | 2064 | u8 snr; |
2065 | A_INT16 rssi; | 2065 | A_INT16 rssi; |
@@ -2076,11 +2076,11 @@ typedef PREPACK struct { | |||
2076 | * - Remove rssi and compute it on the host. rssi = snr - 95 | 2076 | * - Remove rssi and compute it on the host. rssi = snr - 95 |
2077 | */ | 2077 | */ |
2078 | typedef PREPACK struct { | 2078 | typedef PREPACK struct { |
2079 | A_UINT16 channel; | 2079 | u16 channel; |
2080 | u8 frameType; /* see WMI_BI_FTYPE */ | 2080 | u8 frameType; /* see WMI_BI_FTYPE */ |
2081 | u8 snr; | 2081 | u8 snr; |
2082 | u8 bssid[ATH_MAC_LEN]; | 2082 | u8 bssid[ATH_MAC_LEN]; |
2083 | A_UINT16 ieMask; | 2083 | u16 ieMask; |
2084 | } POSTPACK WMI_BSS_INFO_HDR2; | 2084 | } POSTPACK WMI_BSS_INFO_HDR2; |
2085 | 2085 | ||
2086 | /* | 2086 | /* |
@@ -2093,7 +2093,7 @@ typedef enum { | |||
2093 | } WMI_ERROR_CODE; | 2093 | } WMI_ERROR_CODE; |
2094 | 2094 | ||
2095 | typedef PREPACK struct { | 2095 | typedef PREPACK struct { |
2096 | A_UINT16 commandId; | 2096 | u16 commandId; |
2097 | u8 errorCode; | 2097 | u8 errorCode; |
2098 | } POSTPACK WMI_CMD_ERROR_EVENT; | 2098 | } POSTPACK WMI_CMD_ERROR_EVENT; |
2099 | 2099 | ||
@@ -2190,7 +2190,7 @@ typedef enum { | |||
2190 | } WMI_OPT_FTYPE; | 2190 | } WMI_OPT_FTYPE; |
2191 | 2191 | ||
2192 | typedef PREPACK struct { | 2192 | typedef PREPACK struct { |
2193 | A_UINT16 optIEDataLen; | 2193 | u16 optIEDataLen; |
2194 | u8 frmType; | 2194 | u8 frmType; |
2195 | u8 dstAddr[ATH_MAC_LEN]; | 2195 | u8 dstAddr[ATH_MAC_LEN]; |
2196 | u8 bssid[ATH_MAC_LEN]; | 2196 | u8 bssid[ATH_MAC_LEN]; |
@@ -2205,7 +2205,7 @@ typedef PREPACK struct { | |||
2205 | * The 802.11 header is not included. | 2205 | * The 802.11 header is not included. |
2206 | */ | 2206 | */ |
2207 | typedef PREPACK struct { | 2207 | typedef PREPACK struct { |
2208 | A_UINT16 channel; | 2208 | u16 channel; |
2209 | u8 frameType; /* see WMI_OPT_FTYPE */ | 2209 | u8 frameType; /* see WMI_OPT_FTYPE */ |
2210 | A_INT8 snr; | 2210 | A_INT8 snr; |
2211 | u8 srcAddr[ATH_MAC_LEN]; | 2211 | u8 srcAddr[ATH_MAC_LEN]; |
@@ -2266,19 +2266,19 @@ typedef PREPACK struct { | |||
2266 | 2266 | ||
2267 | typedef PREPACK struct { | 2267 | typedef PREPACK struct { |
2268 | A_UINT32 power_save_failure_cnt; | 2268 | A_UINT32 power_save_failure_cnt; |
2269 | A_UINT16 stop_tx_failure_cnt; | 2269 | u16 stop_tx_failure_cnt; |
2270 | A_UINT16 atim_tx_failure_cnt; | 2270 | u16 atim_tx_failure_cnt; |
2271 | A_UINT16 atim_rx_failure_cnt; | 2271 | u16 atim_rx_failure_cnt; |
2272 | A_UINT16 bcn_rx_failure_cnt; | 2272 | u16 bcn_rx_failure_cnt; |
2273 | }POSTPACK pm_stats_t; | 2273 | }POSTPACK pm_stats_t; |
2274 | 2274 | ||
2275 | typedef PREPACK struct { | 2275 | typedef PREPACK struct { |
2276 | A_UINT32 cs_bmiss_cnt; | 2276 | A_UINT32 cs_bmiss_cnt; |
2277 | A_UINT32 cs_lowRssi_cnt; | 2277 | A_UINT32 cs_lowRssi_cnt; |
2278 | A_UINT16 cs_connect_cnt; | 2278 | u16 cs_connect_cnt; |
2279 | A_UINT16 cs_disconnect_cnt; | 2279 | u16 cs_disconnect_cnt; |
2280 | A_INT16 cs_aveBeacon_rssi; | 2280 | A_INT16 cs_aveBeacon_rssi; |
2281 | A_UINT16 cs_roam_count; | 2281 | u16 cs_roam_count; |
2282 | A_INT16 cs_rssi; | 2282 | A_INT16 cs_rssi; |
2283 | u8 cs_snr; | 2283 | u8 cs_snr; |
2284 | u8 cs_aveBeacon_snr; | 2284 | u8 cs_aveBeacon_snr; |
@@ -2299,7 +2299,7 @@ typedef PREPACK struct { | |||
2299 | 2299 | ||
2300 | typedef PREPACK struct { | 2300 | typedef PREPACK struct { |
2301 | A_UINT32 wow_num_pkts_dropped; | 2301 | A_UINT32 wow_num_pkts_dropped; |
2302 | A_UINT16 wow_num_events_discarded; | 2302 | u16 wow_num_events_discarded; |
2303 | u8 wow_num_host_pkt_wakeups; | 2303 | u8 wow_num_host_pkt_wakeups; |
2304 | u8 wow_num_host_event_wakeups; | 2304 | u8 wow_num_host_event_wakeups; |
2305 | } POSTPACK wlan_wow_stats_t; | 2305 | } POSTPACK wlan_wow_stats_t; |
@@ -2409,8 +2409,8 @@ typedef PREPACK struct { | |||
2409 | 2409 | ||
2410 | 2410 | ||
2411 | typedef PREPACK struct { | 2411 | typedef PREPACK struct { |
2412 | A_UINT16 roamMode; | 2412 | u16 roamMode; |
2413 | A_UINT16 numEntries; | 2413 | u16 numEntries; |
2414 | WMI_BSS_ROAM_INFO bssRoamInfo[1]; | 2414 | WMI_BSS_ROAM_INFO bssRoamInfo[1]; |
2415 | } POSTPACK WMI_TARGET_ROAM_TBL; | 2415 | } POSTPACK WMI_TARGET_ROAM_TBL; |
2416 | 2416 | ||
@@ -2418,7 +2418,7 @@ typedef PREPACK struct { | |||
2418 | * WMI_HCI_EVENT_EVENTID | 2418 | * WMI_HCI_EVENT_EVENTID |
2419 | */ | 2419 | */ |
2420 | typedef PREPACK struct { | 2420 | typedef PREPACK struct { |
2421 | A_UINT16 evt_buf_sz; /* HCI event buffer size */ | 2421 | u16 evt_buf_sz; /* HCI event buffer size */ |
2422 | u8 buf[1]; /* HCI event */ | 2422 | u8 buf[1]; /* HCI event */ |
2423 | } POSTPACK WMI_HCI_EVENT; | 2423 | } POSTPACK WMI_HCI_EVENT; |
2424 | 2424 | ||
@@ -2451,7 +2451,7 @@ typedef enum { | |||
2451 | 2451 | ||
2452 | typedef PREPACK struct { | 2452 | typedef PREPACK struct { |
2453 | u8 bssid[ATH_MAC_LEN]; | 2453 | u8 bssid[ATH_MAC_LEN]; |
2454 | A_UINT16 channel; | 2454 | u16 channel; |
2455 | } POSTPACK WMI_AP_INFO_V1; | 2455 | } POSTPACK WMI_AP_INFO_V1; |
2456 | 2456 | ||
2457 | typedef PREPACK union { | 2457 | typedef PREPACK union { |
@@ -2728,7 +2728,7 @@ typedef enum { | |||
2728 | typedef PREPACK struct { | 2728 | typedef PREPACK struct { |
2729 | u32 enable_wow; | 2729 | u32 enable_wow; |
2730 | WMI_WOW_FILTER filter; | 2730 | WMI_WOW_FILTER filter; |
2731 | A_UINT16 hostReqDelay; | 2731 | u16 hostReqDelay; |
2732 | } POSTPACK WMI_SET_WOW_MODE_CMD; | 2732 | } POSTPACK WMI_SET_WOW_MODE_CMD; |
2733 | 2733 | ||
2734 | typedef PREPACK struct { | 2734 | typedef PREPACK struct { |
@@ -2754,8 +2754,8 @@ typedef PREPACK struct { | |||
2754 | } POSTPACK WMI_ADD_WOW_PATTERN_CMD; | 2754 | } POSTPACK WMI_ADD_WOW_PATTERN_CMD; |
2755 | 2755 | ||
2756 | typedef PREPACK struct { | 2756 | typedef PREPACK struct { |
2757 | A_UINT16 filter_list_id; | 2757 | u16 filter_list_id; |
2758 | A_UINT16 filter_id; | 2758 | u16 filter_id; |
2759 | } POSTPACK WMI_DEL_WOW_PATTERN_CMD; | 2759 | } POSTPACK WMI_DEL_WOW_PATTERN_CMD; |
2760 | 2760 | ||
2761 | typedef PREPACK struct { | 2761 | typedef PREPACK struct { |
@@ -2797,7 +2797,7 @@ typedef PREPACK struct { | |||
2797 | } POSTPACK WMI_PMKID_LIST_REPLY; | 2797 | } POSTPACK WMI_PMKID_LIST_REPLY; |
2798 | 2798 | ||
2799 | typedef PREPACK struct { | 2799 | typedef PREPACK struct { |
2800 | A_UINT16 oldChannel; | 2800 | u16 oldChannel; |
2801 | A_UINT32 newChannel; | 2801 | A_UINT32 newChannel; |
2802 | } POSTPACK WMI_CHANNEL_CHANGE_EVENT; | 2802 | } POSTPACK WMI_CHANNEL_CHANGE_EVENT; |
2803 | 2803 | ||
@@ -2810,7 +2810,7 @@ typedef PREPACK struct { | |||
2810 | typedef PREPACK struct { | 2810 | typedef PREPACK struct { |
2811 | u8 tid; | 2811 | u8 tid; |
2812 | u8 win_sz; | 2812 | u8 win_sz; |
2813 | A_UINT16 st_seq_no; | 2813 | u16 st_seq_no; |
2814 | u8 status; /* f/w response for ADDBA Req; OK(0) or failure(!=0) */ | 2814 | u8 status; /* f/w response for ADDBA Req; OK(0) or failure(!=0) */ |
2815 | } POSTPACK WMI_ADDBA_REQ_EVENT; | 2815 | } POSTPACK WMI_ADDBA_REQ_EVENT; |
2816 | 2816 | ||
@@ -2818,7 +2818,7 @@ typedef PREPACK struct { | |||
2818 | typedef PREPACK struct { | 2818 | typedef PREPACK struct { |
2819 | u8 tid; | 2819 | u8 tid; |
2820 | u8 status; /* OK(0), failure (!=0) */ | 2820 | u8 status; /* OK(0), failure (!=0) */ |
2821 | A_UINT16 amsdu_sz; /* Three values: Not supported(0), 3839, 8k */ | 2821 | u16 amsdu_sz; /* Three values: Not supported(0), 3839, 8k */ |
2822 | } POSTPACK WMI_ADDBA_RESP_EVENT; | 2822 | } POSTPACK WMI_ADDBA_RESP_EVENT; |
2823 | 2823 | ||
2824 | /* WMI_DELBA_EVENTID | 2824 | /* WMI_DELBA_EVENTID |
@@ -2828,7 +2828,7 @@ typedef PREPACK struct { | |||
2828 | typedef PREPACK struct { | 2828 | typedef PREPACK struct { |
2829 | u8 tid; | 2829 | u8 tid; |
2830 | u8 is_peer_initiator; | 2830 | u8 is_peer_initiator; |
2831 | A_UINT16 reason_code; | 2831 | u16 reason_code; |
2832 | } POSTPACK WMI_DELBA_EVENT; | 2832 | } POSTPACK WMI_DELBA_EVENT; |
2833 | 2833 | ||
2834 | 2834 | ||
@@ -2847,8 +2847,8 @@ typedef PREPACK struct { | |||
2847 | * on each tid, in each direction | 2847 | * on each tid, in each direction |
2848 | */ | 2848 | */ |
2849 | typedef PREPACK struct { | 2849 | typedef PREPACK struct { |
2850 | A_UINT16 tx_allow_aggr; /* 16-bit mask to allow uplink ADDBA negotiation - bit position indicates tid*/ | 2850 | u16 tx_allow_aggr; /* 16-bit mask to allow uplink ADDBA negotiation - bit position indicates tid*/ |
2851 | A_UINT16 rx_allow_aggr; /* 16-bit mask to allow donwlink ADDBA negotiation - bit position indicates tid*/ | 2851 | u16 rx_allow_aggr; /* 16-bit mask to allow donwlink ADDBA negotiation - bit position indicates tid*/ |
2852 | } POSTPACK WMI_ALLOW_AGGR_CMD; | 2852 | } POSTPACK WMI_ALLOW_AGGR_CMD; |
2853 | 2853 | ||
2854 | /* WMI_ADDBA_REQ_CMDID | 2854 | /* WMI_ADDBA_REQ_CMDID |
@@ -2973,7 +2973,7 @@ typedef PREPACK struct { | |||
2973 | } POSTPACK WMI_AP_ACL_MAC_CMD; | 2973 | } POSTPACK WMI_AP_ACL_MAC_CMD; |
2974 | 2974 | ||
2975 | typedef PREPACK struct { | 2975 | typedef PREPACK struct { |
2976 | A_UINT16 index; | 2976 | u16 index; |
2977 | u8 acl_mac[AP_ACL_SIZE][ATH_MAC_LEN]; | 2977 | u8 acl_mac[AP_ACL_SIZE][ATH_MAC_LEN]; |
2978 | u8 wildcard[AP_ACL_SIZE]; | 2978 | u8 wildcard[AP_ACL_SIZE]; |
2979 | u8 policy; | 2979 | u8 policy; |
@@ -2991,7 +2991,7 @@ typedef PREPACK struct { | |||
2991 | */ | 2991 | */ |
2992 | typedef PREPACK struct { | 2992 | typedef PREPACK struct { |
2993 | u8 mac[ATH_MAC_LEN]; | 2993 | u8 mac[ATH_MAC_LEN]; |
2994 | A_UINT16 reason; /* 802.11 reason code */ | 2994 | u16 reason; /* 802.11 reason code */ |
2995 | u8 cmd; /* operation to perform */ | 2995 | u8 cmd; /* operation to perform */ |
2996 | #define WMI_AP_MLME_ASSOC 1 /* associate station */ | 2996 | #define WMI_AP_MLME_ASSOC 1 /* associate station */ |
2997 | #define WMI_AP_DISASSOC 2 /* disassociate station */ | 2997 | #define WMI_AP_DISASSOC 2 /* disassociate station */ |
@@ -3011,7 +3011,7 @@ typedef PREPACK struct { | |||
3011 | 3011 | ||
3012 | typedef PREPACK struct { | 3012 | typedef PREPACK struct { |
3013 | u32 flag; | 3013 | u32 flag; |
3014 | A_UINT16 aid; | 3014 | u16 aid; |
3015 | } POSTPACK WMI_AP_SET_PVB_CMD; | 3015 | } POSTPACK WMI_AP_SET_PVB_CMD; |
3016 | 3016 | ||
3017 | #define WMI_DISABLE_REGULATORY_CODE "FF" | 3017 | #define WMI_DISABLE_REGULATORY_CODE "FF" |
@@ -3074,7 +3074,7 @@ typedef PREPACK struct { | |||
3074 | /* AP mode events */ | 3074 | /* AP mode events */ |
3075 | /* WMI_PS_POLL_EVENT */ | 3075 | /* WMI_PS_POLL_EVENT */ |
3076 | typedef PREPACK struct { | 3076 | typedef PREPACK struct { |
3077 | A_UINT16 aid; | 3077 | u16 aid; |
3078 | } POSTPACK WMI_PSPOLL_EVENT; | 3078 | } POSTPACK WMI_PSPOLL_EVENT; |
3079 | 3079 | ||
3080 | typedef PREPACK struct { | 3080 | typedef PREPACK struct { |