summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/rsi/rsi_hal.h
diff options
context:
space:
mode:
authorPavani Muthyala <pavani.muthyala@redpinesignals.com>2017-07-06 17:37:15 +0300
committerKalle Valo <kvalo@codeaurora.org>2017-07-28 17:22:38 +0300
commitde2dea16ec9f6b483c13f9e1709821c76699fb6b (patch)
treea1164c95805c058081f342866eea7a343b89f694 /drivers/net/wireless/rsi/rsi_hal.h
parent015240018b0a6c4b9e394055a4fc7d27bdd2e104 (diff)
downloadlinux-de2dea16ec9f6b483c13f9e1709821c76699fb6b.tar.xz
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>
Diffstat (limited to 'drivers/net/wireless/rsi/rsi_hal.h')
-rw-r--r--drivers/net/wireless/rsi/rsi_hal.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/wireless/rsi/rsi_hal.h b/drivers/net/wireless/rsi/rsi_hal.h
index 3179e8606b7e..da115dd11bdd 100644
--- a/drivers/net/wireless/rsi/rsi_hal.h
+++ b/drivers/net/wireless/rsi/rsi_hal.h
@@ -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