/* SPDX-License-Identifier: GPL-2.0+ */
/* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */
#ifndef _QTN_QLINK_H_
#define _QTN_QLINK_H_
#include <linux/ieee80211.h>
#define QLINK_PROTO_VER 15
#define QLINK_MACID_RSVD 0xFF
#define QLINK_VIFID_RSVD 0xFF
/* Common QLINK protocol messages definitions.
*/
/**
* enum qlink_msg_type - QLINK message types
*
* Used to distinguish between message types of QLINK protocol.
*
* @QLINK_MSG_TYPE_CMD: Message is carrying data of a command sent from
* driver to wireless hardware.
* @QLINK_MSG_TYPE_CMDRSP: Message is carrying data of a response to a command.
* Sent from wireless HW to driver in reply to previously issued command.
* @QLINK_MSG_TYPE_EVENT: Data for an event originated in wireless hardware and
* sent asynchronously to driver.
*/
enum qlink_msg_type {
QLINK_MSG_TYPE_CMD = 1,
QLINK_MSG_TYPE_CMDRSP = 2,
QLINK_MSG_TYPE_EVENT = 3
};
/**
* struct qlink_msg_header - common QLINK protocol message header
*
* Portion of QLINK protocol header common for all message types.
*
* @type: Message type, one of &enum qlink_msg_type.
* @len: Total length of