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

staging: vt6656: Drop u8 pointer and rename bScheduleCommand.

Rename to vnt_schedule_command removing unused u8 pointer.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 592365ae
...@@ -172,20 +172,18 @@ void INTnsProcessData(struct vnt_private *priv) ...@@ -172,20 +172,18 @@ void INTnsProcessData(struct vnt_private *priv)
if (int_data->isr0 != 0) { if (int_data->isr0 != 0) {
if (int_data->isr0 & ISR_BNTX && if (int_data->isr0 & ISR_BNTX &&
priv->op_mode == NL80211_IFTYPE_AP) priv->op_mode == NL80211_IFTYPE_AP)
bScheduleCommand(priv, WLAN_CMD_BECON_SEND, NULL); vnt_schedule_command(priv, WLAN_CMD_BECON_SEND);
if (int_data->isr0 & ISR_TBTT) { if (int_data->isr0 & ISR_TBTT) {
if (priv->hw->conf.flags & IEEE80211_CONF_PS) if (priv->hw->conf.flags & IEEE80211_CONF_PS)
bScheduleCommand((void *) priv, vnt_schedule_command(priv,
WLAN_CMD_TBTT_WAKEUP, WLAN_CMD_TBTT_WAKEUP);
NULL);
#if 0 /* TODO channel switch */ #if 0 /* TODO channel switch */
if (priv->bChannelSwitch) { if (priv->bChannelSwitch) {
priv->byChannelSwitchCount--; priv->byChannelSwitchCount--;
if (priv->byChannelSwitchCount == 0) if (priv->byChannelSwitchCount == 0)
bScheduleCommand((void *) priv, vnt_schedule_command(priv,
WLAN_CMD_11H_CHSW, WLAN_CMD_11H_CHSW);
NULL);
} }
#endif #endif
} }
......
...@@ -1137,7 +1137,7 @@ vt6656_probe(struct usb_interface *intf, const struct usb_device_id *id) ...@@ -1137,7 +1137,7 @@ vt6656_probe(struct usb_interface *intf, const struct usb_device_id *id)
MP_CLEAR_FLAG(priv, fMP_DISCONNECTED); MP_CLEAR_FLAG(priv, fMP_DISCONNECTED);
vResetCommandTimer(priv); vResetCommandTimer(priv);
bScheduleCommand(priv, WLAN_CMD_INIT_MAC80211, NULL); vnt_schedule_command(priv, WLAN_CMD_INIT_MAC80211);
return 0; return 0;
......
...@@ -767,7 +767,7 @@ int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb) ...@@ -767,7 +767,7 @@ int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb)
if (priv->wCurrentRate != current_rate && if (priv->wCurrentRate != current_rate &&
!(priv->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL)) { !(priv->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL)) {
priv->wCurrentRate = current_rate; priv->wCurrentRate = current_rate;
bScheduleCommand(priv, WLAN_CMD_SETPOWER, NULL); vnt_schedule_command(priv, WLAN_CMD_SETPOWER);
} }
if (current_rate > RATE_11M) if (current_rate > RATE_11M)
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
* s_MgrMakeProbeRequest - Make ProbeRequest packet * s_MgrMakeProbeRequest - Make ProbeRequest packet
* CommandTimer - Timer function to handle command * CommandTimer - Timer function to handle command
* vnt_cmd_complete - Command Complete function * vnt_cmd_complete - Command Complete function
* bScheduleCommand - Push Command and wait Command Scheduler to do * vnt_schedule_command - Push Command and wait Command Scheduler to do
* vCommandTimer- Command call back functions * vCommandTimer- Command call back functions
* vnt_cmd_timer_wait- Call back timer * vnt_cmd_timer_wait- Call back timer
* s_bClearBSSID_SCAN- Clear BSSID_SCAN cmd in CMD Queue * s_bClearBSSID_SCAN- Clear BSSID_SCAN cmd in CMD Queue
...@@ -184,7 +184,7 @@ void vnt_run_command(struct work_struct *work) ...@@ -184,7 +184,7 @@ void vnt_run_command(struct work_struct *work)
return; return;
} }
int bScheduleCommand(struct vnt_private *priv, enum vnt_cmd command, u8 *item0) int vnt_schedule_command(struct vnt_private *priv, enum vnt_cmd command)
{ {
if (priv->free_cmd_queue == 0) if (priv->free_cmd_queue == 0)
......
...@@ -61,7 +61,7 @@ struct vnt_private; ...@@ -61,7 +61,7 @@ struct vnt_private;
void vResetCommandTimer(struct vnt_private *); void vResetCommandTimer(struct vnt_private *);
int bScheduleCommand(struct vnt_private *, enum vnt_cmd, u8 *); int vnt_schedule_command(struct vnt_private *, enum vnt_cmd);
void vnt_run_command(struct work_struct *work); void vnt_run_command(struct work_struct *work);
......
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