The driver needs to do anything special for channel switch.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
/* command timer */
struct delayed_work run_command_work;
- int bChannelSwitch;
- u8 byNewChannel;
- u8 byChannelSwitchCount;
-
struct ieee80211_low_level_stats low_stats;
};
if (priv->hw->conf.flags & IEEE80211_CONF_PS)
vnt_schedule_command(priv,
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->command_state = WLAN_CMD_CHANGE_ANTENNA_START;
break;
- case WLAN_CMD_11H_CHSW:
- priv->command_state = WLAN_CMD_11H_CHSW_START;
- break;
-
default:
break;
}
}
break;
- case WLAN_CMD_11H_CHSW_START:
- vnt_set_channel(priv, priv->hw->conf.chandef.chan->hw_value);
- break;
-
default:
break;
}
WLAN_CMD_SETPOWER,
WLAN_CMD_TBTT_WAKEUP,
WLAN_CMD_BECON_SEND,
- WLAN_CMD_CHANGE_ANTENNA,
- WLAN_CMD_11H_CHSW,
+ WLAN_CMD_CHANGE_ANTENNA
};
#define CMD_Q_SIZE 32
WLAN_CMD_TBTT_WAKEUP_START,
WLAN_CMD_BECON_SEND_START,
WLAN_CMD_CHANGE_ANTENNA_START,
- WLAN_CMD_11H_CHSW_START,
WLAN_CMD_IDLE
};