rsi: management frame descriptor preparation cleanup
Currently this descriptor is prepared with the help of __le16 pointer. This patch makes use of a structure to prepare the descriptor in a cleaner way. Signed-off-by: Pavani Muthyala <pavani.muthyala@redpinesignals.com> Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Šī revīzija ir iekļauta:

revīziju iesūtīja
Kalle Valo

vecāks
015240018b
revīzija
de2dea16ec
@@ -99,6 +99,8 @@
|
||||
#define RSI_DEV_OPMODE_WIFI_ALONE 1
|
||||
#define RSI_DEV_COEX_MODE_WIFI_ALONE 1
|
||||
|
||||
#define BBP_INFO_40MHZ 0x6
|
||||
|
||||
struct bl_header {
|
||||
__le32 flags;
|
||||
__le32 image_no;
|
||||
@@ -112,6 +114,21 @@ struct ta_metadata {
|
||||
unsigned int address;
|
||||
};
|
||||
|
||||
struct rsi_mgmt_desc {
|
||||
__le16 len_qno;
|
||||
u8 frame_type;
|
||||
u8 misc_flags;
|
||||
u8 reserved1;
|
||||
u8 header_len;
|
||||
__le16 info_cap;
|
||||
u8 rate_info;
|
||||
u8 reserved2;
|
||||
u16 bbp_info;
|
||||
__le16 seq_ctrl;
|
||||
u8 cfm_frame_type;
|
||||
u8 vap_info;
|
||||
} __packed;
|
||||
|
||||
int rsi_hal_device_init(struct rsi_hw *adapter);
|
||||
|
||||
#endif
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user