if (priv->bCmdRunning != true)
return;
- switch (priv->eCommandState) {
+ switch (priv->command_state) {
case WLAN_CMD_INIT_MAC80211_START:
if (priv->mac_hw)
break;
static int s_bCommandComplete(struct vnt_private *priv)
{
- priv->eCommandState = WLAN_CMD_IDLE;
+ priv->command_state = WLAN_CMD_IDLE;
if (priv->cbFreeCmdQueue == CMD_Q_SIZE) {
/* Command Queue Empty */
priv->bCmdRunning = false;
switch (priv->command) {
case WLAN_CMD_INIT_MAC80211:
- priv->eCommandState = WLAN_CMD_INIT_MAC80211_START;
+ priv->command_state = WLAN_CMD_INIT_MAC80211_START;
break;
case WLAN_CMD_TBTT_WAKEUP:
- priv->eCommandState = WLAN_CMD_TBTT_WAKEUP_START;
+ priv->command_state = WLAN_CMD_TBTT_WAKEUP_START;
break;
case WLAN_CMD_BECON_SEND:
- priv->eCommandState = WLAN_CMD_BECON_SEND_START;
+ priv->command_state = WLAN_CMD_BECON_SEND_START;
break;
case WLAN_CMD_SETPOWER:
- priv->eCommandState = WLAN_CMD_SETPOWER_START;
+ priv->command_state = WLAN_CMD_SETPOWER_START;
break;
case WLAN_CMD_CHANGE_ANTENNA:
- priv->eCommandState = WLAN_CMD_CHANGE_ANTENNA_START;
+ priv->command_state = WLAN_CMD_CHANGE_ANTENNA_START;
break;
case WLAN_CMD_11H_CHSW:
- priv->eCommandState = WLAN_CMD_11H_CHSW_START;
+ priv->command_state = WLAN_CMD_11H_CHSW_START;
break;
default:
priv->cbFreeCmdQueue = CMD_Q_SIZE;
priv->uCmdDequeueIdx = 0;
priv->uCmdEnqueueIdx = 0;
- priv->eCommandState = WLAN_CMD_IDLE;
+ priv->command_state = WLAN_CMD_IDLE;
priv->bCmdRunning = false;
priv->bCmdClear = false;
}
enum vnt_cmd cmd;
} CMD_ITEM, *PCMD_ITEM;
-// Command state
-typedef enum tagCMD_STATE {
- WLAN_CMD_INIT_MAC80211_START,
- WLAN_CMD_SETPOWER_START,
- WLAN_CMD_TBTT_WAKEUP_START,
- WLAN_CMD_BECON_SEND_START,
- WLAN_CMD_CHANGE_ANTENNA_START,
- WLAN_CMD_11H_CHSW_START,
- WLAN_CMD_IDLE
-} CMD_STATE, *PCMD_STATE;
+/* Command state */
+enum vnt_cmd_state {
+ WLAN_CMD_INIT_MAC80211_START,
+ WLAN_CMD_SETPOWER_START,
+ WLAN_CMD_TBTT_WAKEUP_START,
+ WLAN_CMD_BECON_SEND_START,
+ WLAN_CMD_CHANGE_ANTENNA_START,
+ WLAN_CMD_11H_CHSW_START,
+ WLAN_CMD_IDLE
+};
struct vnt_private;