mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 05:53:06 +00:00
rtl8188eu: Rework endianess
Several of the struct items related to on-air data must be little endian. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
bad0b4cde4
commit
ed2c3ab733
8 changed files with 47 additions and 37 deletions
|
@ -610,12 +610,12 @@ static inline int IsFrameTypeCtrl(unsigned char *pframe)
|
|||
* described in 802.11n draft section 7.2.1.7.1
|
||||
*/
|
||||
struct rtw_ieee80211_bar {
|
||||
unsigned short frame_control;
|
||||
unsigned short duration;
|
||||
unsigned char ra[6];
|
||||
unsigned char ta[6];
|
||||
unsigned short control;
|
||||
unsigned short start_seq_num;
|
||||
__le16 frame_control;
|
||||
__le16 duration;
|
||||
unsigned char ra[ETH_ALEN];
|
||||
unsigned char ta[ETH_ALEN];
|
||||
__le16 control;
|
||||
__le16 start_seq_num;
|
||||
} __packed;
|
||||
|
||||
/* 802.11 BAR control masks */
|
||||
|
@ -630,11 +630,11 @@ struct rtw_ieee80211_bar {
|
|||
*/
|
||||
|
||||
struct rtw_ieee80211_ht_cap {
|
||||
unsigned short cap_info;
|
||||
__le16 cap_info;
|
||||
unsigned char ampdu_params_info;
|
||||
unsigned char supp_mcs_set[16];
|
||||
unsigned short extended_ht_cap_info;
|
||||
unsigned int tx_BF_cap_info;
|
||||
__le16 extended_ht_cap_info;
|
||||
__le16 tx_BF_cap_info;
|
||||
unsigned char antenna_selection_info;
|
||||
} __packed;
|
||||
|
||||
|
@ -647,8 +647,8 @@ struct rtw_ieee80211_ht_cap {
|
|||
struct ieee80211_ht_addt_info {
|
||||
unsigned char control_chan;
|
||||
unsigned char ht_param;
|
||||
unsigned short operation_mode;
|
||||
unsigned short stbc_param;
|
||||
__le16 operation_mode;
|
||||
__le16 stbc_param;
|
||||
unsigned char basic_set[16];
|
||||
} __packed;
|
||||
|
||||
|
@ -658,8 +658,8 @@ struct HT_caps_element {
|
|||
__le16 HT_caps_info;
|
||||
unsigned char AMPDU_para;
|
||||
unsigned char MCS_rate[16];
|
||||
unsigned short HT_ext_caps;
|
||||
unsigned int Beamforming_caps;
|
||||
__le16 HT_ext_caps;
|
||||
__le16 Beamforming_caps;
|
||||
unsigned char ASEL_caps;
|
||||
} HT_cap_element;
|
||||
unsigned char HT_cap[26];
|
||||
|
@ -685,10 +685,11 @@ struct WMM_para_element {
|
|||
} __packed;
|
||||
|
||||
struct ADDBA_request {
|
||||
unsigned char action_code;
|
||||
unsigned char dialog_token;
|
||||
unsigned short BA_para_set;
|
||||
unsigned short BA_timeout_value;
|
||||
unsigned short BA_starting_seqctrl;
|
||||
__le16 BA_para_set;
|
||||
__le16 BA_timeout_value;
|
||||
__le16 BA_starting_seqctrl;
|
||||
} __packed;
|
||||
|
||||
enum ht_cap_ampdu_factor {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue