Skip to content

Commit

Permalink
ipw2100: fix timeout bug - always evaluated to 0
Browse files Browse the repository at this point in the history
commit 2c86c27 ("Add ipw2100 wireless driver.") introduced
HW_PHY_OFF_LOOP_DELAY (HZ / 5000) which always evaluated to 0. Clarified
by Stanislav Yakovlev <stas.yakovlev@gmail.com> that it should be 50
milliseconds thus fixed up to msecs_to_jiffies(50).

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Acked-by: Stanislav Yakovlev <stas.yakovlev@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Nicholas Mc Guire authored and Kalle Valo committed Jul 11, 2015
1 parent 9d7b372 commit 00798c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ipw2x00/ipw2100.c
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ static int ipw2100_power_cycle_adapter(struct ipw2100_priv *priv)
static int ipw2100_hw_phy_off(struct ipw2100_priv *priv)
{

#define HW_PHY_OFF_LOOP_DELAY (HZ / 5000)
#define HW_PHY_OFF_LOOP_DELAY (msecs_to_jiffies(50))

struct host_command cmd = {
.host_command = CARD_DISABLE_PHY_OFF,
Expand Down

0 comments on commit 00798c3

Please sign in to comment.