Commit bab97c05 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: dead code remove channel switch.

The driver needs to do anything special for channel switch.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 43fd1924
...@@ -391,10 +391,6 @@ struct vnt_private { ...@@ -391,10 +391,6 @@ struct vnt_private {
/* command timer */ /* command timer */
struct delayed_work run_command_work; struct delayed_work run_command_work;
int bChannelSwitch;
u8 byNewChannel;
u8 byChannelSwitchCount;
struct ieee80211_low_level_stats low_stats; struct ieee80211_low_level_stats low_stats;
}; };
......
...@@ -153,14 +153,6 @@ void vnt_int_process_data(struct vnt_private *priv) ...@@ -153,14 +153,6 @@ void vnt_int_process_data(struct vnt_private *priv)
if (priv->hw->conf.flags & IEEE80211_CONF_PS) if (priv->hw->conf.flags & IEEE80211_CONF_PS)
vnt_schedule_command(priv, vnt_schedule_command(priv,
WLAN_CMD_TBTT_WAKEUP); WLAN_CMD_TBTT_WAKEUP);
#if 0 /* TODO channel switch */
if (priv->bChannelSwitch) {
priv->byChannelSwitchCount--;
if (priv->byChannelSwitchCount == 0)
vnt_schedule_command(priv,
WLAN_CMD_11H_CHSW);
}
#endif
} }
priv->current_tsf = le64_to_cpu(int_data->tsf); priv->current_tsf = le64_to_cpu(int_data->tsf);
......
...@@ -83,10 +83,6 @@ static int vnt_cmd_complete(struct vnt_private *priv) ...@@ -83,10 +83,6 @@ static int vnt_cmd_complete(struct vnt_private *priv)
priv->command_state = WLAN_CMD_CHANGE_ANTENNA_START; priv->command_state = WLAN_CMD_CHANGE_ANTENNA_START;
break; break;
case WLAN_CMD_11H_CHSW:
priv->command_state = WLAN_CMD_11H_CHSW_START;
break;
default: default:
break; break;
} }
...@@ -163,10 +159,6 @@ void vnt_run_command(struct work_struct *work) ...@@ -163,10 +159,6 @@ void vnt_run_command(struct work_struct *work)
} }
break; break;
case WLAN_CMD_11H_CHSW_START:
vnt_set_channel(priv, priv->hw->conf.chandef.chan->hw_value);
break;
default: default:
break; break;
} }
......
...@@ -40,8 +40,7 @@ enum vnt_cmd { ...@@ -40,8 +40,7 @@ enum vnt_cmd {
WLAN_CMD_SETPOWER, WLAN_CMD_SETPOWER,
WLAN_CMD_TBTT_WAKEUP, WLAN_CMD_TBTT_WAKEUP,
WLAN_CMD_BECON_SEND, WLAN_CMD_BECON_SEND,
WLAN_CMD_CHANGE_ANTENNA, WLAN_CMD_CHANGE_ANTENNA
WLAN_CMD_11H_CHSW,
}; };
#define CMD_Q_SIZE 32 #define CMD_Q_SIZE 32
...@@ -53,7 +52,6 @@ enum vnt_cmd_state { ...@@ -53,7 +52,6 @@ enum vnt_cmd_state {
WLAN_CMD_TBTT_WAKEUP_START, WLAN_CMD_TBTT_WAKEUP_START,
WLAN_CMD_BECON_SEND_START, WLAN_CMD_BECON_SEND_START,
WLAN_CMD_CHANGE_ANTENNA_START, WLAN_CMD_CHANGE_ANTENNA_START,
WLAN_CMD_11H_CHSW_START,
WLAN_CMD_IDLE WLAN_CMD_IDLE
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment