Skip to content

Commit

Permalink
ath6kl: rename ath6kl_wmi_qos_state_init() to _wmi_reset()
Browse files Browse the repository at this point in the history
Just to make it more clear that this function is supposed to
reset wmi related variables.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
  • Loading branch information
Kalle Valo committed Nov 11, 2011
1 parent cb93821 commit c89c591
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/net/wireless/ath/ath6kl/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -3211,11 +3211,8 @@ int ath6kl_wmi_control_rx(struct wmi *wmi, struct sk_buff *skb)
return ret;
}

static void ath6kl_wmi_qos_state_init(struct wmi *wmi)
void ath6kl_wmi_reset(struct wmi *wmi)
{
if (!wmi)
return;

spin_lock_bh(&wmi->lock);

wmi->fat_pipe_exist = 0;
Expand All @@ -3238,7 +3235,7 @@ void *ath6kl_wmi_init(struct ath6kl *dev)

wmi->pwr_mode = REC_POWER;

ath6kl_wmi_qos_state_init(wmi);
ath6kl_wmi_reset(wmi);

return wmi;
}
Expand Down
1 change: 1 addition & 0 deletions drivers/net/wireless/ath/ath6kl/wmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -2316,5 +2316,6 @@ int ath6kl_wmi_set_appie_cmd(struct wmi *wmi, u8 if_idx, u8 mgmt_frm_type,
struct ath6kl_vif *ath6kl_get_vif_by_index(struct ath6kl *ar, u8 if_idx);
void *ath6kl_wmi_init(struct ath6kl *devt);
void ath6kl_wmi_shutdown(struct wmi *wmi);
void ath6kl_wmi_reset(struct wmi *wmi);

#endif /* WMI_H */

0 comments on commit c89c591

Please sign in to comment.