diff mbox

[v2,01/17] rsi: add common structures needed for command packets

Message ID 1499690448-9956-2-git-send-email-amitkarwar@gmail.com (mailing list archive)
State Accepted
Commit 6c8ab76d6ae9ba8027c985444299372b965ed2d2
Delegated to: Kalle Valo
Headers show

Commit Message

Amitkumar Karwar July 10, 2017, 12:40 p.m. UTC
From: Prameela Rani Garnepudi <prameela.j04cs@gmail.com>

All internal management packets (command packets) use some common
fields and some packet specific fields for packet descriptors.
This patch adds some common structures which are needed for all
command packets.

Signed-off-by: Prameela Rani Garnepudi <prameela.j04cs@gmail.com>
Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
---
 drivers/net/wireless/rsi/rsi_mgmt.h | 38 +++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Comments

Kalle Valo July 28, 2017, 2:27 p.m. UTC | #1
Amitkumar Karwar <amitkarwar@gmail.com> wrote:

> From: Prameela Rani Garnepudi <prameela.j04cs@gmail.com>
> 
> All internal management packets (command packets) use some common
> fields and some packet specific fields for packet descriptors.
> This patch adds some common structures which are needed for all
> command packets.
> 
> Signed-off-by: Prameela Rani Garnepudi <prameela.j04cs@gmail.com>
> Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>

17 patches applied to wireless-drivers-next.git, thanks.

6c8ab76d6ae9 rsi: add common structures needed for command packets
9a629fafe7d8 rsi: immediate wakeup bit and priority for TX command packets
6abdf2c19346 rsi: Update in tx command frame radio capabilities
dff80fc5fe4f rsi: remove unnecessary check for 802.11 management packet
59e006dc77c4 rsi: Update peer notify command frame
3a9828c92ba1 rsi: Update aggregation parameters command frame
5c7ca1bbf200 rsi: Update baseband RF programming frame
f04854fa3c38 rsi: update set_channel command frame
de1d1813a8ca rsi: update vap capabilities command frame
a84faab0fdb6 rsi: update set_key command frame
2a58900bf59d rsi: set_key enhancements
b3115e8a4267 rsi: update autorate request command frame
bcb283d27f65 rsi: block/unblock data queues as per connection status
79e590d924de rsi: update tx command frame block/unblock data
5059afacee88 rsi: Remove internal header from Tx status skb
86583258499c rsi: Send rx filter frame to device when interface is down
d7203a83f065 rsi: regulatory enhancements
diff mbox

Patch

diff --git a/drivers/net/wireless/rsi/rsi_mgmt.h b/drivers/net/wireless/rsi/rsi_mgmt.h
index a8a195e..63360c2 100644
--- a/drivers/net/wireless/rsi/rsi_mgmt.h
+++ b/drivers/net/wireless/rsi/rsi_mgmt.h
@@ -221,6 +221,44 @@  struct rsi_mac_frame {
 	__le16 desc_word[8];
 } __packed;
 
+#define PWR_SAVE_WAKEUP_IND		BIT(0)
+#define TCP_CHECK_SUM_OFFLOAD		BIT(1)
+#define CONFIRM_REQUIRED_TO_HOST	BIT(2)
+#define ADD_DELTA_TSF			BIT(3)
+#define FETCH_RETRY_CNT_FROM_HOST_DESC	BIT(4)
+#define EOSP_INDICATION			BIT(5)
+#define REQUIRE_TSF_SYNC_CONFIRM	BIT(6)
+#define ENCAP_MGMT_PKT			BIT(7)
+
+struct rsi_cmd_desc_dword0 {
+	__le16 len_qno;
+	u8 frame_type;
+	u8 misc_flags;
+};
+
+struct rsi_cmd_desc_dword1 {
+	u8 xtend_desc_size;
+	u8 reserved1;
+	__le16 reserved2;
+};
+
+struct rsi_cmd_desc_dword2 {
+	__le32 pkt_info; /* Packet specific data */
+};
+
+struct rsi_cmd_desc_dword3 {
+	__le16 token;
+	u8 qid_tid;
+	u8 sta_id;
+};
+
+struct rsi_cmd_desc {
+	struct rsi_cmd_desc_dword0 desc_dword0;
+	struct rsi_cmd_desc_dword1 desc_dword1;
+	struct rsi_cmd_desc_dword2 desc_dword2;
+	struct rsi_cmd_desc_dword3 desc_dword3;
+};
+
 struct rsi_boot_params {
 	__le16 desc_word[8];
 	struct bootup_params bootup_params;