Since enum vnt_cmd is only member replace with array
enum vnt_cmd cmd_queue with size of CMD_Q_SIZE
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
/* 802.11 counter */
- CMD_ITEM eCmdQueue[CMD_Q_SIZE];
+ enum vnt_cmd cmd_queue[CMD_Q_SIZE];
u32 uCmdDequeueIdx;
u32 uCmdEnqueueIdx;
u32 cbFreeCmdQueue;
return true;
}
- priv->command = priv->eCmdQueue[priv->uCmdDequeueIdx].cmd;
+ priv->command = priv->cmd_queue[priv->uCmdDequeueIdx];
ADD_ONE_WITH_WRAP_AROUND(priv->uCmdDequeueIdx, CMD_Q_SIZE);
priv->cbFreeCmdQueue++;
if (priv->cbFreeCmdQueue == 0)
return false;
- priv->eCmdQueue[priv->uCmdEnqueueIdx].cmd = command;
+ priv->cmd_queue[priv->uCmdEnqueueIdx] = command;
ADD_ONE_WITH_WRAP_AROUND(priv->uCmdEnqueueIdx, CMD_Q_SIZE);
priv->cbFreeCmdQueue--;
} CMD_STATUS, *PCMD_STATUS;
-typedef struct tagCMD_ITEM {
- enum vnt_cmd cmd;
-} CMD_ITEM, *PCMD_ITEM;
-
/* Command state */
enum vnt_cmd_state {
WLAN_CMD_INIT_MAC80211_START,